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

Disassembly:
mov eax, 0x3938
call fcn.00409160
push ebx
push ebp
push esi
lea eax, [esp + 0x2d20]
push edi
push eax
push str.3BC73CBCBB53416DE387554B88D579EA47A6DEA8326ED7A6C96FAB53F8CFDDDEB63E12C4C35C37088611AAF6075B3501ED23B6D0
call fcn.00408390
lea ecx, [esp + 0x52c]
push ecx
push str.3A7821891464C32D9F90C1433862EB8A519C7FBA9B683F456784A4FF8B71F33F65B99E4CCB8912761DA135A9A4175EDF3B3C238D4B73D75305141E0BCC0CBE0E03B2BAEDDD5F6482F69CFF070DB00A891698B1E04829927D0579C1F2B0C76608C46A1186112DA689BD10E2729EFF7F588EAA0557C374710D79F3FF8F12738BD5
call fcn.00408390
mov edx, dword [esp + 0x395c]
mov eax, dword [esp + 0x3960]
mov ecx, dword [esp + 0x3964]
add esp, 0x10
push edx
push eax
lea edx, [esp + 0x52c]
push ecx
lea eax, [esp + 0x3130]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x538]
push ecx
push str.3BCCE9365AEBD113449E6DC914D4230BF4DA907A67D01DFDBBEAF4C6C1E6
call fcn.00408390
lea edi, [esp + 0x540]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x407cbb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3938
ret
push 0
push 0
push 3
push 0x41989c
push 0x41989c
lea edx, [esp + 0x2d38]
push 0x50
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
jne 0x407cf7
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3938
ret
push 0
push 0x18
push 0
push 0x41989c
lea eax, [esp + 0x3134]
push str.HTTP_1.1
push eax
push 0x412c7c
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x407d3b
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3938
ret
xor edi, edi
push edi
push edi
push edi
push edi
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x407da9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x124]
push ecx
push 0x400
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407da1
mov ecx, eax
lea esi, [esp + 0x124]
mov edx, ecx
lea edi, [esp + edi + 0x524]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x10], ecx
mov edi, ecx
jmp 0x407d50
mov byte [esp + edi + 0x524], 0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
lea eax, [esp + 0x1c]
lea edi, [esp + 0x524]
push eax
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
push 1
push ecx
lea ecx, [esp + 0x530]
push ecx
call fcn.004086c0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x534]
push edx
push eax
push esi
call fcn.00408790
add esp, 0x1c
test eax, eax
jle 0x407e3f
inc esi
cmp esi, 6
je 0x407e4c
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x524]
push ecx
push edx
push 0
call fcn.00408790
inc eax
push eax
lea eax, [esp + 0x534]
push 0
push eax
call fcn.00408a70
lea ecx, [esp + 0x34]
lea edx, [esp + 0x53c]
push ecx
push edx
push 0
call fcn.00408790
add esp, 0x24
test eax, eax
jg 0x407df9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3938
ret
lea eax, [esp + 0x524]
push 0x41989c
push eax
call fcn.00408970
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3938
ret