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

Disassembly:
push ebp
sub esp, 0x41c
lea ebp, [esp - 4]
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push 0x6c
mov eax, 0x427663
call fcn.004151ef
mov eax, dword [ebp + 0x42c]
mov ebx, dword [ebp + 0x428]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x430]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x434]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x438]
xor edi, edi
push edi
lea ecx, [ebp]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x20], edi
mov dword [ebp + 0x18], 0xf
call fcn.00403da7
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x406659
push edi
push 1
lea ecx, [ebp]
call fcn.004044f6
xor al, al
jmp 0x406909
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00415630
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], esi
push edi
xor esi, esi
inc esi
push edi
push ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x5c], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x406691
push edi
push esi
jmp 0x40664a
push 4
pop ebx
cmp dword [ebp - 0x64], ebx
je 0x4066a4
cmp dword [ebp - 0x64], 3
je 0x4066a4
cmp dword [ebp - 0x64], edi
jne 0x40668d
cmp dword [ebp - 0x54], edi
je 0x4066b8
inc dword [ebp - 0x50]
push dword [ebp - 0x50]
call fcn.00414e14
pop ecx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x4c], edi
je 0x4066cc
inc dword [ebp - 0x48]
push dword [ebp - 0x48]
call fcn.00414e14
pop ecx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x44], edi
je 0x4066e0
inc dword [ebp - 0x40]
push dword [ebp - 0x40]
call fcn.00414e14
pop ecx
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x60], edi
je 0x4068c1
inc dword [ebp - 0x5c]
push dword [ebp - 0x5c]
call fcn.00414e14
pop ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4068c1
push edi
push edi
push edi
push edi
push str.Internet_HTTP_Request
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x4068c1
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push 2
push eax
mov dword [ebp - 0x1c], 0x2710
call esi
push ebx
lea eax, [ebp - 0x1c]
push eax
push 6
push dword [ebp - 0x18]
call esi
push ebx
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 0x18]
call esi
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x46
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
call esi
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4d
push dword [ebp - 0x18]
call esi
push edi
push edi
push 3
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x4068b5
xor eax, eax
cmp dword [ebp - 0x64], ebx
jne 0x4067a7
mov eax, 0x803000
push edi
or eax, 0x80000000
push eax
push edi
push edi
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4068ac
mov eax, dword [ebp - 0x2c]
cmp eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], edi
je 0x4067e5
push eax
mov dword [ebp - 0x10], eax
call fcn.004156b0
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x1f
push dword [ebp - 0x14]
mov dword [ebp - 0x74], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x30], 0x100
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x1f
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x28]
mov esi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x10]
push edi
push edi
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x40684a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x2ee2
jne 0x406845
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push edi
push edi
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], edi
je 0x4068a3
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x2c], ebx
push 0x20000013
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [ebp - 0x34]
push 0x2800
call fcn.00405ce7
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, 0x400
jmp 0x406891
cmp dword [ebp - 0x10], edi
je 0x4068a3
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
lea eax, [ebp + 0x1c]
push eax
call fcn.00406434
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x40687d
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
inc esi
cmp dword [ebp - 0x54], edi
je 0x4068cf
push dword [ebp - 0x54]
call fcn.004152b1
pop ecx
cmp dword [ebp - 0x4c], edi
je 0x4068dd
push dword [ebp - 0x4c]
call fcn.004152b1
pop ecx
cmp dword [ebp - 0x60], edi
je 0x4068eb
push dword [ebp - 0x60]
call fcn.004152b1
pop ecx
cmp dword [ebp - 0x44], edi
je 0x4068f9
push dword [ebp - 0x44]
call fcn.004152b1
pop ecx
push edi
push esi
lea ecx, [ebp]
call fcn.004044f6
cmp dword [ebp - 0x20], esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.004151e0
add ebp, 0x420
leave
ret 0x14