Function at 0x413c6c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x42a24f
call fcn.004271f0
sub esp, 0x470
mov al, byte [ebp + 0xb]
push ebx
push esi
mov dword [ebp - 0x50], ecx
xor esi, esi
lea ecx, [ebp - 0x7c]
push esi
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x7c], al
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, byte [ebp + 0xb]
push 1
pop ebx
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x28], al
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 eax, dword [0x43b004]
and byte [ebp - 0xd], 0
cmp eax, esi
mov byte [ebp - 4], 2
jne 0x413cc2
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push edi
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x414067
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x413ce8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push esi
push 3
push esi
push esi
push 0x50
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x41403d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x413d14
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push 0x4000000
push 0x4382e0
push esi
push esi
push eax
push str.POST
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x414013
test byte [0x43b030], bl
jne 0x413d8c
or byte [0x43b030], bl
push 0x43b000
lea eax, [ebp - 0x38]
push str.User_Agent:
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
push str._r_nContent_Type:_application_x_www_form_urlencoded
push eax
push 0x43aff0
mov byte [ebp - 4], 3
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0x18
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
push ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x4140e6
call fcn.004271cc
pop ecx
mov eax, dword [0x43aff4]
cmp eax, esi
jne 0x413d9a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [0x43aff8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x413f8b
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x47c]
push 0x400
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x438590
test eax, eax
je 0x413e1a
push dword [ebp + 0x18]
lea eax, [ebp - 0x47c]
lea ecx, [ebp - 0x7c]
push eax
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__::append_char_const___unsigned_int_]
cmp dword [ebp + 0x18], 0
je 0x413e90
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x47c]
push 0x400
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x413de0
call esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00413936
push eax
lea eax, [ebp - 0x4c]
push str.Get_request_data_error:
push eax
mov byte [ebp - 4], 4
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push edi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 6
push dword [ecx]
lea ecx, [ebp - 0x28]
push 0
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
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 ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
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 ebx
lea ecx, [ebp - 0x60]
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_]
mov byte [ebp - 0xd], bl
mov ecx, dword [ebp - 0x50]
lea eax, [ebp + 0xc]
push eax
call fcn.00412920
cmp eax, 0xffffffff
je 0x413f1c
cmp eax, 0x190
jl 0x414008
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004040a4
push eax
lea eax, [ebp - 0x4c]
push str.Server_internal_error:
push eax
mov byte [ebp - 4], 0xa
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push edi
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xb
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 0xc
push dword [ecx]
lea ecx, [ebp - 0x28]
push 0
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
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 ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
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 byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x38]
jmp 0x413fff
call esi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413936
push eax
lea eax, [ebp - 0x4c]
push str.Unable_to_get_HTTP_status:
push eax
mov byte [ebp - 4], 7
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push edi
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 9
push dword [ecx]
lea ecx, [ebp - 0x28]
push 0
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
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 ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
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 byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x38]
jmp 0x413fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00413936
push eax
lea eax, [ebp - 0x4c]
push str.Send_request_failed_with_error:
push eax
mov byte [ebp - 4], 0xd
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x438590
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xe
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 0xf
push dword [ecx]
lea ecx, [ebp - 0x28]
push esi
push eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xe
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 ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
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 byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x38]
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 byte [ebp - 0xd], bl
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x414032
mov edx, str.Request_cannot_be_completed.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
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_]
mov byte [ebp - 0xd], bl
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41405c
mov edx, str.Error_connecting_to_server.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
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_]
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x414086
mov edx, str.Error_initializing_WinInet_library.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
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_]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
pop edi
je 0x4140a7
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00412ca4
lea eax, [ebp - 0x6c]
push 0x4310d8
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call fcn.0041bb32
pop ecx
mov dword [ebp - 0x3c], ebx
pop ecx
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x7c]
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 ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14