Function at 0x1003da00
Capabilities:
Convert ip address from string
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bf25
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x1008d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1009081c]
mov esi, dword [0x10090828]
movzx edi, word [0x10090820]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x10090824]
mov dword [ebp - 0xb4], eax
call fcn.1003d9a0
mov eax, dword [ebp - 0xa8]
push edi
movsd qword [eax + 0x20], xmm0
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x80], xmm0
mov word [ebp - 0x88], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x86], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x24]
push 0x14
push eax
lea eax, [ebp - 0x84]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
mov esi, dword [ebp - 0xa8]
lea eax, [ebp - 0x88]
push 0x10
push eax
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xb4]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0xb8], eax
cmp eax, 0xffffffff
jne 0x1003db04
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.sendto_failed_with_error:
call fcn.10008050
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x100084f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [ebp - 0xa8]
cmp byte [0x10090597], 0
je 0x1003dbe7
lea ecx, [ebp - 0x28]
call fcn.1003ca00
cmp dword [eax + 0x14], 0xf
jbe 0x1003db21
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x84], eax
cmp ecx, 0xf
jbe 0x1003db64
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003db5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003db5a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100574cb
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
call fcn.1003d9a0
push 0x14
lea eax, [ebp - 0x24]
movsd qword [esi + 0x20], xmm0
push eax
lea eax, [ebp - 0x84]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
push 0x10
lea eax, [ebp - 0x88]
push eax
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xb4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1003dbe1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.sendto_failed_with_error:
call fcn.10008050
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x100084f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x1003dbe7
mov dword [ebp - 0xb8], eax
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0
call fcn.1003d830
mov edi, dword [ebp - 0xb0]
test edi, edi
je 0x1003dd1f
mov esi, dword [ebp - 0xac]
test si, si
je 0x1003dd1f
mov edx, 0x100905e8
mov ecx, 0x100906d8
call fcn.100047d0
test al, al
jns 0x1003dd1f
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 4
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xac], 0
call fcn.10040420
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [0x100906d8], ecx
mov dword [0x100906dc], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov dword [ebp - 0x9c], eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea edx, [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0xa4]
push eax
call fcn.1003e600
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
push ecx
cmp eax, dword [ebp - 0x40]
je 0x1003dcdc
mov ecx, eax
call fcn.10018a20
add dword [ebp - 0x44], 0x18
jmp 0x1003dce5
push eax
lea ecx, [ebp - 0x48]
call fcn.10040e60
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1003dd1f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dd15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003dd15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100574cb
add esp, 8
mov ecx, dword [0x100906c8]
mov eax, 0x2aaaaaab
mov esi, dword [0x100906c4]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x48]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
push dword [ebp - 0x44]
call fcn.10040ad0
mov esi, dword [0x1009062c]
mov eax, 0x2aaaaaab
mov ecx, dword [0x10090630]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x48]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
push dword [ebp - 0x44]
call fcn.10040ad0
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0xac], eax
cmp edi, eax
je 0x1003e120
nop dword [eax + eax]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa4], edi
jbe 0x1003dda9
mov ecx, dword [edi]
mov dword [ebp - 0xa4], ecx
test eax, eax
je 0x1003e0dd
push eax
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1003e0dd
sub esi, dword [ebp - 0xa4]
cmp esi, 0xffffffff
je 0x1003e0dd
cmp dword [edi + 0x10], esi
mov ecx, esi
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
cmovb ecx, dword [edi + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 0xf
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
jbe 0x1003ddfe
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10009150
mov byte [ebp - 4], 2
inc esi
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x78], xmm0
cmp eax, esi
jb 0x1003e15f
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1003de42
mov eax, dword [edi]
push ecx
add eax, esi
lea ecx, [ebp - 0x78]
push eax
call fcn.10009150
mov byte [ebp - 4], 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x64], 0xf
lea esi, [ebp - 0x78]
mov dword [ebp - 0xa4], eax
cmova esi, dword [ebp - 0x78]
mov dword [eax], 0
lea eax, [ebp - 0x9c]
push 0xa
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x9c]
je 0x1003e154
mov eax, dword [ebp - 0xa4]
cmp dword [eax], 0x22
je 0x1003e149
cmp dword [ebp - 0x4c], 0xf
xorps xmm0, xmm0
mov eax, 2
movzx esi, cx
movups xmmword [ebp - 0x98], xmm0
mov word [ebp - 0x98], ax
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0x60]
cmova eax, dword [ebp - 0x60]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1003df9c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Invalid_IP_address_format:
call fcn.10008050
cmp dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x60]
push dword [ebp - 0x50]
cmova edx, dword [ebp - 0x60]
mov ecx, eax
call fcn.1000a640
add esp, 4
mov ecx, eax
push 0x100084f0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1003df49
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003df3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003db54
push ecx
push edx
call fcn.100574cb
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x1003e111
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003df8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003db54
push ecx
push edx
call fcn.100574cb
add esp, 8
jmp 0x1003e111
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x96], ax
call fcn.1003d9a0
mov esi, dword [ebp - 0xa8]
lea eax, [ebp - 0x3c]
push 0x14
push eax
lea eax, [ebp - 0x94]
push eax
push 2
movsd qword [esi + 0x20], xmm0
call dword [sym.imp.WS2_32.dll_inet_ntop]
push 0x10
lea eax, [ebp - 0x98]
push eax
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xb4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1003e053
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.sendto_failed_with_error:
call fcn.10008050
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x100084f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_send_packet_to
call fcn.10008050
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1003e037
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a640
add esp, 4
mov ecx, eax
push 0x100084f0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x1003e059
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1003e091
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e087
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003db54
push ecx
push edx
call fcn.100574cb
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x1003e111
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e0d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003db54
push ecx
push edx
call fcn.100574cb
add esp, 8
jmp 0x1003e111
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Invalid_IP:PORT_format:
call fcn.10008050
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1003e0f7
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a640
add esp, 4
mov ecx, eax
push 0x100084f0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
add edi, 0x18
cmp edi, dword [ebp - 0xac]
jne 0x1003dd90
lea ecx, [ebp - 0x48]
call fcn.10019a50
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100574bd
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
push str.invalid_stoi_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
call fcn.10007010
int3