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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ecx]
push edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esp
push eax
push esi
call dword [edx + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x24]
push 0x10
push ecx
push 0
push edx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x41f3fd
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 0x24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebp + 0x14], eax
je 0x41f48c
mov cl, byte [ebp + 0x1b]
push 0
mov byte [ebp - 0x20], cl
lea ecx, [ebp - 0x20]
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.send_udp_data_error
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f461
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, str.send_udp_data_error
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
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 eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
push eax
push ecx
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 0
call fcn.00421430
lea edx, [ebp - 0x164]
push 0x425a10
push edx
call sub.MSVCRT.dll__CxxThrowException
mov ebx, dword [ebp + 0x28]
cmp ebx, 0xffffffff
je 0x41f4a0
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
lea ebx, [eax + eax*4]
shl ebx, 3
mov edi, dword [ebp + 0x18]
mov byte [ebp + 0x17], 1
test edi, edi
mov byte [ebp + 0xf], 0
mov dword [ebp - 4], 1
jne 0x41f5cd
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edi, eax
test edi, edi
mov dword [ebp + 0x18], edi
jne 0x41f540
mov al, byte [ebp + 0x1b]
push edi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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.cant_create_os_object_WSAEVENT_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f51c
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, str.cant_create_os_object_WSAEVENT_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
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_]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 2
call fcn.00421630
lea ecx, [ebp - 0xa4]
push 0x425a10
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esi]
push 3
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x41f5c9
mov al, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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.WSAEventSelect_failed
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f5a5
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, str.WSAEventSelect_failed
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [eax + ebx], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x144]
call fcn.00421630
lea edx, [ebp - 0x144]
push 0x425a10
push edx
call sub.MSVCRT.dll__CxxThrowException
mov byte [ebp + 0x17], 0
mov eax, dword [ebp + 0x1c]
push 0
push ebx
lea ecx, [ebp - 0x3c]
push 0
push ecx
push 2
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
jne 0x41f65c
mov dl, byte [ebp + 0x1b]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
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, 0x42c460
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f63e
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, 0x42c460
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [ecx + ebx], 0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 4
call fcn.0041fac0
lea eax, [ebp - 0x58]
push 0x426e18
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp eax, 1
jne 0x41f873
mov edx, dword [esi]
lea ecx, [ebp - 0x84]
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
push edi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp ebx, 0xffffffff
jne 0x41f702
mov al, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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.WSAEnumNetworkEvents_call_error
or ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f6d7
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, str.WSAEnumNetworkEvents_call_error
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [eax + ebx], 0
mov byte [ebp - 4], 5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x20]
push eax
push ecx
lea ecx, [ebp - 0x104]
call fcn.00421430
lea edx, [ebp - 0x104]
push 0x425a10
push edx
call sub.MSVCRT.dll__CxxThrowException
test byte [ebp - 0x84], 2
je 0x41f7b7
mov eax, dword [ebp - 0x7c]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x41f795
mov al, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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.write_error
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f76d
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, str.write_error
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [eax + ebx], 0
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0x20]
push ecx
push edx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00421430
lea eax, [ebp - 0xc4]
push 0x425a10
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x20]
push 0x10
push ecx
mov ecx, dword [esi]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x41f7e7
mov byte [ebp + 0xf], 1
mov al, byte [ebp + 0x17]
test al, al
jne 0x41f7d1
mov eax, dword [esi]
push 0
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebp + 0x10], eax
je 0x41f7b7
mov dl, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
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.send_udp_data_error
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
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 0x41f84b
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, str.send_udp_data_error
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [ecx + ebx], 0
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push edx
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00421430
lea ecx, [ebp - 0xe4]
push 0x425a10
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp eax, 0x102
je 0x41f7b7
mov dl, byte [ebp + 0x1b]
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], dl
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.WSAWaitForMultipleEvents_call_error
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x34]
push ebx
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 0x41f8d2
mov edi, dword [ebp - 0x30]
mov ecx, ebx
mov eax, ecx
mov esi, str.WSAWaitForMultipleEvents_call_error
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
mov byte [ecx + ebx], 0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x124]
push edx
mov byte [ebp - 4], 8
call fcn.00421630
lea eax, [ebp - 0x124]
push 0x425a10
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebp + 0x17]
test al, al
jne 0x41f916
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
push 0
push esi
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push esi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
nop
push 0xffffffffffffffff
push 0x423769
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_class_exception_const__]
mov al, byte [esi + 0xc]
add esi, 0xc
lea ebp, [edi + 0xc]
xor edx, edx
mov dword [esp + 0x1c], edx
mov byte [ebp], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
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 eax, dword [ecx]
mov ecx, dword [esi + 8]
mov ebx, ecx
cmp eax, ebx
jae 0x41f979
mov ebx, eax
cmp ebp, esi
jne 0x41f9f8
cmp ebx, edx
mov esi, eax
jbe 0x41f989
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, esi
jae 0x41f99c
mov esi, eax
test esi, esi
jbe 0x41f9d3
mov edx, dword [ebp + 4]
sub eax, esi
add ebx, edx
push eax
lea eax, [ebx + esi]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
mov ebx, dword [ebp + 8]
add esp, 0xc
sub ebx, esi
mov ecx, ebp
push 0
push ebx
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 0x41f9d3
push ebx
mov ecx, ebp
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 ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov dword [edi], 0x424c7c
mov eax, edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
cmp ebx, edx
jbe 0x41fa41
cmp ebx, ecx
jne 0x41fa41
mov eax, dword [esi + 4]
cmp eax, edx
jne 0x41fa0c
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]
cmp byte [eax - 1], 0xfe
jae 0x41fa41
push 1
mov ecx, ebp
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 [esi + 4]
test eax, eax
jne 0x41fa28
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 dword [ebp + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebp + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x41f9db
push 1
push ebx
mov ecx, ebp
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 0x41f9db
mov esi, dword [esi + 4]
test esi, esi
jne 0x41fa5d
mov esi, 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 edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov dword [eax], 0x424c7c
jmp 0x41f9e3