Function at 0x407270
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 0x4c5ee8
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 0x4077d6
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407320
sub ecx, edx
je 0x4077d6
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x407346
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x407357
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x407368
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 0x40772a
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x106c], 0x50
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0xf
mov byte [ebp - 0x1048], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
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.00409150
mov ecx, dword [ebp - 0x106c]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x407414
mov byte [esi + 4], 1
cmp dword [ebp - 0x1034], 0x10
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_InternetConnectA]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x407745
cmp byte [esi + 4], 0
mov eax, closesocket
push 0
mov ecx, 0x80802000
cmove ecx, eax
cmp dword [ebp - 0x101c], 0x10
push ecx
push 0
push 0
push str.HTTP_1.1
lea eax, [ebp - 0x1030]
mov ecx, 0x4e8e30
cmovae eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x1070], 0
push eax
mov eax, 0x4e8e2c
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x10], eax
test eax, eax
je 0x407760
mov eax, dword [ebp - 0x1078]
test eax, eax
jne 0x4074b1
xor esi, esi
jmp 0x4074bf
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4074b6
sub esi, ecx
mov eax, dword [ebp - 0x1074]
test eax, eax
jne 0x4074cd
xor edi, edi
jmp 0x4074db
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4074d2
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_HttpSendRequestA]
test eax, eax
je 0x40777b
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 0x407796
lea eax, [ebp - 0x1018]
push 0x4e8e38
push eax
call fcn.00467960
add esp, 8
test eax, eax
jne 0x4077b1
nop dword [eax]
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 0x40764d
mov edi, dword [ebp - 0x1068]
test edi, edi
je 0x40764d
cmp edi, 0x1001
jae 0x4077cc
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 0x40762b
lea eax, [ecx + edi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x40760b
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 0x4075b0
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 0x4075b0
lea ecx, [ebp - 0x1060]
call fcn.00405b10
mov edx, dword [ebp - 0x101c]
cmp edx, 0x10
jb 0x407692
mov ecx, dword [ebp - 0x1030]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077d1
push edx
push ecx
call fcn.0043c464
add esp, 8
mov edx, dword [ebp - 0x1034]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
cmp edx, 0x10
jb 0x40770a
mov ecx, dword [ebp - 0x1048]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4076dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077d1
push edx
push ecx
call fcn.0043c464
add esp, 8
jmp 0x40770a
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