Function at 0x10134540
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a52f3
mov eax, dword fs:[0]
push eax
mov eax, 0x82a8
call fcn.10193b30
mov eax, dword [0x102480b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x8290], esi
mov dword [ebp - 0x805c], esi
mov dword [ebp - 0x8294], esi
mov ecx, 0x1028ab99
mov dword [ebp - 4], 0
call fcn.10193940
xorps xmm0, xmm0
movups xmmword [ebp - 0x8048], xmm0
mov byte [ebp - 4], 1
push 8
movups xmmword [ebp - 0x8048], xmm0
call fcn.10191600
lea ecx, [ebp - 0x8048]
mov dword [eax + 4], 0
mov dword [ebp - 0x8048], eax
mov dword [eax], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x8038], xmm0
mov byte [ebp - 4], 3
push 8
movups xmmword [ebp - 0x8038], xmm0
call fcn.10191600
lea ecx, [ebp - 0x8038]
add esp, 8
mov dword [eax + 4], 0
mov dword [ebp - 0x8038], eax
mov dword [eax], ecx
mov byte [ebp - 4], 4
cmp byte [0x1025d728], 0
jne 0x1013473d
lea eax, [ebp - 0x8280]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10134648
lea eax, [ebp - 0x8048]
mov ecx, esi
push eax
call fcn.10137110
lea eax, [ebp - 0x8038]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x10]
call fcn.10137110
jmp 0x10135025
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1025d72c], eax
test eax, eax
jns 0x10134683
lea eax, [ebp - 0x8048]
mov ecx, esi
push eax
call fcn.10137110
lea eax, [ebp - 0x8038]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x10]
call fcn.10137110
jmp 0x10135025
mov eax, 2
push 0x270f
mov word [ebp - 0x8090], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x808e], ax
lea eax, [ebp - 0x808c]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x101346e5
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x8048]
mov ecx, esi
push eax
call fcn.10137110
lea eax, [ebp - 0x8038]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x10]
call fcn.10137110
jmp 0x10135025
push 0x10
lea eax, [ebp - 0x8090]
push eax
push dword [0x1025d72c]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10134736
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x8038]
mov ecx, esi
push eax
lea edx, [ebp - 0x8048]
call fcn.101388e0
add esp, 4
lea ecx, [ebp - 0x8038]
call fcn.1003eda0
lea ecx, [ebp - 0x8048]
call fcn.1003eda0
jmp 0x101350e1
mov byte [0x1025d728], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80d8]
push 0
mov byte [ebp - 0x80e0], 0
call fcn.1008a310
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x80b4]
xorps xmm0, xmm0
mov dword [ebp - 0x8050], 0
movq qword [ebp - 0x8058], xmm0
push 3
mov eax, dword [eax]
mov dword [ebp - 0x8058], 0
mov dword [ebp - 0x8054], 0
mov dword [ebp - 0x8050], eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x8058]
cmp esi, edi
je 0x10134839
test esi, esi
je 0x10134821
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x101347c9
lea ecx, [ebp - 0x8058]
cmp eax, ecx
je 0x1013480f
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x101347b6
push str.ITERATOR_LIST_CORRUPTED_
push 0x101ad5ac
push 0
push 0x4b7
push 0x101ad5b0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x101347f0
int3
push 0
push 0x4b7
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includexmemory
push 0x101ad6dc
push str._ITERATOR_LIST_CORRUPTED__
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
add esp, 0x14
mov eax, dword [ebp - 0x8054]
mov dword [esi], eax
mov dword [ebp - 0x8058], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x8054], eax
lea eax, [ebp - 0x8058]
mov dword [edi + 4], eax
mov dword [ebp - 0x8058], edi
lea ecx, [ebp - 0x80b4]
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov byte [ebp - 4], 0xa
nop dword [eax]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x8064]
push 3
mov dword [ebp - 0x828c], 0
mov dword [ebp - 0x8288], 0
mov dword [ebp - 0x8284], eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x828c]
cmp esi, edi
je 0x10134923
test esi, esi
je 0x1013490b
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x101348b3
nop word [eax + eax]
lea ecx, [ebp - 0x828c]
cmp eax, ecx
je 0x101348f9
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x101348a0
push str.ITERATOR_LIST_CORRUPTED_
push 0x101ad5ac
push 0
push 0x4b7
push 0x101ad5b0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x101348da
int3
push 0
push 0x4b7
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includexmemory
push 0x101ad6dc
push str._ITERATOR_LIST_CORRUPTED__
call dword [sym.imp.ucrtbased.dll__invalid_parameter]
add esp, 0x14
mov eax, dword [ebp - 0x8288]
mov dword [esi], eax
mov dword [ebp - 0x828c], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x8288], eax
lea eax, [ebp - 0x828c]
mov dword [edi + 4], eax
mov dword [ebp - 0x828c], edi
lea ecx, [ebp - 0x8064]
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [ebp - 0x8058]
test eax, eax
je 0x1013493d
mov ecx, dword [eax]
jmp 0x1013493f
xor ecx, ecx
mov eax, dword [ebp - 0x828c]
test eax, eax
je 0x1013494d
mov eax, dword [eax]
jmp 0x1013494f
xor eax, eax
cmp ecx, eax
je 0x1013499d
push str.list_iterators_incompatible
push 0x101ad5ac
push 0
push 0xc3
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includelist
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x1013497a
int3
mov edi, dword [sym.imp.ucrtbased.dll__invalid_parameter]
push 0
push 0xc3
push 0x102302c0
push 0x101ad6dc
push str._list_iterators_incompatible_
call edi
add esp, 0x14
jmp 0x101349a3
mov edi, dword [sym.imp.ucrtbased.dll__invalid_parameter]
mov eax, dword [ebp - 0x8050]
lea ecx, [ebp - 0x805c]
cmp eax, dword [ebp - 0x8284]
push 3
setne byte [ebp - 0x8049]
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov esi, dword [ebp - 0x828c]
test esi, esi
je 0x10134a47
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x101349f3
nop dword [eax + eax]
lea ecx, [ebp - 0x828c]
cmp eax, ecx
je 0x10134a35
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x101349e0
push str.ITERATOR_LIST_CORRUPTED_
push 0x101ad5ac
push 0
push 0x4b7
push 0x101ad5b0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x10134a1a
int3
push 0
push 0x4b7
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includexmemory
push 0x101ad6dc
push str._ITERATOR_LIST_CORRUPTED__
call edi
add esp, 0x14
mov eax, dword [ebp - 0x8288]
mov dword [esi], eax
mov dword [ebp - 0x828c], 0
mov esi, dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [ebp - 0x805c]
call esi
cmp byte [ebp - 0x8049], 0
je 0x10134c0e
lea ecx, [ebp - 0x8058]
call fcn.10136a10
xorps xmm0, xmm0
mov byte [ebp - 0x8090], 0
lea ecx, [ebp - 0x8090]
movq qword [ebp - 0x8088], xmm0
lea edx, [eax + 4]
call fcn.1012e7f0
lea ecx, [ebp - 0x8058]
mov byte [ebp - 4], 0xb
call fcn.10136a10
lea ecx, [ebp - 0x13]
mov edx, dword [eax]
test edx, edx
jns 0x10134ab2
neg edx
call fcn.10092720
dec eax
mov byte [eax], 0x2d
jmp 0x10134ab7
call fcn.10092720
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x82b4]
call fcn.10092760
lea eax, [ebp - 0x82b4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x80e0]
call fcn.10085880
mov edi, eax
mov dl, byte [edi]
mov cl, byte [ebp - 0x8090]
mov eax, dword [ebp - 0x8088]
mov byte [edi], cl
mov ecx, dword [ebp - 0x8084]
mov esi, dword [edi + 0xc]
mov byte [ebp - 0x8090], dl
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x8090]
mov dword [edi + 8], eax
mov dword [ebp - 0x8088], edx
mov dword [ebp - 0x8084], esi
call fcn.10085b20
lea ecx, [ebp - 0x82b4]
mov byte [ebp - 4], 0xa
call fcn.10045430
mov eax, dword [ebp - 0x82b4]
push 8
push eax
mov dword [ebp - 0x82b4], 0
call fcn.10191ec0
mov esi, dword [ebp - 0x8058]
add esp, 8
test esi, esi
je 0x10134bbf
mov esi, dword [esi]
test esi, esi
je 0x10134bc1
mov edi, dword [sym.imp.ucrtbased.dll__invalid_parameter]
mov eax, dword [ebp - 0x8050]
cmp eax, dword [esi + 4]
jne 0x10134bb2
push str.cannot_increment_end_list_iterator
push 0x101ad5ac
push 0
push 0xa2
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includelist
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x10134b91
int3
push 0
push 0xa2
push 0x102302c0
push 0x101ad6dc
push str._cannot_increment_end_list_iterator_
call edi
mov eax, dword [ebp - 0x8050]
add esp, 0x14
mov eax, dword [eax]
mov dword [ebp - 0x8050], eax
jmp 0x10134850
xor esi, esi
push str.cannot_increment_value_initialized_list_iterator
push 0x101ad5ac
push 0
push 0xa1
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includelist
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x10134be8
int3
mov edi, dword [sym.imp.ucrtbased.dll__invalid_parameter]
push 0
push 0xa1
push 0x102302c0
push 0x101ad6dc
push str._cannot_increment_value_initialized_list_iterator_
call edi
add esp, 0x14
jmp 0x10134b5f
push 3
lea ecx, [ebp - 0x805c]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
lea ecx, [ebp - 0x8058]
call fcn.1002f5b0
lea ecx, [ebp - 0x805c]
call esi
push ecx
lea eax, [ebp - 0x80d0]
push eax
lea ecx, [ebp - 0x80e0]
call fcn.10085950
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x80cc]
cmp dword [ebp - 0x80b8], 0x10
push 0
push dword [ebp - 0x80bc]
cmovae eax, dword [ebp - 0x80cc]
push eax
push dword [0x1025d72c]
call dword [sym.imp.WS2_32.dll_send]
push 0x8000
lea eax, [ebp - 0x8028]
push 0
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8028]
push 0
push 0x8000
push eax
push dword [0x1025d72c]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10134ce1
mov byte [0x1025d728], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [ebp - 0x8290]
lea eax, [ebp - 0x8048]
push eax
mov ecx, esi
call fcn.10137110
lea eax, [ebp - 0x8038]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [esi + 0x10]
call fcn.10137110
jmp 0x10134ff4
lea eax, [ebp - 0x8049]
mov dword [ebp - 0x8080], 0
push 8
mov dword [ebp - 0x807c], 0
mov dword [ebp - 0x806c], 0
mov dword [ebp - 0x8068], 0
mov dword [ebp - 0x805c], eax
call fcn.10191600
lea ecx, [ebp - 0x8080]
mov dword [ebp - 0x8060], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x8080], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x8028]
mov dword [ebp - 0x806c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x8068], 0xf
mov byte [ebp - 0x807c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10134d62
sub ecx, edx
lea eax, [ebp - 0x8028]
push ecx
push eax
lea ecx, [ebp - 0x8080]
call fcn.100425a0
mov dword [ebp - 0x8060], 0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x806c], 0
jne 0x10134dce
mov byte [0x1025d728], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [ebp - 0x8290]
lea eax, [ebp - 0x8048]
push eax
mov ecx, esi
call fcn.10137110
lea eax, [ebp - 0x8038]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [esi + 0x10]
call fcn.10137110
jmp 0x10134f38
sub esp, 0x28
lea edx, [ebp - 0x8080]
mov eax, esp
lea ecx, [ebp - 0x80f0]
mov dword [eax + 0x24], 0
call fcn.1008c0d0
add esp, 0x28
xorps xmm0, xmm0
mov byte [ebp - 4], 0x13
push 0x102302b8
lea ecx, [ebp - 0x80f0]
movups xmmword [ebp - 0x80b0], xmm0
call fcn.1011ca00
lea ecx, [ebp - 0x80b0]
push ecx
mov ecx, eax
call fcn.1011cb30
xorps xmm0, xmm0
mov byte [ebp - 4], 0x14
push str.body
lea ecx, [ebp - 0x80f0]
movups xmmword [ebp - 0x80a0], xmm0
call fcn.1011ca00
lea ecx, [ebp - 0x80a0]
push ecx
mov ecx, eax
call fcn.1011cb30
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x80b0]
mov esi, dword [ebp - 0x8290]
mov ecx, esi
push eax
call fcn.10137110
lea eax, [ebp - 0x80a0]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [esi + 0x10]
call fcn.10137110
lea ecx, [ebp - 0x80a0]
call fcn.1002f6d0
mov ecx, dword [ebp - 0x809c]
test ecx, ecx
je 0x10134eb4
mov edx, dword [ebp - 0x8094]
sub edx, ecx
and edx, 0xfffffffc
call fcn.10049fa0
mov dword [ebp - 0x809c], 0
mov dword [ebp - 0x8098], 0
mov dword [ebp - 0x8094], 0
mov eax, dword [ebp - 0x80a0]
push 8
push eax
mov dword [ebp - 0x80a0], 0
call fcn.10191ec0
add esp, 8
lea ecx, [ebp - 0x80b0]
call fcn.1002f6d0
mov ecx, dword [ebp - 0x80ac]
test ecx, ecx
je 0x10134f12
mov edx, dword [ebp - 0x80a4]
sub edx, ecx
and edx, 0xfffffffc
call fcn.10049fa0
mov dword [ebp - 0x80ac], 0
mov dword [ebp - 0x80a8], 0
mov dword [ebp - 0x80a4], 0
mov eax, dword [ebp - 0x80b0]
push 8
push eax
mov dword [ebp - 0x80b0], 0
call fcn.10191ec0
add esp, 8
lea ecx, [ebp - 0x80f0]
call fcn.10085b20
lea ecx, [ebp - 0x8080]
call fcn.1002f6d0
mov eax, dword [ebp - 0x8068]
cmp eax, 0x10
jb 0x10134fbe
mov ecx, dword [ebp - 0x807c]
inc eax
mov dword [ebp - 0x805c], eax
mov dword [ebp - 0x8064], ecx
test ecx, ecx
jne 0x10134fb7
test eax, eax
je 0x10134fb7
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101ad5ac
push 0
push 0x33c
push 0x101ad5b0
push 2
call dword [sym.imp.ucrtbased.dll__CrtDbgReport]
add esp, 0x18
cmp eax, 1
jne 0x10134f90
int3
push 0
push 0x33c
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.32.31326includexmemory
push 0x101ad6dc
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call edi
mov eax, dword [ebp - 0x805c]
add esp, 0x14
mov ecx, dword [ebp - 0x8064]
mov edx, eax
call fcn.10049fa0
mov eax, dword [ebp - 0x8080]
push 8
push eax
mov dword [ebp - 0x806c], 0
mov dword [ebp - 0x8068], 0xf
mov byte [ebp - 0x807c], 0
mov dword [ebp - 0x8080], 0
call fcn.10191ec0
add esp, 8
lea ecx, [ebp - 0x80d0]
call fcn.10045430
mov eax, dword [ebp - 0x80d0]
push 8
push eax
mov dword [ebp - 0x80d0], 0
call fcn.10191ec0
add esp, 8
lea ecx, [ebp - 0x80e0]
call fcn.10085b20
lea ecx, [ebp - 0x8038]
call fcn.1002f6d0
mov ecx, dword [ebp - 0x8034]
test ecx, ecx
je 0x10135068
mov edx, dword [ebp - 0x802c]
sub edx, ecx
and edx, 0xfffffffc
call fcn.10049fa0
mov dword [ebp - 0x8034], 0
mov dword [ebp - 0x802c], 0
mov dword [ebp - 0x8030], 0
mov eax, dword [ebp - 0x8038]
push 8
push eax
mov dword [ebp - 0x8038], 0
call fcn.10191ec0
add esp, 8
lea ecx, [ebp - 0x8048]
call fcn.1002f6d0
mov ecx, dword [ebp - 0x8044]
test ecx, ecx
je 0x101350c6
mov edx, dword [ebp - 0x803c]
sub edx, ecx
and edx, 0xfffffffc
call fcn.10049fa0
mov dword [ebp - 0x8044], 0
mov dword [ebp - 0x803c], 0
mov dword [ebp - 0x8040], 0
mov eax, dword [ebp - 0x8048]
push 8
push eax
mov dword [ebp - 0x8048], 0
call fcn.10191ec0
add esp, 8
lea ecx, [ebp + 0x18]
call fcn.1003e7a0
lea ecx, [ebp + 0xc]
call fcn.1002f6d0
mov edx, dword [ebp + 0x10]
call fcn.1004a170
push 0x20
push dword [ebp + 0x10]
call fcn.10191ec0
push 8
push dword [ebp + 0xc]
call fcn.10191ec0
add esp, 0x10
mov eax, esi
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.101912d0
mov esp, ebp
pop ebp
ret