Function at 0x49ac20
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.004b14f0
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 0x9248], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x9268], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x9244], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x9260], ecx
mov dword [ebp - 0x924c], edx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x9254], eax
mov eax, dword [ebp + 0x34]
lea ecx, [ebp - 0x92a4]
push 0
push ecx
mov dword [ebp - 0x9258], edx
mov dword [ebp - 0x925c], eax
mov dword [ebp - 0x9264], 0
call sub.MSVCR100.dll_memset
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 0x49b0d4
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x49b0d4
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 0x49b0d4
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 eax, dword [ebp - 0x9248]
mov ecx, dword [ebp - 0x9280]
mov edx, dword [ebp - 0x9288]
push eax
mov eax, dword [ebp - 0x928c]
push 0
push 3
push ecx
mov ecx, dword [ebp - 0x9294]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x9244], esi
mov dword [ebx], esi
test esi, esi
je 0x49b0d4
xor eax, eax
push 0x4ffe
push eax
lea ecx, [ebp - 0x7a3e]
push ecx
mov word [ebp - 0x7a40], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x9278]
lea edx, [ebp - 0x7a40]
add esp, 0xc
sub edx, eax
jmp 0x49ae20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x49ae20
mov ebx, dword [ebp - 0x924c]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ae40
sub eax, edx
sar eax, 1
je 0x49aeb8
lea edi, [ebp - 0x7a40]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x49ae60
mov edx, dword [0x533c14]
mov eax, ebx
mov dword [edi], edx
mov edx, eax
jmp 0x49ae80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ae80
lea edi, [ebp - 0x7a40]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x49ae96
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x9244]
mov eax, dword [ebp - 0x9248]
push eax
mov eax, dword [ebp - 0x9268]
push 0x84280000
lea ecx, [ebp - 0x9250]
push ecx
push 0
push 0
lea edx, [ebp - 0x7a40]
push edx
push eax
push esi
mov dword [ebp - 0x9250], 0x533c0c
mov dword [ebp - 0x924c], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, dword [ebp - 0x925c]
mov dword [ebx], eax
test eax, eax
je 0x49b0d4
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x80000000
push 0xd
push str.Accept:___r_n
push eax
call edi
test eax, eax
je 0x49b0d4
mov esi, dword [ebp - 0x9258]
test esi, esi
je 0x49af9d
cmp word [esi], 0
je 0x49af9d
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x123e]
push edx
mov word [ebp - 0x1240], cx
call sub.MSVCR100.dll_memset
push esi
push str.Cookie:__s_r_n
lea eax, [ebp - 0x1240]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
lea eax, [ebp - 0x1240]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49af74
sub eax, edx
mov edx, dword [ebx]
push 0x20000000
sar eax, 1
push eax
lea ecx, [ebp - 0x1240]
push ecx
push edx
call edi
test eax, eax
je 0x49b0d4
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xa3e]
push ecx
mov word [ebp - 0xa40], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x9260]
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 0x49afd9
lea eax, [ebp - 0x38]
push eax
push str.Content_Type:__s_r_n
lea edx, [ebp - 0xa40]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
lea eax, [ebp - 0xa40]
add esp, 0x10
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49b000
mov ecx, dword [ebx]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
sub eax, edx
push 0x20000000
sar eax, 1
push eax
lea eax, [ebp - 0xa40]
push eax
push ecx
call esi
test eax, eax
je 0x49b0d4
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x23e]
push eax
mov word [ebp - 0x240], dx
call sub.MSVCR100.dll_memset
mov edi, dword [ebp + 0x20]
push edi
lea ecx, [ebp - 0x240]
push str.Content_Length:__lu_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x240]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49b070
sub eax, edx
push 0x20000000
sar eax, 1
push eax
mov eax, dword [ebx]
lea edx, [ebp - 0x240]
push edx
push eax
call esi
test eax, eax
je 0x49b0d4
mov ecx, dword [ebp - 0x9254]
mov edx, dword [ebx]
push edi
push ecx
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x49b0d4
mov eax, dword [ebx]
mov esi, dword [ebp - 0x9248]
push eax
mov ecx, esi
call fcn.0049abb0
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.0049abb0
cmp eax, 0x12c
mov eax, 1
jb 0x49b0da
mov eax, dword [ebp - 0x9264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0x30