Function at 0x420bb0
Capabilities:
Connect to http server
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x6c], eax
je 0x420be7
push 0
push 0x433160
push 0x7eb
call fcn.0041d570
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x12c
ret 0x10
mov ecx, esi
call fcn.00420a30
mov eax, dword [esi + 0x30]
test eax, eax
je 0x420fd3
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004209d0
mov al, byte [esi + 0x3c]
xor ecx, ecx
xor edi, edi
test al, al
jne 0x420c28
mov edi, 0x200000
mov al, byte [esi + 0x3d]
test al, al
jne 0x420c35
or edi, 0x80000
mov eax, dword [esi + 0x28]
dec eax
je 0x420c56
sub eax, 2
je 0x420c49
dec eax
jne 0x420c5d
or edi, 0x800000
or edi, 0x4000000
mov ecx, 3
jmp 0x420c5d
xor edi, edi
mov ecx, 1
mov ax, word [esi + 0x24]
mov edx, dword [esi + 0x30]
push 0
push 0
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x34], eax
je 0x420fd3
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
push 0
push edi
push 0
push 0
push str.HTTP_1.1
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x38], eax
je 0x420fc2
lea eax, [esp + 0x14]
push 0x80
push eax
call fcn.00421a20
mov ecx, dword [esi + 0x38]
mov ebp, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
add esp, 8
push 0xa0000000
push 0xb
push str.Accept:__
push ecx
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x420d2c
push 6
lea edx, [esp + 0x18]
push str.Host:
push edx
call fcn.00421b20
mov edx, dword [esi + 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00421b20
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x38]
add esp, 0x18
push 0xa0000000
push ecx
push edx
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
call fcn.00421aa0
add esp, 4
mov eax, dword [esp + 0x140]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
je 0x420d4f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
mov edi, ecx
mov edx, dword [esi + 0x10]
push str.POST
push edx
call fcn.0042bb90
add esp, 8
test eax, eax
jne 0x420dd0
push str.Content_Type
mov ecx, esi
call fcn.00421260
test al, al
jne 0x420d86
mov eax, dword [esi + 0x38]
push 0xa0000000
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call ebp
test edi, edi
jle 0x420dae
push edi
lea ecx, [esp + 0x40]
push str.Content_Length:__d
push ecx
call fcn.00422631
add esp, 0xc
lea edx, [esp + 0x3c]
push 0xa0000000
push eax
mov eax, dword [esi + 0x38]
push edx
push eax
call ebp
push str.Cache_Control
mov ecx, esi
call fcn.00421260
test al, al
jne 0x420dd0
mov ecx, dword [esi + 0x38]
push 0xa0000000
push 0x17
push str.Cache_Control:_no_cache
push ecx
call ebp
mov ebx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
cmp ebx, eax
je 0x420e4e
mov edi, dword [ebx]
mov eax, dword [edi + 4]
test eax, eax
jle 0x420e40
mov ecx, dword [edi + 0xc]
test ecx, ecx
jle 0x420e40
mov edx, dword [edi]
push eax
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00421b20
push 2
lea ecx, [esp + 0x24]
push 0x433178
push ecx
call fcn.00421b20
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00421b20
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x38]
add esp, 0x24
push 0xa0000000
push edx
push eax
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
call fcn.00421aa0
add esp, 4
mov eax, dword [esi + 0x48]
add ebx, 4
cmp ebx, eax
jne 0x420dda
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00421a50
xor ebx, ebx
add esp, 4
cmp edi, ebx
jle 0x420e72
mov ecx, dword [esp + 0x140]
mov edx, dword [esi + 0x38]
push edi
push ecx
push ebx
push ebx
push edx
jmp 0x420e7a
mov eax, dword [esi + 0x38]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
je 0x420fa8
mov ecx, esi
call fcn.004212b0
mov edx, dword [esi + 0x38]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [esp + 0x20]
push ebx
push ecx
push ebx
push 0x16
push edx
call edi
mov eax, dword [esp + 0x20]
add eax, 8
push eax
call fcn.00422b91
mov edx, dword [esi + 0x38]
add esp, 4
lea ecx, [esp + 0x20]
mov ebp, eax
push ebx
push ecx
push ebp
push 0x16
push edx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x420f74
push ebp
mov ecx, esi
call fcn.004213d0
mov ecx, dword [esi + 0x38]
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x420f74
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x420f74
mov ebp, eax
jge 0x420f00
xor eax, eax
push eax
call fcn.00422941
add esp, 4
cmp ebp, ebx
mov edi, eax
jbe 0x420f1c
mov ecx, ebp
cmp eax, ebx
je 0x420f18
mov byte [eax], 0
inc eax
dec ecx
jne 0x420f11
mov ecx, dword [esp + 0x10]
lea edx, [edi + ebp]
lea eax, [esp + 0x28]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x38]
push eax
push ecx
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x28]
cmp eax, ebx
jbe 0x420f6b
push eax
lea eax, [esi + 0x60]
push edi
push eax
call fcn.00421b20
push edi
call fcn.0042294f
mov edx, dword [esi + 0x38]
add esp, 0x10
lea ecx, [esp + 0x10]
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x420ef2
jmp 0x420f74
push edi
call fcn.0042294f
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call fcn.00422aa8
mov ecx, dword [esi + 0x38]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push ecx
call edi
mov edx, dword [esi + 0x34]
push edx
call edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x12c
ret 0x10
mov eax, dword [esi + 0x38]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x38], ebx
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x34], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x12c
ret 0x10