Function at 0x409560
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, 0x484
cmp dword [ebp + 0x18], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
je 0x4099bc
cmp dword [ebp + 0x30], 0
je 0x4099bc
cmp dword [ebp + 0x48], 0
je 0x4099bc
push 0
push 0
push 0
push 0
push 0x444250
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 1
cmovae ecx, dword [ebp + 8]
push 0
push 3
push 0
push 0
push 0x50
push ecx
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp dword [ebp + 0x34], 0x10
lea esi, [ebp + 0x20]
mov edi, eax
cmovae esi, dword [ebp + 0x20]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], edi
push 0x4484c0
call fcn.00414750
lea ecx, [ebp - 0x7c]
call fcn.004034e0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x409608
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push 0
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 8], eax
cmp edx, 0x10
jb 0x409652
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409648
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a61
push edx
push ecx
call fcn.00417582
add esp, 8
cmp dword [ebp + 0x4c], 0x10
lea edi, [ebp + 0x38]
mov dword [ebp - 0x6c], 0
cmovae edi, dword [ebp + 0x38]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
push 0x447998
call fcn.00414750
lea ecx, [ebp - 0x24]
call fcn.004034e0
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x409693
mov esi, dword [esi]
push dword [ebp + 0x48]
push edi
sub esp, 0x18
mov ecx, esp
push 0x447998
call fcn.00414750
lea ecx, [ebp - 0x54]
call fcn.004034e0
add esp, 0x18
mov eax, dword [eax + 0x10]
push eax
push esi
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4096f4
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4096ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a66
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp edx, 0x10
jb 0x40973a
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409730
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a66
push edx
push ecx
call fcn.00417582
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x3ff
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4098c3
nop dword [eax]
cmp dword [ebp - 4], 0
je 0x4098c0
lea eax, [ebp - 0x480]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x24], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409785
sub eax, edx
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00414eb0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x14], ecx
mov dword [ebp - 0x44], 0
cmovb ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0x10
push ecx
cmovae eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.00414eb0
cmp dword [ebp - 0x40], 0x10
lea edx, [ebp - 0x54]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x2c]
cmovae edx, edi
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x44]
sub eax, ecx
mov dword [ebp - 0x58], ecx
push ebx
push edx
cmp ebx, eax
ja 0x40981c
cmp dword [ebp - 0x28], 0x10
lea esi, [ebp - 0x3c]
lea eax, [ebx + ecx]
cmovae esi, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [esi + ecx]
push eax
call fcn.00418bd0
mov ecx, dword [ebp - 0x58]
lea eax, [ebx + esi]
mov esi, dword [ebp - 8]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x40982f
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x5c]
push ebx
call fcn.00415ac0
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x409862
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x409858
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a61
push ecx
push edi
call fcn.00417582
add esp, 8
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x409896
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40988c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a61
push edx
push ecx
call fcn.00417582
add esp, 8
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x480], 0
lea eax, [ebp - 4]
push eax
push 0x3ff
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x409760
mov ebx, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x60]
call esi
push dword [ebp - 0x64]
call esi
movups xmm0, xmmword [ebp - 0x3c]
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 0x3c], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
cmp edx, 0x10
jb 0x40992d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409923
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a6b
push edx
push ecx
call fcn.00417582
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 0x409973
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409969
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a6b
push edx
push ecx
call fcn.00417582
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 0x409a58
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409a4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a6b
jmp 0x409a4e
push 0
push 0x44358f
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.00414eb0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x409a09
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4099ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a6b
push edx
push ecx
call fcn.00417582
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 0x409973
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409969
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a6b
jmp 0x409969
push edx
push ecx
call fcn.00417582
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041ea01
call fcn.0041ea01
call fcn.0041ea01
int3