Function at 0x4c0eb0
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
mov eax, 0x92a4
call fcn.00536300
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x34]
push esi
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 0x924c], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x925c], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x9244], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x9258], ecx
mov dword [ebp - 0x9268], edx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x9264], eax
mov eax, dword [ebp + 0x30]
lea ecx, [ebp - 0x92a4]
push 0
push ecx
mov dword [ebp - 0x9260], edx
mov dword [ebp - 0x9254], eax
mov dword [ebp - 0x9250], 0
call fcn.005336c0
lea edx, [ebp - 0x1a40]
mov dword [ebp - 0x92a0], edx
add esp, 0xc
lea edx, [ebp - 0x8240]
mov dword [ebp - 0x9280], edx
lea edx, [ebp - 0x92a4]
push edx
lea eax, [ebp - 0x2240]
mov dword [ebp - 0x9294], eax
push 0
lea ecx, [ebp - 0x2a40]
lea eax, [ebp - 0x9240]
mov dword [ebp - 0x9288], ecx
mov dword [ebp - 0x9278], eax
mov eax, 0x400
push 0
lea ecx, [ebp - 0x8a40]
push edi
mov dword [ebp - 0x92a4], 0x3c
mov dword [ebp - 0x9270], ecx
mov dword [ebp - 0x9284], eax
mov dword [ebp - 0x9274], eax
mov dword [ebp - 0x929c], eax
mov dword [ebp - 0x927c], eax
mov dword [ebp - 0x9290], eax
mov dword [ebp - 0x926c], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4c12f5
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x4c12f5
push eax
push eax
push eax
mov eax, dword [ebp - 0x9244]
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x4c12f5
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push 0
push 4
lea ecx, [ebp - 0x9244]
push ecx
push 2
push eax
mov dword [ebp - 0x9244], 0xbb8
call edi
mov eax, dword [esi]
push 0
push 4
lea edx, [ebp - 0x9244]
push edx
push 5
push eax
call edi
mov edx, dword [esi]
push 0
push 4
lea ecx, [ebp - 0x9244]
push ecx
push 6
push edx
call edi
mov edi, dword [ebp - 0x924c]
mov eax, dword [ebp - 0x9280]
mov ecx, dword [ebp - 0x9288]
mov edx, dword [ebp - 0x928c]
push edi
push 0
push 3
push eax
mov eax, dword [ebp - 0x9294]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, dword [ebp - 0x9254]
mov dword [edx], eax
test eax, eax
je 0x4c12f5
xor eax, eax
push 0x4ffe
push eax
lea ecx, [ebp - 0x7a3e]
push ecx
mov word [ebp - 0x7a40], ax
call fcn.005336c0
mov edx, dword [ebp - 0x9278]
push edx
lea eax, [ebp - 0x7a40]
push 0xffffffffffffffff
push eax
call fcn.005343d0
mov esi, dword [ebp - 0x9268]
add esp, 0x18
test esi, esi
je 0x4c10eb
push 0xffffffffffffffff
push esi
call fcn.00534a48
add esp, 8
test eax, eax
je 0x4c10eb
push 0x5a6a3c
lea ecx, [ebp - 0x7a40]
push 0xffffffffffffffff
push ecx
call fcn.00534500
push esi
lea edx, [ebp - 0x7a40]
push 0xffffffffffffffff
push edx
call fcn.00534500
add esp, 0x18
mov edx, dword [ebp - 0x925c]
push edi
push 0x84280000
lea eax, [ebp - 0x9248]
push eax
mov eax, dword [ebp - 0x9254]
push 0
push 0
lea ecx, [ebp - 0x7a40]
push ecx
mov ecx, dword [eax]
push edx
push ecx
mov dword [ebp - 0x9248], 0x5b2634
mov dword [ebp - 0x9244], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx], eax
test eax, eax
je 0x4c12f5
push 0xffffffffffffffff
push str.Accept:___r_n
call fcn.00534a48
mov edx, dword [ebx]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
add esp, 8
push 0x80000000
push eax
push str.Accept:___r_n
push edx
call edi
test eax, eax
je 0x4c12f5
mov esi, dword [ebp - 0x9260]
test esi, esi
je 0x4c11d1
cmp word [esi], 0
je 0x4c11d1
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x123e]
push ecx
mov word [ebp - 0x1240], ax
call fcn.005336c0
push esi
push str.Cookie:__s_r_n
lea edx, [ebp - 0x1240]
push 0x400
push edx
call fcn.00534580
lea eax, [ebp - 0x1240]
push 0xffffffffffffffff
push eax
call fcn.00534a48
mov edx, dword [ebx]
add esp, 0x24
push 0x20000000
push eax
lea ecx, [ebp - 0x1240]
push ecx
push edx
call edi
test eax, eax
je 0x4c12f5
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xa3e]
push ecx
mov word [ebp - 0xa40], ax
call fcn.005336c0
mov eax, dword [ebp - 0x9258]
mov ecx, 0xc
mov esi, str.application_octet_stream
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
test eax, eax
jne 0x4c120d
lea eax, [ebp - 0x38]
push eax
push str.Content_Type:__s_r_n
lea edx, [ebp - 0xa40]
push 0x400
push edx
call fcn.00534580
lea eax, [ebp - 0xa40]
push 0xffffffffffffffff
push eax
call fcn.00534a48
mov edx, dword [ebx]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
add esp, 0x18
push 0x20000000
push eax
lea ecx, [ebp - 0xa40]
push ecx
push edx
call esi
test eax, eax
je 0x4c12f5
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x23e]
push ecx
mov word [ebp - 0x240], ax
call fcn.005336c0
mov edi, dword [ebp + 0x20]
push edi
push 0x5b2574
lea edx, [ebp - 0x240]
push 0x104
push edx
call fcn.00534580
lea eax, [ebp - 0x240]
push 0xffffffffffffffff
push eax
call fcn.00534a48
mov edx, dword [ebx]
add esp, 0x24
push 0x20000000
push eax
lea ecx, [ebp - 0x240]
push ecx
push edx
call esi
test eax, eax
je 0x4c12f5
mov eax, dword [ebp - 0x9264]
mov ecx, dword [ebx]
push edi
push eax
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4c12f5
mov edx, dword [ebx]
mov esi, dword [ebp - 0x924c]
push edx
mov ecx, esi
call fcn.004c0e40
mov eax, dword [ebx]
push eax
mov ecx, esi
call fcn.004c0e40
cmp eax, 0x12c
jae 0x4c12f5
mov dword [ebp - 0x9250], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x9250]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret 0x30