Function at 0x40295f
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov eax, 0x409992
call fcn.004092f0
sub esp, 0x158
mov al, byte [ebp + 0x13]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x44], 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 + 0x13]
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x54], 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 + 0x13]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
mov byte [ebp - 0x24], 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 esi, 0x40d7f8
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
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 al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
mov byte [ebp - 0x34], 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 edi, str.p3p.sogou.com
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x34]
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_]
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x163]
mov byte [ebp - 0x164], bl
push ebx
rep stosd dword es:[edi], eax
push ebx
push ebx
push ebx
push esi
mov byte [ebp - 4], 3
stosw word es:[edi], ax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x402bf7
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x402a28
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 ebx
push ebx
mov esi, dword [sym.imp.WININET.dll_InternetConnectA]
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x14]
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x402a8a
mov edi, 0x9c40
cmp edi, ebx
jle 0x402a81
mov eax, 0x1d4c0
sub eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x402a66
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 ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x14]
call esi
sub edi, 0x4e20
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x402a48
cmp dword [ebp - 0x10], ebx
je 0x402bee
lea eax, [ebp - 0x164]
push str.recv_p2pcrash.php_software
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x402aac
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 eax, [ebp - 0x164]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x164]
pop ecx
push ebx
push 0x806cc200
push ebx
push ebx
push ebx
push eax
push str.POST
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x402be0
lea eax, [ebp - 0x64]
push eax
call fcn.0040260b
pop ecx
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], 4
push dword [ecx]
lea ecx, [ebp - 0x44]
push ebx
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 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push str.Content_Type:_multipart_form_data__boundary
push eax
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__
add esp, 0xc
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], 5
push dword [ecx]
lea ecx, [ebp - 0x54]
push ebx
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 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
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 [ebp - 0x50]
cmp eax, ebx
jne 0x402b5a
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 0x20000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004026b7
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp eax, ebx
jne 0x402b8b
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 dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push eax
push ebx
push ebx
push edi
call esi
mov dword [ebp + 0x10], 3
cmp eax, ebx
jne 0x402bcf
cmp dword [ebp + 0x10], ebx
jle 0x402bcf
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x402bc1
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 dword [ebp - 0x1c]
push eax
push ebx
push ebx
push edi
call esi
dec dword [ebp + 0x10]
jmp 0x402ba1
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x402bee
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 1
lea ecx, [ebp - 0x34]
pop esi
mov byte [ebp - 4], 2
push esi
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 esi
lea ecx, [ebp - 0x24]
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 esi
lea ecx, [ebp - 0x54]
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_]
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x44]
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]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret