Function at 0x4940c0
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4b0], ecx
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x494], ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x49411c
mov dword [ebx], 0
push ecx
call fcn.00493580
add esp, 4
test al, al
jne 0x49413c
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.00498640
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4ec], 0x3c
mov dword [ebp - 0x4e8], eax
add esp, 0xc
cmp dword [esi + 0x14], 8
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x4c0], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x4e4], 0x10
mov dword [ebp - 0x4d8], 0x100
mov dword [ebp - 0x4bc], 0x100
jb 0x4941a3
mov esi, dword [esi]
lea ecx, [ebp - 0x4ec]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x494129
mov byte [ebp - 0x48d], 0
lea eax, [ebp - 0x2c]
mov ecx, str.https
jmp 0x4941d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4941f6
test dx, dx
je 0x4941f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4941f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4941d0
xor eax, eax
jmp 0x4941fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x494208
mov byte [ebp - 0x48d], 1
jmp 0x494243
mov ecx, str.http
lea eax, [ebp - 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x494236
test dx, dx
je 0x494232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x494236
add eax, 4
add ecx, 4
test dx, dx
jne 0x494210
xor eax, eax
jmp 0x49423b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x494129
push edi
lea eax, [ebp - 0x45c]
push str.Breakpad_1.0__Windows_
push eax
call fcn.00431cb0
add esp, 0xc
lea eax, [ebp - 0x45c]
cmp dword [ebp - 0x448], 8
cmovae eax, dword [ebp - 0x45c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x49c], eax
test eax, eax
jne 0x49428c
xor bl, bl
jmp 0x4944a9
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x4d4]
lea ecx, [ebp - 0x42c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
jne 0x4942b7
xor bl, bl
jmp 0x49449d
xor eax, eax
mov ecx, 0x800000
cmp byte [ebp - 0x48d], al
push 0
cmovne eax, ecx
or eax, 0x80000
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x4942fb
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x49449a
lea eax, [ebp - 0x48c]
push eax
call fcn.00493640
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.00493d00
add esp, 0xc
lea eax, [ebp - 0x474]
cmp dword [ebp - 0x460], 8
cmovae eax, dword [ebp - 0x474]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea eax, [ebp - 0x444]
mov dword [ebp - 0x430], 0xf
push eax
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x434], 0
push eax
push dword [ebp - 0x4a8]
mov byte [ebp - 0x444], 0
push dword [ebp - 0x4a0]
push dword [ebp - 0x4b0]
call fcn.004936a0
add esp, 0x14
test al, al
je 0x49446e
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x4943eb
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push eax
push 5
push esi
call ebx
test eax, eax
jne 0x4943bd
push str.Could_not_unset_send_timeout__continuing..._n
call fcn.004975cf
add eax, 0x40
push eax
call fcn.0049cd1f
add esp, 8
mov eax, dword [ebp - 0x498]
push 4
push eax
push 6
push esi
call ebx
test eax, eax
jne 0x4943e5
push str.Could_not_unset_receive_timeout__continuing..._n
call fcn.004975cf
add eax, 0x40
push eax
call fcn.0049cd1f
add esp, 8
mov ebx, dword [ebp - 0x494]
push dword [ebp - 0x434]
cmp dword [ebp - 0x430], 0x10
lea eax, [ebp - 0x444]
cmovae eax, dword [ebp - 0x444]
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x49446e
push 0
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], 8
push eax
lea eax, [ebp - 0xc]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x49446e
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0049dcf8
add esp, 0xc
test ebx, ebx
je 0x49444f
mov dword [ebx], eax
cmp eax, 0xc8
sete bl
test bl, bl
je 0x494470
push dword [ebp - 0x4a4]
push esi
call fcn.00493ea0
add esp, 8
mov bl, al
jmp 0x494470
xor bl, bl
lea ecx, [ebp - 0x444]
call fcn.004049cf
lea ecx, [ebp - 0x474]
call fcn.0040544a
lea ecx, [ebp - 0x48c]
call fcn.0040544a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push dword [ebp - 0x49c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x448], 8
jb 0x4944c0
push dword [ebp - 0x45c]
call fcn.00492cb0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret