Function at 0x402d40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4042c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
mov eax, dword [0x407060]
push ebx
xor eax, ebp
mov dword [esp + 0x1c4], eax
mov eax, dword [0x407074]
push esi
push edi
inc eax
xor ebx, ebx
push 0x4055d2
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], 0xd
mov dword [0x407074], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ebx
mov word [esp + 0x170], 0xb
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1e0], ebx
call fcn.00402ae0
mov eax, dword [esp + 0x28]
mov edi, 0x10
add esp, 4
cmp eax, edi
je 0x402ddf
push 0x30
push edi
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int__char_]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x16e], edi
xor eax, eax
cmp esi, edi
mov ecx, edx
jae 0x402dfa
lea ecx, [esp + 0x14]
mov cl, byte [ecx + eax]
mov byte [esp + eax + 0x172], cl
inc eax
cmp eax, edi
jl 0x402df0
lea edx, [esp + 0x2c]
push edx
call fcn.00402bd0
add esp, 4
mov edx, dword [esp + 0x40]
xor eax, eax
cmp edx, ebx
mov byte [esp + 0x1dc], 1
mov dword [esp + 0x182], edx
mov esi, 0x26
jle 0x402e5b
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
lea esp, [esp]
cmp ebx, 0x10
mov ecx, edi
jae 0x402e4b
lea ecx, [esp + 0x30]
mov cl, byte [ecx + eax]
mov byte [esp + esi + 0x160], cl
inc esi
inc eax
cmp eax, edx
jl 0x402e40
xor eax, eax
lea edx, [esp + 0x48]
mov ecx, 0x45
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x4c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
mov dword [esp + esi + 0x160], eax
add esi, 4
call fcn.00403a58
mov edx, dword [esp + 0x40]
test eax, eax
setne al
mov byte [esp + esi + 0x160], al
inc esi
add edx, 0x1f
cmp esi, 0x64
mov dword [esp + 0x168], edx
jbe 0x402ee7
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dc], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1dc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x402f58
mov ecx, dword [ebp + 8]
push 0
push esi
lea eax, [esp + 0x168]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
or esi, 0xffffffff
cmp eax, esi
jne 0x402f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dc], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1dc], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x402f58
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dc], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1dc], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403dfb
mov esp, ebp
pop ebp
ret