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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a5f5
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x1007c040]
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 [0x100805d8]
mov esi, dword [0x100805e4]
movzx edi, word [0x100805dc]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x100805e0]
mov dword [ebp - 0xb4], eax
call fcn.1003f300
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 0x1003f464
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.10008020
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 0x100084c0
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 [0x10080337], 0
je 0x1003f547
lea ecx, [ebp - 0x28]
call fcn.1003ca70
cmp dword [eax + 0x14], 0xf
jbe 0x1003f481
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 0x1003f4c4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f4ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003f4ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10045a15
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
call fcn.1003f300
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 0x1003f541
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.10008020
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 0x100084c0
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 0x1003f547
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.1003f190
mov edi, dword [ebp - 0xb0]
test edi, edi
je 0x1003f67f
mov esi, dword [ebp - 0xac]
test si, si
je 0x1003f67f
mov edx, 0x10080388
mov ecx, 0x10080480
call fcn.100047f0
test al, al
jns 0x1003f67f
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 4
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xac], 0
call fcn.10042880
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [0x10080480], ecx
mov dword [0x10080484], 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.1003ff60
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 0x1003f63c
mov ecx, eax
call fcn.10018950
add dword [ebp - 0x44], 0x18
jmp 0x1003f645
push eax
lea ecx, [ebp - 0x48]
call fcn.10043680
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1003f67f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f675
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003f675
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10045a15
add esp, 8
mov ecx, dword [0x10080468]
mov eax, 0x2aaaaaab
mov esi, dword [0x10080464]
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.100432f0
mov esi, dword [0x100803cc]
mov eax, 0x2aaaaaab
mov ecx, dword [0x100803d0]
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.100432f0
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0xac], eax
cmp edi, eax
je 0x1003fa80
nop dword [eax + eax]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa4], edi
jbe 0x1003f709
mov ecx, dword [edi]
mov dword [ebp - 0xa4], ecx
test eax, eax
je 0x1003fa3d
push eax
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1003fa3d
sub esi, dword [ebp - 0xa4]
cmp esi, 0xffffffff
je 0x1003fa3d
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 0x1003f75e
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10009090
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 0x1003fabf
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1003f7a2
mov eax, dword [edi]
push ecx
add eax, esi
lea ecx, [ebp - 0x78]
push eax
call fcn.10009090
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 0x1003fab4
mov eax, dword [ebp - 0xa4]
cmp dword [eax], 0x22
je 0x1003faa9
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 0x1003f8fc
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.10008020
cmp dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x60]
push dword [ebp - 0x50]
cmova edx, dword [ebp - 0x60]
mov ecx, eax
call fcn.1000a590
add esp, 4
mov ecx, eax
push 0x100084c0
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 0x1003f8a9
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f89f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f4b4
push ecx
push edx
call fcn.10045a15
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 0x1003fa71
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f8ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f4b4
push ecx
push edx
call fcn.10045a15
add esp, 8
jmp 0x1003fa71
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x96], ax
call fcn.1003f300
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 0x1003f9b3
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.10008020
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 0x100084c0
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.10008020
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1003f997
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a590
add esp, 4
mov ecx, eax
push 0x100084c0
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 0x1003f9b9
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1003f9f1
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f9e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f4b4
push ecx
push edx
call fcn.10045a15
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 0x1003fa71
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003fa31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f4b4
push ecx
push edx
call fcn.10045a15
add esp, 8
jmp 0x1003fa71
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.10008020
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1003fa57
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a590
add esp, 4
mov ecx, eax
push 0x100084c0
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 0x1003f6f0
lea ecx, [ebp - 0x48]
call fcn.10019980
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.10045a07
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.10006fe0
int3