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

Disassembly:
mov eax, 0x403e32
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x15c
mov al, byte [ebp + 0x13]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], 0xbb8
mov byte [ebp - 0x48], 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 - 0x58]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x58], 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 - 0x28]
mov byte [ebp - 4], 1
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 esi, 0x407488
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
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 al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
mov byte [ebp - 0x38], 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 - 0x38]
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 - 0x167]
mov byte [ebp - 0x168], 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 - 0x10], eax
je 0x4024b4
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
pop edi
lea ecx, [ebp - 0x18]
push edi
push ecx
push 2
push eax
call esi
lea eax, [ebp - 0x18]
push edi
push eax
push 5
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x18]
push edi
push eax
push 6
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x18]
push edi
push eax
push 8
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call fcn.004024fd
test al, al
pop ecx
je 0x4024ab
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4022d8
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 - 0x10]
call esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x40233a
mov edi, 0x9c40
cmp edi, ebx
jbe 0x402331
mov eax, 0x1d4c0
sub eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x402316
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 - 0x10]
call esi
sub edi, 0x4e20
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4022f8
cmp dword [ebp - 0x14], ebx
je 0x4024ab
lea eax, [ebp - 0x168]
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 0x40235c
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 - 0x168]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x168]
push eax
call fcn.00402a01
add esp, 0xc
lea eax, [ebp - 0x168]
push ebx
push 0x806cc200
push ebx
push ebx
push ebx
push eax
push str.POST
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x40249d
lea eax, [ebp - 0x68]
push eax
call fcn.00401e6c
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 - 0x48]
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 - 0x68]
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 - 0x48]
push eax
lea eax, [ebp - 0x68]
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 - 0x58]
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 - 0x68]
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 - 0x54]
cmp eax, ebx
jne 0x402417
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 - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401f18
mov eax, dword [ebp - 0x24]
add esp, 0x10
cmp eax, ebx
jne 0x402448
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 - 0x20]
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 0x40248c
cmp dword [ebp + 0x10], ebx
jle 0x40248c
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x40247e
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 - 0x20]
push eax
push ebx
push ebx
push edi
call esi
dec dword [ebp + 0x10]
jmp 0x40245e
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 - 0x14], ebx
je 0x4024ab
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 1
lea ecx, [ebp - 0x38]
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 - 0x28]
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 - 0x58]
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 - 0x48]
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