Function at 0x408620
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6051
mov eax, dword fs:[0]
push eax
sub esp, 0x8b4
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x8b0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8bc], esi
mov dword [ebp - 0x8b4], eax
mov byte [ebp - 0x87a], 0
mov dword [ebp - 0x884], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x408bd3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408693
sub ecx, edx
sar ecx, 1
je 0x408bd3
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x4086bf
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4086d0
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4086e1
push eax
call edi
mov dword [esi + 8], 0
push 0
push 0
push 0
push 0
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x408ad6
xor eax, eax
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x888], 0x50
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x888]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x830]
mov ecx, ebx
push eax
lea edx, [ebp - 0x848]
call fcn.00405600
mov ecx, dword [ebp - 0x888]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x408783
mov byte [esi + 4], 1
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
push 0
cmovae eax, dword [ebp - 0x848]
push 0
push 3
push 0
push 0
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x408af1
cmp byte [esi + 4], 0
mov eax, closesocket
push 0
mov ecx, 0x80802000
cmove ecx, eax
cmp dword [ebp - 0x81c], 8
push ecx
push 0
push 0
push 0x4e8e3c
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push eax
push 0x4e8e50
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x408b0c
lea eax, [ebp - 0x860]
push eax
lea ecx, [esi + 0x14]
call fcn.0040e8e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x860]
cmp dword [ebp - 0x84c], 0x10
push 0xa0000000
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x408b27
push 0x802
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.00464bd0
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x880]
add esp, 0xc
mov dword [ebp - 0x880], 0x400
push 0
push eax
lea eax, [ebp - 0x818]
push eax
push 0x15
push dword [esi + 0x10]
call edi
test eax, eax
je 0x408b42
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x878]
call fcn.00404ed0
push 0
push 0x4e8e68
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 4
call fcn.00405030
cmp eax, 0xffffffff
jne 0x408b5d
push 0
lea eax, [ebp - 0x880]
mov dword [ebp - 0x880], 0x400
push eax
lea eax, [ebp - 0x818]
push eax
push 5
push dword [esi + 0x10]
call edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
setne byte [ebp - 0x879]
je 0x408950
test edi, edi
je 0x408b78
mov eax, dword [ebp - 0x880]
add eax, eax
cmp eax, 0x802
jae 0x408bae
xor ecx, ecx
mov word [ebp + eax - 0x818], cx
lea eax, [ebp - 0x818]
push eax
call fcn.0048ef6e
mov edi, eax
add esp, 4
cmp edi, 0x800000
jg 0x408b93
test edi, edi
js 0x408b93
jmp 0x408955
mov edi, 0x800000
push edi
call fcn.00470500
add esp, 4
mov dword [ebp - 0x884], eax
lea ecx, [ebp - 0x880]
xor ebx, ebx
push ecx
push edi
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4089aa
nop dword [eax]
mov eax, dword [ebp - 0x880]
test eax, eax
je 0x4089aa
add ebx, eax
lea eax, [ebp - 0x880]
push eax
mov eax, dword [ebp - 0x884]
push edi
add eax, ebx
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x408980
cmp byte [ebp - 0x879], 0
je 0x4089bb
cmp edi, ebx
jne 0x408bb3
mov ecx, dword [ebp - 0x8b0]
mov eax, dword [ebp - 0x884]
mov dword [ecx], eax
lea ecx, [ebp - 0x878]
mov eax, dword [ebp - 0x8b4]
mov dword [eax], ebx
mov bl, 1
call fcn.00406670
lea ecx, [ebp - 0x860]
call fcn.00405b10
mov edx, dword [ebp - 0x81c]
cmp edx, 8
jb 0x408a29
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408a1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bce
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
cmp edx, 8
jb 0x408ab6
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408a7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bce
push edx
push ecx
call fcn.0043c464
add esp, 8
jmp 0x408ab6
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c480
mov esp, ebp
pop ebp
ret 0xc
push 0x4f7ecc
lea eax, [ebp - 0x88c]
mov dword [ebp - 0x88c], 1
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x890]
mov dword [ebp - 0x890], 2
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x894]
mov dword [ebp - 0x894], 1
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x898]
mov dword [ebp - 0x898], 3
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x89c]
mov dword [ebp - 0x89c], 4
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x8a0]
mov dword [ebp - 0x8a0], 5
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x8a4]
mov dword [ebp - 0x8a4], 4
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x8a8], 0xc
push eax
call fcn.00464e01
call fcn.0043d74d
push 0x4f7ecc
lea eax, [ebp - 0x8ac]
mov dword [ebp - 0x8ac], 8
push eax
call fcn.00464e01
call fcn.00470977
push 0x4f7ecc
lea eax, [ebp - 0x8b8]
mov dword [ebp - 0x8b8], 6
push eax
call fcn.00464e01
int3