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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004adb5
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 [0x10080650]
mov esi, dword [0x1008065c]
movzx edi, word [0x10080654]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x10080658]
mov dword [ebp - 0xb4], eax
call fcn.1003fa60
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 0x1003fbc4
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.10008100
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 0x100085a0
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 [0x1008035f], 0
je 0x1003fca7
lea ecx, [ebp - 0x28]
call fcn.1003d1d0
cmp dword [eax + 0x14], 0xf
jbe 0x1003fbe1
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 0x1003fc24
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003fc1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003fc1a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10046175
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
call fcn.1003fa60
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 0x1003fca1
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.10008100
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 0x100085a0
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 0x1003fca7
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.1003f8f0
mov edi, dword [ebp - 0xb0]
test edi, edi
je 0x1003fddf
mov esi, dword [ebp - 0xac]
test si, si
je 0x1003fddf
mov edx, 0x100803c8
mov ecx, 0x100804f8
call fcn.100048d0
test al, al
jns 0x1003fddf
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 4
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xac], 0
call fcn.10042fe0
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [0x100804f8], ecx
mov dword [0x100804fc], 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.100406c0
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 0x1003fd9c
mov ecx, eax
call fcn.10018a30
add dword [ebp - 0x44], 0x18
jmp 0x1003fda5
push eax
lea ecx, [ebp - 0x48]
call fcn.10043de0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1003fddf
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003fdd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003fdd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10046175
add esp, 8
mov ecx, dword [0x100804e0]
mov eax, 0x2aaaaaab
mov esi, dword [0x100804dc]
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.10043a50
mov esi, dword [0x10080424]
mov eax, 0x2aaaaaab
mov ecx, dword [0x10080428]
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.10043a50
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0xac], eax
cmp edi, eax
je 0x100401e0
nop dword [eax + eax]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa4], edi
jbe 0x1003fe69
mov ecx, dword [edi]
mov dword [ebp - 0xa4], ecx
test eax, eax
je 0x1004019d
push eax
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1004019d
sub esi, dword [ebp - 0xa4]
cmp esi, 0xffffffff
je 0x1004019d
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 0x1003febe
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10009180
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 0x1004021f
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1003ff02
mov eax, dword [edi]
push ecx
add eax, esi
lea ecx, [ebp - 0x78]
push eax
call fcn.10009180
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 0x10040214
mov eax, dword [ebp - 0xa4]
cmp dword [eax], 0x22
je 0x10040209
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 0x1004005c
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.10008100
cmp dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x60]
push dword [ebp - 0x50]
cmova edx, dword [ebp - 0x60]
mov ecx, eax
call fcn.1000a670
add esp, 4
mov ecx, eax
push 0x100085a0
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 0x10040009
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ffff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003fc14
push ecx
push edx
call fcn.10046175
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 0x100401d1
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004004d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003fc14
push ecx
push edx
call fcn.10046175
add esp, 8
jmp 0x100401d1
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x96], ax
call fcn.1003fa60
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 0x10040113
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.10008100
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 0x100085a0
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.10008100
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x100400f7
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a670
add esp, 4
mov ecx, eax
push 0x100085a0
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 0x10040119
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x10040151
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003fc14
push ecx
push edx
call fcn.10046175
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 0x100401d1
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040191
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003fc14
push ecx
push edx
call fcn.10046175
add esp, 8
jmp 0x100401d1
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.10008100
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x100401b7
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a670
add esp, 4
mov ecx, eax
push 0x100085a0
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 0x1003fe50
lea ecx, [ebp - 0x48]
call fcn.10019a60
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.10046167
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.100070b0
int3