Function at 0x48437d
Capabilities:
Check internet connectivity via wininet
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
push 0xffffffffffffffff
push 0x4b9ee8
mov eax, dword fs:[0]
push eax
mov eax, 0x5fe0
call fcn.00494df0
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x5f90], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5f9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5fb0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5f98], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5fa0], eax
mov eax, dword [ebp + 0x28]
push 0x3c
mov dword [ebp - 0x5fa8], eax
mov eax, dword [ebp + 0x2c]
pop esi
xor ebx, ebx
push esi
mov dword [ebp - 0x5f94], eax
lea eax, [ebp - 0x5fec]
push ebx
push eax
mov dword [ebp - 0x5f8c], ecx
mov dword [ebp - 0x5fa4], ebx
call fcn.00492b40
lea eax, [ebp - 0x730]
mov dword [ebp - 0x5fe8], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x5fdc], eax
lea eax, [ebp - 0x938]
mov dword [ebp - 0x5fd0], eax
lea eax, [ebp - 0xb40]
mov dword [ebp - 0x5fc8], eax
lea eax, [ebp - 0xf50]
mov dword [ebp - 0x5fc0], eax
add esp, 0xc
lea eax, [ebp - 0xd48]
mov dword [ebp - 0x5fb8], eax
lea eax, [ebp - 0x5fec]
push eax
push ebx
push ebx
push dword [ebp - 0x5f9c]
mov dword [ebp - 0x5fec], esi
mov esi, 0x104
mov dword [ebp - 0x5fcc], esi
mov dword [ebp - 0x5fbc], esi
mov dword [ebp - 0x5fe4], esi
mov dword [ebp - 0x5fc4], esi
mov dword [ebp - 0x5fd8], esi
mov dword [ebp - 0x5fb4], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x48488f
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x48488f
push 0x7e
mov word [ebp - 0x118], ax
lea eax, [ebp - 0x116]
push ebx
push eax
call fcn.00492b40
add esp, 0xc
push 0x40
lea eax, [ebp - 0x118]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x5f9c], esp
push 0x4d29a0
push eax
call fcn.0042f046
pop ecx
pop ecx
call fcn.0047f7ff
mov ecx, dword [ebp - 0x5f8c]
add esp, 0x24
cmp dword [ecx + 4], ebx
je 0x4845aa
cmp eax, ebx
jne 0x484526
lea eax, [ebp - 0x118]
push 0x4be6f8
push eax
call fcn.00498165
pop ecx
pop ecx
test eax, eax
je 0x4845aa
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x5f88]
call fcn.0042e48d
lea eax, [ebp - 0x5f88]
push eax
lea eax, [ebp - 0x5f6c]
push eax
mov dword [ebp - 4], ebx
call fcn.00484249
mov ecx, eax
call fcn.00484293
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x5f88]
call fcn.0042e109
push esi
lea eax, [ebp - 0x528]
push ebx
push eax
call fcn.00492b40
mov eax, dword [ebp - 0x5f6c]
add esp, 0xc
cmp dword [ebp - 0x5f58], 8
jae 0x48458d
lea eax, [ebp - 0x5f6c]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.004950c7
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5f6c]
call fcn.0042e109
mov eax, dword [ebp - 0x5f8c]
mov eax, dword [eax]
cmp eax, ebx
je 0x4845d6
add eax, 4
push eax
call fcn.00493091
pop ecx
test eax, eax
je 0x4845d6
mov eax, dword [ebp - 0x5f8c]
mov eax, dword [eax]
push ebx
push ebx
add eax, 4
push eax
push 3
jmp 0x4845db
push ebx
push ebx
push ebx
push 1
push dword [ebp - 0x5f90]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
cmp eax, ebx
je 0x48488f
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push ebx
push 4
lea ecx, [ebp - 0x5f90]
push ecx
push 2
push eax
mov dword [ebp - 0x5f90], 0x7530
call esi
push ebx
push 4
lea eax, [ebp - 0x5f90]
push eax
push 5
push dword [edi]
call esi
push ebx
push 4
lea eax, [ebp - 0x5f90]
push eax
push 6
push dword [edi]
call esi
push dword [ebp - 0x5f8c]
push ebx
push 3
push dword [ebp - 0x5fc8]
push dword [ebp - 0x5fd0]
push dword [ebp - 0x5fd4]
push dword [ebp - 0x5fdc]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [ebp - 0x5fa8]
mov dword [esi], eax
cmp eax, ebx
je 0x48488f
xor eax, eax
push 0x4ffe
mov word [ebp - 0x5f50], ax
lea eax, [ebp - 0x5f4e]
push ebx
push eax
call fcn.00492b40
push dword [ebp - 0x5fc0]
lea eax, [ebp - 0x5f50]
push eax
call fcn.004950c7
push dword [ebp - 0x5f98]
call fcn.00493091
add esp, 0x18
test eax, eax
je 0x4846ce
lea eax, [ebp - 0x5f50]
push 0x4d299c
push eax
call fcn.00495096
push dword [ebp - 0x5f98]
lea eax, [ebp - 0x5f50]
push eax
call fcn.00495096
add esp, 0x10
push dword [ebp - 0x5f8c]
lea eax, [ebp - 0x5fac]
push 0x84280000
push eax
push ebx
push ebx
lea eax, [ebp - 0x5f50]
push eax
push dword [ebp - 0x5fb0]
mov dword [ebp - 0x5fac], 0x4d2520
push dword [esi]
mov dword [ebp - 0x5fa8], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x5f94]
mov dword [edi], eax
cmp eax, ebx
je 0x48488f
push SysReAllocString
mov esi, 0x4d2504
push esi
call fcn.00493091
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x48488f
push 0x14
pop ecx
mov esi, str.Content_Type:_application_octet_stream_r_n
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x98]
push 0x20000000
push eax
movsw word es:[edi], word [esi]
call fcn.00493091
mov esi, dword [ebp - 0x5f94]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
pop ecx
push eax
lea eax, [ebp - 0x98]
push eax
push dword [esi]
call edi
test eax, eax
je 0x48488f
xor eax, eax
push 0x206
mov word [ebp - 0x320], ax
lea eax, [ebp - 0x31e]
push ebx
push eax
call fcn.00492b40
push dword [ebp + 0x20]
lea eax, [ebp - 0x320]
push str.Content_Length:__d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x320]
push 0x20000000
push eax
call fcn.00493091
pop ecx
push eax
lea eax, [ebp - 0x320]
push eax
push dword [esi]
call edi
test eax, eax
je 0x48488f
push dword [ebp + 0x20]
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0x5fa0]
push ebx
push ebx
push dword [esi]
call edi
test eax, eax
je 0x48488f
push dword [esi]
mov ecx, dword [ebp - 0x5f8c]
call fcn.00483e99
cmp eax, 0x197
jne 0x484871
mov ecx, dword [ebp - 0x5f8c]
push esi
call fcn.00483ef9
test eax, eax
je 0x484871
push 0x32
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.00492b40
add esp, 0xc
mov dword [ebp - 0x5f94], ebx
lea eax, [ebp - 0x5f94]
push eax
push 0x32
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x484851
cmp dword [ebp - 0x5f94], ebx
jne 0x484830
push dword [ebp + 0x20]
push dword [ebp - 0x5fa0]
push ebx
push ebx
push dword [esi]
call edi
test eax, eax
je 0x48488f
push dword [esi]
mov ecx, dword [ebp - 0x5f8c]
call fcn.00483e99
push dword [esi]
mov ecx, dword [ebp - 0x5f8c]
call fcn.00483e99
cmp eax, 0x12c
jae 0x48488f
mov dword [ebp - 0x5fa4], 1
mov eax, dword [ebp - 0x5fa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004927bf
leave
ret 0x28