Function at 0x40d455
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, 0x534
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4e0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x4f0], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4e4], edx
mov dword [ebp - 0x4ec], eax
push edi
test eax, eax
je 0x40d495
and dword [eax], 0
mov edi, dword [edx]
mov eax, dword [edi]
mov dword [ebp - 0x4dc], eax
jmp 0x40d4f6
mov ebx, dword [eax + 0x20]
add eax, 0x10
test ebx, ebx
je 0x40d5a2
xor ecx, ecx
test ebx, ebx
je 0x40d4e5
cmp dword [eax + 0x14], 8
jb 0x40d4bf
mov edx, dword [eax]
jmp 0x40d4c1
mov edx, eax
movzx edx, word [edx + ecx*2]
cmp edx, 0x20
jb 0x40d5a2
cmp edx, 0x22
je 0x40d5a2
cmp edx, 0x7f
ja 0x40d5a2
inc ecx
cmp ecx, ebx
jb 0x40d4b5
lea ecx, [ebp - 0x4dc]
call fcn.00408e10
mov eax, dword [ebp - 0x4dc]
cmp eax, edi
jne 0x40d4a1
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x530]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x530], edi
mov dword [ebp - 0x52c], eax
mov ecx, 0x100
lea eax, [ebp - 0x290]
mov dword [ebp - 0x528], 0x10
mov dword [ebp - 0x520], eax
add esp, 0xc
cmp dword [esi + 0x14], 8
lea eax, [ebp - 0x490]
mov dword [ebp - 0x504], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x51c], ecx
mov dword [ebp - 0x500], ecx
jb 0x40d55c
mov esi, dword [esi]
lea ecx, [ebp - 0x530]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40d5a2
push 4
xor bl, bl
lea eax, [ebp - 0x2c]
mov ecx, str.https
pop esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d5a9
test dx, dx
je 0x40d59e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d5a9
add eax, esi
add ecx, esi
test dx, dx
jne 0x40d57e
xor eax, eax
jmp 0x40d5ae
xor al, al
jmp 0x40d833
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d5b6
mov bl, 1
jmp 0x40d5eb
mov ecx, str.http
lea eax, [ebp - 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d5e2
test dx, dx
je 0x40d5de
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d5e2
add eax, esi
add ecx, esi
test dx, dx
jne 0x40d5be
xor eax, eax
jmp 0x40d5e7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d5a2
xor eax, eax
push eax
push eax
push eax
push eax
push str.Breakpad_1.0__Windows_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x40d609
xor bl, bl
jmp 0x40d831
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push dword [ebp - 0x518]
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x4f4], eax
test eax, eax
jne 0x40d636
xor bl, bl
jmp 0x40d82a
push 0
test bl, bl
mov edx, 0x880000
mov ecx, 0x80000
cmovne ecx, edx
xor ebx, ebx
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x490]
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x40d81e
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call ebx
mov dword [ebp - 0x4dc], eax
call ebx
push eax
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x90]
push str.___________________________
push str._s_08X_08X
push 0x2c
push eax
call fcn.0040d1e0
add esp, 0x18
lea ecx, [ebp - 0x4d8]
xor eax, eax
and dword [ebp - 0x4c8], eax
mov word [ebp - 0x3a], ax
push 7
pop ebx
mov word [ebp - 0x4d8], ax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x4c4], ebx
call fcn.0040943b
mov dword [ebp - 0x4ac], ebx
lea ecx, [ebp - 0x4c0]
xor eax, eax
xor ebx, ebx
push str.Content_Type:_multipart_form_data__boundary
mov dword [ebp - 0x4b0], ebx
mov word [ebp - 0x4c0], ax
call fcn.0040943b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.0040ad32
cmp dword [ebp - 0x4ac], 8
lea eax, [ebp - 0x4c0]
push 0x20000000
cmovae eax, dword [ebp - 0x4c0]
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edx, dword [ebp - 0x4e0]
lea eax, [ebp - 0x4a8]
mov ecx, dword [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4d8]
mov dword [ebp - 0x494], 0xf
push eax
mov dword [ebp - 0x498], ebx
mov byte [ebp - 0x4a8], bl
call fcn.0040d994
pop ecx
pop ecx
test al, al
je 0x40d7ea
push dword [ebp - 0x498]
cmp dword [ebp - 0x494], 0x10
lea eax, [ebp - 0x4a8]
cmovae eax, dword [ebp - 0x4a8]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40d7ea
push ebx
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x4e8], 8
push eax
lea eax, [ebp - 0xc]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40d7ea
push 0xa
lea eax, [ebp - 0xc]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [ebp - 0x4ec]
add esp, 0xc
test ecx, ecx
je 0x40d7cf
mov dword [ecx], eax
cmp eax, 0xc8
sete bl
test bl, bl
je 0x40d7ea
mov edx, dword [ebp - 0x4f0]
mov ecx, esi
call fcn.0040d844
mov bl, al
push 0
push 1
lea ecx, [ebp - 0x4a8]
call fcn.004095c8
push 0
push 1
lea ecx, [ebp - 0x4c0]
call fcn.004091f1
push 0
push 1
lea ecx, [ebp - 0x4d8]
call fcn.004091f1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4f4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret