Function at 0x40cfa0
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, 0x4e0
mov eax, dword [0x4d2714]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x494], edx
mov edx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x490], edx
mov dword [ebp - 0x49c], eax
test eax, eax
je 0x40cff7
mov dword [eax], 0
push ecx
call fcn.0040a450
add esp, 4
test al, al
jne 0x40d015
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x4e0]
push 0
push eax
call fcn.004231d0
lea ecx, [ebp - 0x2c]
mov eax, 0x100
mov dword [ebp - 0x4dc], ecx
add esp, 0xc
cmp dword [esi + 0x18], 8
lea edx, [ebp - 0x42c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4b0], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x4e0], 0x3c
mov dword [ebp - 0x4d8], 0x10
mov dword [ebp - 0x4d0], edx
mov dword [ebp - 0x4b4], ecx
jb 0x40d07c
mov esi, dword [esi + 4]
jmp 0x40d07f
add esi, 4
lea edx, [ebp - 0x4e0]
push edx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40d004
mov byte [ebp - 0x481], 0
mov ecx, 0x492e0c
lea eax, [ebp - 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d0cd
test dx, dx
je 0x40d0c9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d0cd
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d0a7
xor eax, eax
jmp 0x40d0d2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d0df
mov byte [ebp - 0x481], 1
jmp 0x40d11a
mov ecx, 0x492e00
lea eax, [ebp - 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d10d
test dx, dx
je 0x40d109
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d10d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d0e7
xor eax, eax
jmp 0x40d112
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d004
push ebx
push 0
push 0
push 0
push 0
push str.Breakpad_1.0__Windows_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x488], ebx
test ebx, ebx
jne 0x40d14c
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c8]
push edi
push 0
push 0
push 3
push 0
push 0
push eax
lea ecx, [ebp - 0x42c]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
jne 0x40d18c
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebp - 0x481]
neg edx
push 0
sbb edx, edx
and edx, 0x800000
or edx, 0x80000
push edx
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 0x40d1e4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x480]
push ecx
call fcn.0040b830
lea edx, [ebp - 0x480]
push edx
lea eax, [ebp - 0x464]
push eax
call fcn.0040b8c0
mov eax, dword [ebp - 0x460]
add esp, 0xc
cmp dword [ebp - 0x44c], 8
jae 0x40d21b
lea eax, [ebp - 0x460]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x448]
push ecx
mov ecx, dword [ebp - 0x4a4]
lea edx, [ebp - 0x480]
push edx
mov edx, dword [ebp - 0x4a0]
push eax
push ecx
push edx
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
call fcn.0040c890
add esp, 0x14
test al, al
je 0x40d328
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x40d2d8
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push eax
push 5
push esi
call ebx
test eax, eax
jne 0x40d2aa
push str.Could_not_unset_send_timeout__continuing..._n
call fcn.0042585e
add eax, 0x40
push eax
call fcn.004257ca
add esp, 8
mov eax, dword [ebp - 0x48c]
push 4
push eax
push 6
push esi
call ebx
test eax, eax
jne 0x40d2d2
push str.Could_not_unset_receive_timeout__continuing..._n
call fcn.0042585e
add eax, 0x40
push eax
call fcn.004257ca
add esp, 8
mov ebx, dword [ebp - 0x488]
cmp dword [ebp - 0x430], 0x10
mov eax, dword [ebp - 0x444]
jae 0x40d2ed
lea eax, [ebp - 0x444]
mov ecx, dword [ebp - 0x434]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40d328
push 0
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x13
push esi
mov dword [ebp - 0x498], 8
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40d36b
lea ecx, [ebp - 0x448]
call fcn.00401a50
lea ecx, [ebp - 0x464]
call fcn.004446d0
lea ecx, [ebp - 0x480]
call fcn.004446d0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push ebx
call esi
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004235d5
mov esp, ebp
pop ebp
ret
push 0xa
lea ecx, [ebp - 0xc]
push 0
push ecx
call fcn.0042579f
mov ecx, dword [ebp - 0x49c]
add esp, 0xc
test ecx, ecx
je 0x40d387
mov dword [ecx], eax
cmp eax, 0xc8
sete bl
test bl, bl
je 0x40d3a5
mov edx, dword [ebp - 0x490]
push edx
push esi
call fcn.0040c310
add esp, 8
mov bl, al
lea ecx, [ebp - 0x448]
call fcn.00401a50
lea ecx, [ebp - 0x464]
call fcn.004446d0
lea ecx, [ebp - 0x480]
call fcn.004446d0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x488]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.004235d5
mov esp, ebp
pop ebp
ret