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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057085
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10087040]
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 [0x1008a7dc]
xorps xmm0, xmm0
mov ecx, dword [0x1008a7e4]
mov esi, dword [0x1008a7e8]
movzx edi, word [0x1008a7e0]
mov dword [ebp - 0xa8], eax
movzx eax, word [0x1008a7e0]
mov dword [ebp - 0xb4], ecx
mov ecx, 2
push eax
movlpd qword [ebp - 0x80], xmm0
mov word [ebp - 0x88], cx
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 0x1003ccac
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.10007f70
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 0x10008410
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 [0x1008a576], 0
je 0x1003cd85
lea ecx, [ebp - 0x28]
call fcn.1003bff0
cmp dword [eax + 0x14], 0xf
jbe 0x1003ccc9
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 0x1003cd0c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cd02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003cd02
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10052765
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
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]
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 0x1003cd7f
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.10007f70
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 0x10008410
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 0x1003cd85
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.1003ca40
mov edi, dword [ebp - 0xb0]
test edi, edi
je 0x1003cebd
mov esi, dword [ebp - 0xac]
test si, si
je 0x1003cebd
mov edx, 0x1008a5c0
mov ecx, 0x1008a6a8
call fcn.100047d0
test al, al
jns 0x1003cebd
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 4
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xac], 0
call fcn.1003ed90
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [0x1008a6a8], ecx
mov dword [0x1008a6ac], 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.1003d790
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 0x1003ce7a
mov ecx, eax
call fcn.10018120
add dword [ebp - 0x44], 0x18
jmp 0x1003ce83
push eax
lea ecx, [ebp - 0x48]
call fcn.1003f680
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1003cebd
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ceb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003ceb3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10052765
add esp, 8
mov ecx, dword [0x1008a6a0]
mov eax, 0x2aaaaaab
mov esi, dword [0x1008a69c]
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.1003f2f0
mov esi, dword [0x1008a604]
mov eax, 0x2aaaaaab
mov ecx, dword [0x1008a608]
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.1003f2f0
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0xac], eax
cmp edi, eax
je 0x1003d2b5
nop dword [eax]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa4], edi
jbe 0x1003cf49
mov ecx, dword [edi]
mov dword [ebp - 0xa4], ecx
test eax, eax
je 0x1003d272
push eax
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1003d272
sub esi, dword [ebp - 0xa4]
cmp esi, 0xffffffff
je 0x1003d272
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 0x1003cf9e
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10008fe0
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 0x1003d2f4
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1003cfe2
mov eax, dword [edi]
push ecx
add eax, esi
lea ecx, [ebp - 0x78]
push eax
call fcn.10008fe0
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 0x1003d2e9
mov eax, dword [ebp - 0xa4]
cmp dword [eax], 0x22
je 0x1003d2de
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 0x1003d13c
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.10007f70
cmp dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x60]
push dword [ebp - 0x50]
cmova edx, dword [ebp - 0x60]
mov ecx, eax
call fcn.1000a4d0
add esp, 4
mov ecx, eax
push 0x10008410
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 0x1003d0e9
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d0df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ccfc
push ecx
push edx
call fcn.10052765
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 0x1003d2a6
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d12d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ccfc
push ecx
push edx
call fcn.10052765
add esp, 8
jmp 0x1003d2a6
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x96], ax
lea eax, [ebp - 0x3c]
push 0x14
push eax
lea eax, [ebp - 0x94]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
push 0x10
lea eax, [ebp - 0x98]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xa8]
push dword [ebp - 0xb4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1003d1e8
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.10007f70
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 0x10008410
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.10007f70
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1003d1cc
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a4d0
add esp, 4
mov ecx, eax
push 0x10008410
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 0x1003d1ee
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1003d226
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d21c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ccfc
push ecx
push edx
call fcn.10052765
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 0x1003d2a6
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d266
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ccfc
push ecx
push edx
call fcn.10052765
add esp, 8
jmp 0x1003d2a6
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.10007f70
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x1003d28c
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.1000a4d0
add esp, 4
mov ecx, eax
push 0x10008410
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 0x1003cf30
lea ecx, [ebp - 0x48]
call fcn.10019150
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.10052757
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.10006f30
int3