Function at 0x10004957
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x4e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x45c], eax
mov eax, dword [ebp + 0x468]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x46c]
push ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x470]
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x474]
push edi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x100049a8
mov dword [eax], ebx
call fcn.1000555a
test al, al
jne 0x100049cb
xor al, al
mov ecx, dword [ebp + 0x45c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005901
add ebp, 0x460
leave
ret
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x434]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x70], eax
mov eax, 0x100
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ecx, [ebp + 0x234]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], 0x10
mov dword [ebp - 0x54], ecx
jb 0x10004a17
mov esi, dword [esi + 4]
jmp 0x10004a1a
add esi, 4
lea ecx, [ebp - 0x80]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x100049b1
push 4
mov byte [ebp - 0x21], bl
mov ecx, str.https
lea eax, [ebp + 0x434]
pop esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004a60
cmp dx, bx
je 0x10004a5c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004a60
add eax, esi
add ecx, esi
cmp dx, bx
jne 0x10004a3c
xor eax, eax
jmp 0x10004a65
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10004a6f
mov byte [ebp - 0x21], 1
jmp 0x10004aab
mov ecx, str.http
lea eax, [ebp + 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004a9e
cmp dx, bx
je 0x10004a9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004a9e
add eax, esi
add ecx, esi
cmp dx, bx
jne 0x10004a7a
xor eax, eax
jmp 0x10004aa3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100049b1
push ebx
push ebx
push ebx
push ebx
push str.Breakpad_1.0__Windows_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x100049b1
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x68]
lea eax, [ebp + 0x34]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, ebx
jne 0x10004af0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100049b1
movzx eax, byte [ebp - 0x21]
neg eax
sbb eax, eax
push ebx
and eax, 0x800000
or eax, 0x80000
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0x234]
push eax
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
jne 0x10004b33
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x28]
call esi
jmp 0x100049b1
lea edi, [ebp - 0x20]
call fcn.10004e74
push str.Content_Type:_multipart_form_data__boundary
lea ecx, [ebp - 4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, edi
push eax
lea ecx, [ebp - 4]
call dword [0x10007100]
mov eax, dword [ebp]
push 8
pop edi
cmp dword [ebp + 0x14], edi
jae 0x10004b63
lea eax, [ebp]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea ecx, [ebp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x34]
call fcn.10004ecf
add esp, 0xc
test al, al
jne 0x10004bc4
lea ecx, [ebp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2c]
jmp 0x10004b27
cmp dword [ebp + 0x30], 0x10
mov eax, dword [ebp + 0x1c]
jae 0x10004bd0
lea eax, [ebp + 0x1c]
push dword [ebp + 0x2c]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10004b98
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x454]
push eax
push 0x13
push esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x10004c32
lea ecx, [ebp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
mov al, bl
jmp 0x100049b3
push 0xa
lea eax, [ebp + 0x454]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll_wcstol]
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
cmp ecx, ebx
je 0x10004c4e
mov dword [ecx], eax
cmp eax, 0xc8
sete al
cmp al, bl
je 0x10004c65
push dword [ebp - 0x30]
mov ecx, esi
call fcn.10004c69
pop ecx
mov bl, al
jmp 0x10004bfd