Function at 0x408740
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
sub esp, 0x47c
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
je 0x408a9d
cmp dword [ebp + 0x30], 0
je 0x408a9d
cmp dword [ebp + 0x48], 0
je 0x408a9d
xor esi, esi
mov byte [ebp - 0x30], 0
push esi
push esi
push esi
push esi
mov ebx, 0xf
mov dword [ebp - 0x20], esi
push 0x43c130
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 1
cmovae ecx, dword [ebp + 8]
push esi
push 3
push esi
push esi
push 0x50
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 4], eax
push 0x4404c0
call fcn.004147b0
lea ecx, [ebp - 0x48]
call fcn.00402fb0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4087e1
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push 0
push dword [ebp - 4]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], eax
cmp edx, 0x10
jb 0x40882f
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408825
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b42
push edx
push ecx
call fcn.00415fcc
add esp, 8
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
mov dword [ebp - 0x38], esi
cmovae eax, dword [ebp + 0x38]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x48], 0
mov dword [ebp - 0xc], eax
push 0x43f998
call fcn.004147b0
lea ecx, [ebp - 0x60]
call fcn.00402fb0
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [eax + 0x14], 0x10
jb 0x40886f
mov eax, dword [eax]
mov dword [ebp - 4], eax
push dword [ebp + 0x48]
push dword [ebp - 0xc]
sub esp, 0x18
mov ecx, esp
push 0x43f998
call fcn.004147b0
lea ecx, [ebp - 0x78]
call fcn.00402fb0
add esp, 0x18
mov eax, dword [eax + 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x4088d3
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4088c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b47
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x408911
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408907
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b47
push edx
push ecx
call fcn.00415fcc
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x3ff
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4089b4
mov edi, dword [ebp - 4]
test edi, edi
je 0x4089b1
mov eax, ebx
sub eax, esi
push edi
cmp edi, eax
ja 0x40896a
lea eax, [esi + edi]
cmp ebx, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
add esi, eax
lea eax, [ebp - 0x478]
push eax
push esi
call fcn.00417480
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x408981
lea eax, [ebp - 0x478]
mov byte [ebp - 0xc], 0
push eax
push dword [ebp - 0xc]
lea ecx, [ebp - 0x30]
push edi
call fcn.00415260
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x478], 0
lea eax, [ebp - 4]
push eax
push 0x3ff
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4089b1
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
jmp 0x408932
mov edi, dword [ebp - 0x14]
push dword [ebp - 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
call esi
movups xmm0, xmmword [ebp - 0x30]
mov edx, dword [ebp + 0x1c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
cmp edx, 0x10
jb 0x408a0e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4c
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x408a54
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4c
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x408b39
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408b2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4c
jmp 0x408b2f
push 0
push 0x43b4fb
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.00414b30
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x408aea
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ae0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4c
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x408a54
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b4c
jmp 0x408a4a
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041bb2d
call fcn.0041bb2d
call fcn.0041bb2d
int3