Function at 0x407800
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 0x4c5f68
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1098
call fcn.0043c5a0
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 dword [ebp - 0x1064], esi
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10a4], ebx
mov dword [ebp - 0x1070], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x1074], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebp - 0x10a0], esi
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x1078], ecx
mov byte [ebx], 0
mov dword [ebp - 0x107c], 1
mov dword [ebp - 4], 1
test eax, eax
je 0x407d6e
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4078b0
sub ecx, edx
sar ecx, 1
je 0x407d6e
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x4078dc
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4078ed
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4078fe
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 0x407cc2
xor eax, eax
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x106c], 0x50
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
mov ecx, dword [ebp - 0x1084]
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x1048]
call fcn.00405600
mov ecx, dword [ebp - 0x106c]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x4079a4
mov byte [esi + 4], 1
cmp dword [ebp - 0x1034], 8
lea eax, [ebp - 0x1048]
push 0
cmovae eax, dword [ebp - 0x1048]
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 0x407cdd
cmp byte [esi + 4], 0
mov eax, closesocket
push 0
mov ecx, 0x80802000
cmove ecx, eax
cmp dword [ebp - 0x101c], 8
push ecx
push 0
push 0
push 0x4e8e3c
lea eax, [ebp - 0x1030]
mov ecx, 0x4e8e58
cmovae eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x1070], 0
push eax
mov eax, 0x4e8e50
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x407cf8
mov eax, dword [ebp - 0x1078]
test eax, eax
jne 0x407a41
xor esi, esi
jmp 0x407a55
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x407a46
sub esi, ecx
sar esi, 1
mov eax, dword [ebp - 0x1074]
test eax, eax
jne 0x407a63
xor edi, edi
jmp 0x407a71
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x407a68
sub edi, ecx
mov ecx, dword [ebp - 0x1064]
lea eax, [ebp - 0x1060]
push eax
add ecx, 0x14
call fcn.0040e8e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 0x10
push 0xa0000000
push dword [ebp - 0x1050]
cmovae eax, dword [ebp - 0x1060]
push eax
mov eax, dword [ebp - 0x1064]
push dword [eax + 0x10]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [ebp - 0x1074]
push edi
push ecx
mov ecx, dword [ebp - 0x1078]
push esi
mov esi, dword [ebp - 0x1064]
push ecx
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x407d13
push 0x1001
lea eax, [ebp - 0x1018]
push 0
push eax
call fcn.00464bd0
add esp, 0xc
mov dword [ebp - 0x1068], 0x1000
lea eax, [ebp - 0x1068]
push 0
push eax
lea eax, [ebp - 0x1018]
push eax
push 0x15
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x407d2e
lea eax, [ebp - 0x1018]
push 0x4e8e38
push eax
call fcn.00467960
add esp, 8
test eax, eax
jne 0x407d49
nop
lea eax, [ebp - 0x1068]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407bdd
mov edi, dword [ebp - 0x1068]
test edi, edi
je 0x407bdd
cmp edi, 0x1001
jae 0x407d64
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
mov byte [ebp + edi - 0x1018], 0
cmp edi, eax
ja 0x407bbb
lea eax, [edi + ecx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x407b9b
mov eax, dword [ebx]
lea esi, [eax + ecx]
push edi
lea eax, [ebp - 0x1018]
push eax
push esi
call fcn.00464650
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x1064]
jmp 0x407b40
push edi
lea eax, [ebp - 0x1018]
mov byte [ebp - 0x1070], 0
push eax
push dword [ebp - 0x1070]
mov ecx, ebx
push edi
call fcn.00404a40
jmp 0x407b40
lea ecx, [ebp - 0x1060]
call fcn.00405b10
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x407c28
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d69
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp edx, 8
jb 0x407ca2
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d69
push edx
push ecx
call fcn.0043c464
add esp, 8
jmp 0x407ca2
mov eax, ebx
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 0x18
push 0x4f7ecc
lea eax, [ebp - 0x1080]
mov dword [ebp - 0x1080], 1
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x1088]
mov dword [ebp - 0x1088], 2
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x108c]
mov dword [ebp - 0x108c], 1
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1090], 3
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x1094]
mov dword [ebp - 0x1094], 4
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x1098]
mov dword [ebp - 0x1098], 5
push eax
call fcn.00464e01
call fcn.0043d74d
call fcn.00470977
push 0x4f7ecc
lea eax, [ebp - 0x109c]
mov dword [ebp - 0x109c], 0xe
push eax
call fcn.00464e01
int3