Function at 0x407860
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
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x430], edi
je 0x407c74
cmp dword [ebp + 0x30], 0
je 0x407c74
cmp dword [ebp + 0x48], 0
je 0x407c74
xor esi, esi
mov byte [ebp - 0x424], 0
push esi
push esi
push esi
push esi
mov ebx, 0xf
mov dword [ebp - 0x414], esi
push 0x42ef04
mov dword [ebp - 0x410], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp + 0x1c], 0x10
mov ecx, eax
push 1
push esi
push 3
push esi
push esi
lea eax, [ebp + 8]
mov dword [ebp - 0x438], ecx
cmovae eax, dword [ebp + 8]
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x434], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40c], eax
push 0x432444
call fcn.00413990
lea ecx, [ebp - 0x450]
call fcn.004029f0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x407925
mov eax, dword [eax]
push 1
push 0
push 0
push 0
push 0
push dword [ebp - 0x40c]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x428], eax
cmp edx, 0x10
jb 0x407982
mov ecx, dword [ebp - 0x450]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407978
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d23
push edx
push ecx
call fcn.0041535e
add esp, 8
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
mov dword [ebp - 0x440], esi
cmovae eax, dword [ebp + 0x38]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x450], 0
mov dword [ebp - 0x42c], eax
push 0x431994
call fcn.00413990
lea ecx, [ebp - 0x468]
call fcn.004029f0
add esp, 0x18
mov dword [ebp - 0x40c], eax
cmp dword [eax + 0x14], 0x10
jb 0x4079d7
mov eax, dword [eax]
mov dword [ebp - 0x40c], eax
push dword [ebp + 0x48]
push dword [ebp - 0x42c]
sub esp, 0x18
mov ecx, esp
push 0x431994
call fcn.00413990
lea ecx, [ebp - 0x480]
call fcn.004029f0
add esp, 0x18
mov eax, dword [eax + 0x10]
push eax
push dword [ebp - 0x40c]
push dword [ebp - 0x428]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x454]
cmp edx, 0x10
jb 0x407a4d
mov ecx, dword [ebp - 0x468]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407a43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d28
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x468], 0
cmp edx, 0x10
jb 0x407a9a
mov ecx, dword [ebp - 0x480]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407a90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d28
push edx
push ecx
call fcn.0041535e
add esp, 8
lea eax, [ebp - 0x40c]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407b7c
mov edi, dword [ebp - 0x40c]
test edi, edi
je 0x407b76
mov eax, ebx
sub eax, esi
push edi
cmp edi, eax
ja 0x407b09
lea eax, [esi + edi]
cmp ebx, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x424]
cmovae eax, dword [ebp - 0x424]
add esi, eax
lea eax, [ebp - 0x408]
push eax
push esi
call fcn.00416d40
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x407b29
lea eax, [ebp - 0x408]
mov byte [ebp - 0x42c], 0
push eax
push dword [ebp - 0x42c]
lea ecx, [ebp - 0x424]
push edi
call fcn.00414630
mov eax, dword [ebp - 0x40c]
cmp eax, 0x400
jae 0x407d2d
mov byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x40c]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407b76
mov ebx, dword [ebp - 0x410]
mov esi, dword [ebp - 0x414]
jmp 0x407ac1
mov edi, dword [ebp - 0x430]
push dword [ebp - 0x428]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x434]
call esi
push dword [ebp - 0x438]
call esi
movups xmm0, xmmword [ebp - 0x424]
mov edx, dword [ebp + 0x1c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x414]
movq qword [edi + 0x10], xmm0
cmp edx, 0x10
jb 0x407be5
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407bdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d32
push edx
push ecx
call fcn.0041535e
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 0x407c2b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407c21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d32
push edx
push ecx
call fcn.0041535e
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 0x407d10
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407d06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d32
jmp 0x407d06
push 0
push 0x42e35b
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.00413cf0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407cc1
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407cb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d32
push edx
push ecx
call fcn.0041535e
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 0x407c2b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407c21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d32
jmp 0x407c21
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.004187ac
call fcn.004187ac
call fcn.00415003
call fcn.004187ac
int3