Function at 0x408750
Capabilities:
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a164
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x1c], esi
cmp ecx, esi
mov byte [ebp - 4], 4
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], esi
jne 0x408795
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jne 0x4087a1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [ebx + 0x74]
push edx
mov edx, dword [ebx + 0x10]
push edx
push esi
push 0x40ed0c
push esi
push ecx
push eax
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, esi
mov dword [ebx + 8], eax
jne 0x408835
mov edi, str.Cannot_perform_http_request
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Cannot_perform_http_request
lea ecx, [ebx + 0x60]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x70], eax
call fcn.00408c00
push 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x408beb
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x408841
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 0x70]
push str.Host:__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebp - 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 8]
push 0xa0000000
not ecx
dec ecx
lea edx, [ebp - 0x70]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x18], esi
inc eax
mov dword [ebx + 0x74], eax
cmp dword [ebp - 0x18], 0x14
jge 0x408b44
cmp dword [ebp + 0x40], esi
jbe 0x4088ef
mov edi, str.Content_Type:_application_x_www_form_urlencoded
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa0000000
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x70]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [ebp + 0x3c]
test eax, eax
jne 0x4088e0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebx + 8]
push ecx
push eax
push 0
push 0
push edx
jmp 0x4088f7
mov eax, dword [ebx + 8]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4089d5
mov ecx, 0x14
xor eax, eax
lea edi, [ebp - 0x70]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x14]
push ecx
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x70]
push edx
push eax
push 5
push ecx
mov dword [ebp - 0x14], 0x4f
call esi
test eax, eax
je 0x408946
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x78], eax
mov ecx, 0x14
xor eax, eax
lea edi, [ebp - 0x70]
lea edx, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
mov eax, dword [ebx + 8]
push ecx
push edx
push 0x13
push eax
mov dword [ebp - 0x14], 0x4f
call esi
test eax, eax
je 0x408981
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x7c], eax
push 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2f0c
jne 0x408a25
mov ecx, ebx
call fcn.00408c50
test al, al
jne 0x408a17
mov edi, str.Cannot_perform_http_request__client_authentication_needed_but_couldnt_detect_required_client_certificate
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Cannot_perform_http_request__client_authentication_needed_but_couldnt_detect_required_client_certificate
lea ecx, [ebx + 0x60]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
call esi
mov dword [ebx + 0x70], eax
jmp 0x4087f1
mov eax, dword [ebp - 0x18]
inc eax
xor esi, esi
mov dword [ebp - 0x18], eax
jmp 0x40887f
cmp eax, 0x2f0d
lea edx, [ebx + 0x60]
jne 0x408a87
mov edi, str.Cannot_perform_http_request__client_authentication_needed__invalid_client_certificate_is_used
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, edx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408a7d
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebx + 0x64]
lea eax, [ebx + 0x60]
mov edx, ecx
mov esi, str.Cannot_perform_http_request__client_authentication_needed__invalid_client_certificate_is_used
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebx + 0x70], eax
jmp 0x4087f1
mov edi, str.Cannot_perform_http_request
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, edx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408ad5
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebx + 0x64]
lea eax, [ebx + 0x60]
mov edx, ecx
mov esi, str.Cannot_perform_http_request
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebx + 0x70], eax
jmp 0x4087f1
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x408b67
mov al, byte [ecx - 1]
test al, al
je 0x408b5d
cmp al, 0xff
je 0x408b5d
dec al
mov byte [ecx - 1], al
jmp 0x408b67
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], esi
cmp ecx, esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
je 0x408b93
mov al, byte [ecx - 1]
test al, al
je 0x408b89
cmp al, 0xff
je 0x408b89
dec al
mov byte [ecx - 1], al
jmp 0x408b93
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x1c], esi
cmp ecx, esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
je 0x408bbf
mov al, byte [ecx - 1]
test al, al
je 0x408bb5
cmp al, 0xff
je 0x408bb5
dec al
mov byte [ecx - 1], al
jmp 0x408bbf
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x2c], esi
cmp ecx, esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
je 0x408beb
mov al, byte [ecx - 1]
test al, al
je 0x408be1
cmp al, 0xff
je 0x408be1
dec al
mov byte [ecx - 1], al
jmp 0x408beb
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x40