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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], esi
je 0x4001704
cmp dword [ebp + 0xc], esi
je 0x4001704
cmp dword [ebp + 0x10], esi
je 0x4001704
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x5c]
push esi
push eax
mov dword [ebp - 0x20], 0x4006330
mov dword [ebp - 0x1c], esi
call fcn.04004174
lea eax, [ebp - 0x160]
mov dword [ebp - 0x4c], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x30], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4001703
push esi
push esi
push esi
push 1
push 0x40062f8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4001703
push esi
push esi
push 3
push esi
push esi
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x40016fa
push esi
push 0x400100
lea ecx, [ebp - 0x20]
push ecx
push esi
push esi
push dword [ebp - 0x30]
push 0x40062f0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, esi
je 0x40016f1
push dword [ebp + 0x10]
lea eax, [ebp - 0x664]
push 0x4006298
push 0x400
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x40016e8
mov eax, dword [ebp + 0x20]
cmp eax, esi
mov dword [ebp - 0x10], 0x7530
jle 0x4001642
mov dword [ebp - 0x10], eax
push ebx
push 4
lea eax, [ebp - 0x10]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, dword [ebp + 0x1c]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 8], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40016cf
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x14], esi
je 0x4001688
cmp dword [ebp + 0x18], esi
je 0x4001688
cmp edi, esi
jne 0x40016b2
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push eax
push 0x400
lea eax, [ebp - 0xa64]
push eax
push dword [ebp - 4]
call ebx
cmp dword [ebp + 8], esi
ja 0x400168b
jmp 0x40016d5
sub dword [ebp + 0x18], eax
add dword [ebp + 0x14], eax
cmp dword [ebp + 0x18], esi
jle 0x40016d5
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
mov dword [ebp + 8], esi
push dword [ebp + 0x14]
push dword [ebp - 4]
call ebx
mov eax, dword [ebp + 8]
add dword [edi], eax
cmp eax, esi
jne 0x40016a7
jmp 0x40016d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [ebp - 8]
cmp dword [ebp - 0xc], esi
jne 0x40016e7
cmp dword [ebp - 8], 1
jl 0x400165e
pop ebx
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop esi
leave
ret