Function at 0x40b180
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
push 0xffffffffffffffff
push 0x491592
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x4b9430]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x280], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x298], ecx
test ecx, ecx
je 0x40b1e2
mov dword [ecx], 0
call fcn.0040bfb0
test al, al
je 0x40b345
push 0x3c
lea edx, [ebp - 0x2dc]
push 0
push edx
call fcn.00463ac0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x120]
mov dword [ebp - 0x2d8], eax
mov eax, 0x100
mov ecx, 0x10
mov dword [ebp - 0x2cc], edx
add esp, 0xc
lea edx, [ebp - 0x220]
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2ac], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2dc], 0x3c
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2b0], edx
cmp dword [esi + 0x14], ecx
jb 0x40b253
mov esi, dword [esi]
lea ecx, [ebp - 0x2dc]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40b345
mov byte [ebp - 0x275], 0
mov ecx, str.https
lea eax, [ebp - 0x20]
jmp 0x40b280
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2a0
test dl, dl
je 0x40b29c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b280
xor eax, eax
jmp 0x40b2a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b2b2
mov byte [ebp - 0x275], 1
jmp 0x40b2e9
mov ecx, str.http
lea eax, [ebp - 0x20]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2e0
test dl, dl
je 0x40b2dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b2c0
xor eax, eax
jmp 0x40b2e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b345
push 0
push 0
push 0
push 0
push str.Breakpad_1.0__Windows_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x27c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40b345
mov edx, dword [ebp - 0x2c4]
push 0
push 0
push 3
push 0
push 0
push edx
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x29c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x40b34c
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40b585
movzx eax, byte [ebp - 0x275]
neg eax
push 0
sbb eax, eax
and eax, 0x800000
or eax, 0x80000
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x2a0], edi
mov byte [ebp - 4], 2
test edi, edi
jne 0x40b3a0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
xor al, al
jmp 0x40b585
lea esi, [ebp - 0x274]
call fcn.0040b7a0
mov edx, esi
push edx
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 4], 3
call fcn.0040b830
add esp, 8
mov eax, dword [ebp - 0x258]
mov esi, 0x10
cmp dword [ebp - 0x244], esi
jae 0x40b3da
lea eax, [ebp - 0x258]
push 0x20000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0x288]
push edx
push eax
lea edx, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.0040b8b0
add esp, 0xc
test al, al
jne 0x40b472
lea ecx, [ebp - 0x23c]
call fcn.00405290
lea ecx, [ebp - 0x258]
call fcn.00405290
lea ecx, [ebp - 0x274]
call fcn.00405290
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x27c]
push ecx
call esi
xor al, al
jmp 0x40b585
mov eax, dword [ebp - 0x23c]
cmp dword [ebp - 0x228], esi
jae 0x40b486
lea eax, [ebp - 0x23c]
mov edx, dword [ebp - 0x22c]
push edx
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40b4da
lea ecx, [ebp - 0x23c]
call fcn.00405290
lea ecx, [ebp - 0x258]
call fcn.00405290
lea ecx, [ebp - 0x274]
call fcn.00405290
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 0x27c]
push eax
call esi
xor al, al
jmp 0x40b585
push 0
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x290]
push edx
push 0x13
push edi
mov dword [ebp - 0x284], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40b49d
push 0xa
lea ecx, [ebp - 0x290]
push 0
push ecx
call fcn.0046080b
mov ecx, dword [ebp - 0x298]
add esp, 0xc
test ecx, ecx
je 0x40b520
mov dword [ecx], eax
cmp eax, 0xc8
sete al
mov byte [ebp - 0x275], al
test al, al
je 0x40b549
mov edx, dword [ebp - 0x280]
push edx
mov ecx, edi
call fcn.0040b5b0
add esp, 4
mov byte [ebp - 0x275], al
lea ecx, [ebp - 0x23c]
call fcn.00405290
lea ecx, [ebp - 0x258]
call fcn.00405290
lea ecx, [ebp - 0x274]
call fcn.00405290
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 0x27c]
push eax
call esi
mov al, byte [ebp - 0x275]
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.0045d3b4
mov esp, ebp
pop ebp
ret