Function at 0x404f80
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 0x412972
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x4170d0]
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 + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x494], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
mov dword [ebp - 0x4a8], ecx
mov dword [ebp - 0x498], edx
mov dword [ebp - 0x4a4], eax
je 0x404fe8
mov dword [eax], 0
push ecx
call fcn.00403530
add esp, 4
test al, al
je 0x405162
push 0x3c
lea ecx, [ebp - 0x4f0]
push 0
push ecx
call fcn.00406350
lea eax, [ebp - 0x238]
mov dword [ebp - 0x4e0], eax
mov eax, 0x200
add esp, 0xc
cmp dword [esi + 0x18], 8
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4c0], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x4f0], 0x3c
mov dword [ebp - 0x4ec], edx
mov dword [ebp - 0x4e8], 0x20
mov dword [ebp - 0x4c4], ecx
jb 0x405060
mov esi, dword [esi + 4]
jmp 0x405063
add esi, 4
lea edx, [ebp - 0x4f0]
push edx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x405162
mov byte [ebp - 0x48d], 0
mov ecx, str.https
lea eax, [ebp - 0x38]
jmp 0x405090
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4050b6
test dx, dx
je 0x4050b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4050b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405090
xor eax, eax
jmp 0x4050bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4050c8
mov byte [ebp - 0x48d], 1
jmp 0x4050ff
mov ecx, str.http
lea eax, [ebp - 0x38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4050f6
test dx, dx
je 0x4050f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4050f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4050d0
xor eax, eax
jmp 0x4050fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405162
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 - 0x4b4], ebx
test ebx, ebx
mov dword [ebp - 4], 0
je 0x405162
mov eax, dword [ebp - 0x4d8]
push 0
push 0
push 3
push 0
push 0
push eax
lea ecx, [ebp - 0x238]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x4ac], edi
test edi, edi
mov byte [ebp - 4], 1
jne 0x405169
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x405390
mov al, byte [ebp - 0x48d]
neg al
push 0
lea edx, [ebp - 0x438]
sbb eax, eax
and eax, 0x800000
push eax
push 0
push 0
push 0
push edx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x4b0], esi
test esi, esi
mov byte [ebp - 4], 2
jne 0x4051c1
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
mov byte [ebp - 4], al
call esi
push ebx
mov dword [ebp - 4], 0xffffffff
call esi
xor al, al
jmp 0x405390
lea eax, [ebp - 0x48c]
push eax
call fcn.00403e60
lea ecx, [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x470]
push edx
mov byte [ebp - 4], 3
call fcn.00403ef0
add esp, 0xc
cmp dword [ebp - 0x458], 8
mov eax, dword [ebp - 0x46c]
mov byte [ebp - 4], 4
jae 0x405200
lea eax, [ebp - 0x46c]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
mov edx, dword [ebp - 0x498]
lea eax, [ebp - 0x454]
push eax
mov eax, dword [ebp - 0x4a0]
lea ecx, [ebp - 0x48c]
push ecx
mov ecx, dword [ebp - 0x4a8]
push edx
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.004047e0
mov eax, dword [ebp - 0x450]
add esp, 0x14
cmp dword [ebp - 0x43c], 0x10
jae 0x40526e
lea eax, [ebp - 0x450]
mov edx, dword [ebp - 0x440]
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4052d7
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 4
call fcn.00401cd0
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 3
call fcn.00401270
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 2
call fcn.00401270
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 1
call esi
push edi
mov byte [ebp - 4], 0
call esi
push ebx
mov dword [ebp - 4], 0xffffffff
call esi
xor al, al
jmp 0x405390
push 0
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x13
push esi
mov dword [ebp - 0x49c], 8
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x405285
push 0xa
lea edx, [ebp - 0x18]
push 0
push edx
call fcn.0040631d
mov ecx, dword [ebp - 0x4a4]
add esp, 0xc
test ecx, ecx
je 0x405317
mov dword [ecx], eax
cmp eax, 0xc8
sete al
test al, al
mov byte [ebp - 0x48d], al
je 0x40533f
mov eax, dword [ebp - 0x494]
push eax
push esi
call fcn.00404490
add esp, 8
mov byte [ebp - 0x48d], al
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 4
call fcn.00401cd0
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 3
call fcn.00401270
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 2
call fcn.00401270
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 1
call esi
push edi
mov byte [ebp - 4], 0
call esi
push ebx
mov dword [ebp - 4], 0xffffffff
call esi
mov al, byte [ebp - 0x48d]
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.00405a6f
mov esp, ebp
pop ebp
ret