Function at 0x40cfb3
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 [0x414018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp + 0x14]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, edx
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x494], eax
je 0x40cffd
mov dword [eax], ebx
push ecx
call fcn.0040dc4c
test al, al
pop ecx
jne 0x40d019
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e380
leave
ret
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x4e8]
push ebx
push eax
call sub.MOZCRT19.dll_memset
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x4d8], eax
mov eax, 0x100
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 0x4b8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x4e8], edi
mov dword [ebp - 0x4e0], 0x10
mov dword [ebp - 0x4bc], ecx
jb 0x40d07d
mov esi, dword [esi + 4]
jmp 0x40d080
add esi, 4
lea ecx, [ebp - 0x4e8]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40d008
mov esi, dword [sym.imp.MOZCRT19.dll_wcscmp]
lea eax, [ebp - 0x2c]
push 0x411048
push eax
mov byte [ebp - 0x485], bl
call esi
test eax, eax
pop ecx
pop ecx
jne 0x40d0be
mov byte [ebp - 0x485], 1
jmp 0x40d0d3
lea eax, [ebp - 0x2c]
push str.http
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x40d008
push ebx
push ebx
push ebx
push ebx
push str.Breakpad_1.0__Windows_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x490], edi
je 0x40d008
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x4d0]
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x48c], esi
jne 0x40d124
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40d008
mov al, byte [ebp - 0x485]
neg al
push ebx
sbb eax, eax
and eax, 0x800000
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x498], eax
jne 0x40d166
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
jmp 0x40d008
lea edi, [ebp - 0x484]
call fcn.0040d4ed
mov eax, str.Content_Type:_multipart_form_data__boundary
lea ecx, [ebp - 0x468]
call fcn.0040424e
push 0xffffffffffffffff
push ebx
mov eax, edi
lea esi, [ebp - 0x468]
call fcn.0040c03e
mov eax, dword [ebp - 0x464]
push 8
pop esi
cmp dword [ebp - 0x450], esi
jae 0x40d1a8
lea eax, [ebp - 0x464]
mov edi, dword [ebp - 0x498]
push 0x20000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push ebx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x434], 0xf
call fcn.00405b40
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ebp - 0x4a0]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x484]
push eax
push dword [ebp - 0x4a8]
call fcn.0040d545
add esp, 0xc
test al, al
jne 0x40d245
push ebx
push 1
lea ecx, [ebp - 0x44c]
call fcn.00404a2b
push ebx
push 1
lea esi, [ebp - 0x468]
call fcn.0040516c
push ebx
push 1
lea esi, [ebp - 0x484]
call fcn.0040516c
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x48c]
call esi
push dword [ebp - 0x490]
jmp 0x40d15f
cmp dword [ebp - 0x434], 0x10
mov eax, dword [ebp - 0x448]
jae 0x40d25a
lea eax, [ebp - 0x448]
push dword [ebp - 0x438]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
push ebx
je 0x40d200
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x13
push edi
mov dword [ebp - 0x4a4], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40d2e1
mov byte [ebp - 0x485], bl
push ebx
push 1
lea ecx, [ebp - 0x44c]
call fcn.00404a2b
push ebx
push 1
lea esi, [ebp - 0x468]
call fcn.0040516c
push ebx
push 1
lea esi, [ebp - 0x484]
call fcn.0040516c
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x48c]
call esi
push dword [ebp - 0x490]
call esi
mov al, byte [ebp - 0x485]
jmp 0x40d00a
push 0xa
lea eax, [ebp - 0xc]
push ebx
push eax
call dword [sym.imp.MOZCRT19.dll_wcstol]
mov ecx, dword [ebp - 0x494]
add esp, 0xc
cmp ecx, ebx
je 0x40d2fd
mov dword [ecx], eax
cmp eax, 0xc8
sete al
cmp al, bl
je 0x40d317
push dword [ebp - 0x4ac]
mov ecx, edi
call fcn.0040d322
pop ecx
mov byte [ebp - 0x485], al
jmp 0x40d293