Function at 0x407980
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 [0x43600c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x42c], ebx
je 0x407ebe
cmp dword [ebp + 0x30], 0
je 0x407ebe
cmp dword [ebp + 0x48], 0
je 0x407ebe
push 0
push 0
push 0
push 0
push 0x433a0c
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
mov byte [ebp - 0x420], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp + 0x1c], 0x10
mov ecx, eax
push 1
push 0
push 3
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x46c], ecx
cmovae eax, dword [ebp + 8]
push 0x50
push eax
push ecx
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 - 0x468], edi
push 0x437474
call fcn.00413aa0
lea ecx, [ebp - 0x484]
call fcn.00402bc0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x407a49
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 - 0x470]
mov dword [ebp - 0x428], eax
cmp edx, 0x10
jb 0x407a9c
mov ecx, dword [ebp - 0x484]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407a92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f6d
push edx
push ecx
call fcn.004153be
add esp, 8
cmp dword [ebp + 0x4c], 0x10
lea edi, [ebp + 0x38]
mov dword [ebp - 0x474], 0
cmovae edi, dword [ebp + 0x38]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x470], 0xf
mov byte [ebp - 0x484], 0
push 0x436994
call fcn.00413aa0
lea ecx, [ebp - 0x444]
call fcn.00402bc0
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x407ae9
mov esi, dword [esi]
push dword [ebp + 0x48]
push edi
sub esp, 0x18
mov ecx, esp
push 0x436994
call fcn.00413aa0
lea ecx, [ebp - 0x45c]
call fcn.00402bc0
add esp, 0x18
mov eax, dword [eax + 0x10]
push eax
push esi
mov esi, dword [ebp - 0x428]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x407b56
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f72
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
cmp edx, 0x10
jb 0x407bab
mov ecx, dword [ebp - 0x45c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407ba1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f72
push edx
push ecx
call fcn.004153be
add esp, 8
lea eax, [ebp - 0x424]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407db0
nop dword [eax]
cmp dword [ebp - 0x424], 0
je 0x407daa
lea eax, [ebp - 0x408]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0x444], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c01
sub eax, edx
lea ecx, [ebp - 0x444]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00413e00
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x434], ecx
mov dword [ebp - 0x44c], 0
cmovb ecx, dword [ebp - 0x434]
cmp dword [ebp - 0x430], 0x10
push ecx
cmovae eax, dword [ebp - 0x444]
lea ecx, [ebp - 0x45c]
push eax
mov dword [ebp - 0x448], 0xf
mov byte [ebp - 0x45c], 0
call fcn.00413e00
cmp dword [ebp - 0x448], 0x10
lea edx, [ebp - 0x45c]
mov edi, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x410]
cmovae edx, edi
mov eax, dword [ebp - 0x40c]
mov ebx, dword [ebp - 0x44c]
sub eax, ecx
mov dword [ebp - 0x460], ecx
push ebx
push edx
cmp ebx, eax
ja 0x407ce0
cmp dword [ebp - 0x40c], 0x10
lea esi, [ebp - 0x420]
lea eax, [ebx + ecx]
cmovae esi, dword [ebp - 0x420]
mov dword [ebp - 0x410], eax
lea eax, [esi + ecx]
push eax
call fcn.00416d90
mov ecx, dword [ebp - 0x460]
lea eax, [ebx + esi]
mov esi, dword [ebp - 0x428]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x407cff
mov byte [ebp - 0x464], 0
lea ecx, [ebp - 0x420]
push dword [ebp - 0x464]
push ebx
call fcn.00414550
mov edi, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x448]
cmp eax, 0x10
jb 0x407d35
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x407d2b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f6d
push ecx
push edi
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x407d6f
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407d65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f6d
push edx
push ecx
call fcn.004153be
add esp, 8
mov eax, dword [ebp - 0x424]
cmp eax, 0x400
jae 0x407f7c
mov byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x424]
push eax
push 0x3ff
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x407bd0
mov ebx, dword [ebp - 0x42c]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x468]
call esi
push dword [ebp - 0x46c]
call esi
movups xmm0, xmmword [ebp - 0x420]
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 0x420], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x410]
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
cmp edx, 0x10
jb 0x407e2f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407e25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f77
push edx
push ecx
call fcn.004153be
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 0x407e75
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407e6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f77
push edx
push ecx
call fcn.004153be
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 0x407f5a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407f50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f77
jmp 0x407f50
push 0
push 0x432e4b
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.00413e00
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407f0b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407f01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f77
push edx
push ecx
call fcn.004153be
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 0x407e75
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407e6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f77
jmp 0x407e6b
push edx
push ecx
call fcn.004153be
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414d4c
mov esp, ebp
pop ebp
ret
call fcn.004199f4
call fcn.004199f4
call fcn.004199f4
call fcn.00415063
int3