Function at 0x407900
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x192c
call fcn.00409160
push ebx
mov ebx, dword [esp + 0x1934]
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
push str.38F275C6368DB8DBAD602134CF9229344A13
call fcn.00408390
add esp, 8
lea edx, [esp + 0x118]
lea eax, [esp + 0x1118]
push edx
push eax
call fcn.0040f654
add esp, 4
push eax
push 0
call fcn.00408790
add esp, 0xc
test eax, eax
jne 0x407991
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push ebx
call fcn.00408a70
add esp, 0xc
push 0x412d98
push ebx
push 0
call fcn.00408790
lea ecx, [esp + 0x924]
push ecx
push eax
push 0
push ebx
call fcn.004086c0
lea edx, [esp + 0x934]
push 0x415c88
push edx
call fcn.00408970
mov ebp, eax
add esp, 0x24
test ebp, ebp
jg 0x4079cf
mov ebp, 0x50
lea eax, [esp + 0x1118]
push eax
push 0x412d98
push ebx
call fcn.00408a00
mov edx, dword [esp + 0x1958]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x407a0e
lea ecx, [esp + 0x1c]
push ecx
push str.3A09BD17CFD469AEF9D3673ED742A7CCB85875A403B2B0AADFEF8C4CC629C9F7AD81470CB3F371D86ABFE030CBAAADA3900F1C7C19CC77D454F46E40836237D4A1B89C0CF2FA4595034BBD5545FF99EB834B4D8C9A309D3EC3E1A35ADA2850A83BC691D02DA8C0FC
call fcn.00408390
add esp, 8
jmp 0x407a31
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
jne 0x407a5c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x192c
ret
push 0
push 0
push 3
push 0x41989c
push 0x41989c
lea ecx, [esp + 0x92c]
push ebp
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x407a9b
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x192c
ret
mov ebx, dword [esp + 0x1944]
push 0
push 0x80000000
push 0
push ebx
lea edx, [esp + 0x1128]
push str.HTTP_1.1
push edx
push 0x412c7c
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
jne 0x407ae5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x192c
ret
lea eax, [esp + 0xd18]
push eax
push str.3BBA5C7830789FDBFD732248AC3B91A36755BAF5805B6983D18CEEB5132DD3616E0A25BBEDB8873B12723F09520F6E23BECB937D790FE623438E949022D87BA7337391E0A03622ABC1B799D64F2DC4119F9FBB1A
call fcn.00408390
mov ecx, dword [esp + 0x1950]
add esp, 8
lea edx, [esp + 0xd18]
lea eax, [esp + 0x518]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x41989c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
xor ebx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x520]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x520]
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x407bc7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x118]
push ecx
push 0x400
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x407bbc
mov edx, dword [esp + 0x1950]
lea eax, [ecx + ebx]
cmp eax, edx
jae 0x407bb8
mov edx, dword [esp + 0x1944]
mov eax, ecx
lea esi, [esp + 0x118]
lea edi, [ebx + edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add ebx, ecx
test ecx, ecx
jne 0x407b64
mov ecx, dword [esp + 0x1944]
mov byte [ebx + ecx], 0
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov eax, ebx
pop edi
neg eax
sbb eax, eax
pop esi
neg eax
pop ebp
dec eax
pop ebx
add esp, 0x192c
ret