Function at 0x4ef8a0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Make an http request with a cookie
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3ece
mov eax, dword fs:[0]
push eax
mov eax, 0x8b20
call fcn.0053d5e0
mov eax, dword [0x61ce74]
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 dword [ebp - 0x8ad4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x8aec], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x8adc], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x8ad8], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x8af0], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x8ae4], ecx
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8ae0], ecx
lea ecx, [ebp - 0x62cc]
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x8b28], ecx
lea ecx, [ebp - 0x6acc]
mov dword [ebp - 0x8b1c], ecx
lea ecx, [ebp - 0x72cc]
mov dword [ebp - 0x8b10], ecx
lea ecx, [ebp - 0x7acc]
mov dword [ebp - 0x8b08], ecx
lea ecx, [ebp - 0x82cc]
mov dword [ebp - 0x8b00], ecx
lea ecx, [ebp - 0x8acc]
mov dword [ebp - 0x8af8], ecx
lea ecx, [ebp - 0x8b2c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x8b20], 0
mov dword [ebp - 0x8b14], 0
mov dword [ebp - 0x8b2c], 0x3c
mov dword [ebp - 0x8b0c], 0x400
mov dword [ebp - 0x8afc], 0x400
mov dword [ebp - 0x8b24], 0x400
mov dword [ebp - 0x8b04], 0x400
mov dword [ebp - 0x8b18], 0x400
mov dword [ebp - 0x8af4], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4efdac
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x4efdac
mov eax, dword [0x62a944]
test al, 1
jne 0x4efa0a
or eax, 1
mov dword [0x62a944], eax
mov dword [ebp - 4], 0
call fcn.004f0310
mov byte [0x62a940], al
jmp 0x4efa0f
mov al, byte [0x62a940]
push 0
push 0
push 0
test al, al
je 0x4efa1d
push 0
jmp 0x4efa1f
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
test eax, eax
je 0x4efdac
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
lea ecx, [ebp - 0x8ad0]
push 0
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x8ad0], 0xbb8
call esi
push 0
push 4
lea eax, [ebp - 0x8ad0]
push eax
push 5
push dword [edi]
call esi
push 0
push 4
lea eax, [ebp - 0x8ad0]
push eax
push 6
push dword [edi]
call esi
push dword [ebp - 0x8ad4]
push 0
push 3
push dword [ebp - 0x8b08]
push dword [ebp - 0x8b10]
push dword [ebp - 0x8b14]
push dword [ebp - 0x8b1c]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x8ae4]
mov dword [ebp - 0x8ad0], eax
mov dword [ecx], eax
test eax, eax
je 0x4efdac
push 0x5000
lea eax, [ebp - 0x5acc]
push 0
push eax
call fcn.00540d70
mov ecx, dword [ebp - 0x8b00]
lea edx, [ebp - 0x5acc]
add esp, 0xc
sub edx, ecx
jmp 0x4efae0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4efae0
test ebx, ebx
je 0x4efb6a
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4efb00
sub ecx, edx
sar ecx, 1
je 0x4efb6a
lea edi, [ebp - 0x5acc]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4efb20
mov eax, dword [0x5c9af0]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4efb35
lea edi, [ebp - 0x5acc]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x4efb50
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4efb50
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x8ad4]
cmp dword [ebp - 0x8b20], 4
mov ecx, 0x84a80000
mov eax, 0x84280000
mov dword [ebp - 0x8ae8], 0x5d9280
cmove eax, ecx
mov dword [ebp - 0x8ae4], 0
push eax
lea eax, [ebp - 0x8ae8]
push eax
push 0
push 0
lea eax, [ebp - 0x5acc]
push eax
push dword [ebp - 0x8aec]
push dword [ebp - 0x8ad0]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [ebp - 0x8ae0]
mov dword [esi], eax
test eax, eax
je 0x4efdac
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call ebx
test eax, eax
je 0x4efdac
mov edi, dword [ebp - 0x8af0]
test edi, edi
je 0x4efc58
cmp word [edi], 0
je 0x4efc58
push 0x800
lea eax, [ebp - 0xacc]
push 0
push eax
call fcn.00540d70
push edi
push str.Cookie:__s_r_n
lea eax, [ebp - 0xacc]
push 0x400
push eax
call fcn.0043f160
lea ecx, [ebp - 0xacc]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4efc30
sub ecx, edx
lea eax, [ebp - 0xacc]
push 0x20000000
sar ecx, 1
push ecx
push eax
push dword [esi]
call ebx
test eax, eax
je 0x4efdac
push 0x800
lea eax, [ebp - 0x12cc]
push 0
push eax
call fcn.00540d70
mov ecx, 0xc
lea edi, [ebp - 0x44]
mov esi, str.application_octet_stream
lea eax, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x8ad8]
test ecx, ecx
cmovne eax, ecx
push eax
push str.Content_Type:__s_r_n
lea eax, [ebp - 0x12cc]
movsw word es:[edi], word [esi]
push 0x400
push eax
call fcn.0043f160
lea ecx, [ebp - 0x12cc]
add esp, 0x1c
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4efcb0
mov edi, dword [ebp - 0x8ae0]
lea eax, [ebp - 0x12cc]
sub ecx, edx
push 0x20000000
sar ecx, 1
push ecx
push eax
push dword [edi]
call ebx
test eax, eax
je 0x4efdac
push 0x208
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.00540d70
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 0x2cc]
push esi
push str.Content_Length:__lu_r_n
push 0x104
push eax
call fcn.0043f160
lea ecx, [ebp - 0x2cc]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4efd17
sub ecx, edx
lea eax, [ebp - 0x2cc]
push 0x20000000
sar ecx, 1
push ecx
push eax
push dword [edi]
call ebx
test eax, eax
je 0x4efdac
push esi
push dword [ebp - 0x8adc]
push 0
push 0
push dword [edi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4efdac
push dword [edi]
mov ecx, dword [ebp - 0x8ad4]
call fcn.004ef830
lea eax, [ebp - 0x8adc]
mov dword [ebp - 0x8ad8], 0x80
push eax
lea eax, [ebp - 0x8ad8]
mov dword [ebp - 0x8adc], 0
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x20000013
push dword [edi]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4efda5
cmp dword [ebp - 0xc4], 0x12c
jae 0x4efdac
mov eax, 1
jmp 0x4efdae
xor eax, eax
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.0053d079
mov esp, ebp
pop ebp
ret 0x30