Function at 0x10023c50
Capabilities:
Connect socket

Disassembly:
push ebp
lea ebp, [esp - 0x1a2c]
mov eax, 0x1a2c
call fcn.10140530
push 0xfffffffffffffffe
push 0x10185b00
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1a28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov edi, edx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call fcn.10016ab0
call fcn.100803f0
test eax, eax
jne 0x10023d14
xor ecx, ecx
call fcn.1007aaf0
test eax, eax
je 0x10023e88
cmp dword [0x101aa5a4], 5
jl 0x10023cf8
push ebx
lea eax, [ebp + 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x820]
push ecx
call fcn.10061df0
lea edx, [ebp + 0x820]
push edx
push str._s_SendingComm_DIRECTLY___s_
call fcn.10017540
add esp, 0xc
push 0xffffffffffffffff
push 6
mov edx, edi
mov ecx, ebx
call fcn.1001b270
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x10023f95
cmp dword [0x101aa5a4], 5
jl 0x10023d4b
push ebx
lea eax, [ebp + 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x820]
push ecx
call fcn.10061df0
lea edx, [ebp + 0x820]
push edx
push str._s_SendingComm_via_PortComm___s_
call fcn.10017540
add esp, 0xc
mov dword [ebp - 0x1c], esi
push 0x410
push esi
lea eax, [ebp + 0x410]
push eax
call fcn.1012e060
push 0x208
push esi
push edi
call fcn.1012e060
add esp, 0x18
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov ecx, 2
mov word [ebp], cx
call fcn.100214b0
movzx edx, word [0x101b35f0]
push edx
call sub.WS2_32.dll_htons
mov word [ebp + 2], ax
push 0x101b35f2
call sub.WS2_32.dll_inet_addr
mov dword [ebp + 4], eax
cmp eax, 0xffffffff
jne 0x10023dcc
mov ecx, 0x101b35f2
call fcn.1000ee40
cmp eax, esi
je 0x10023dcc
mov ecx, dword [eax + 0xc]
cmp dword [ecx], esi
je 0x10023dcc
mov edx, ecx
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
push esi
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10023e5b
push 0x104
lea esi, [ebp + 0x1820]
call fcn.10065360
mov edx, esi
push edx
push str._ERROR___s_Unable_to_create_socket_1___Reason:__s
lea eax, [ebp + 0x1924]
push eax
call fcn.10127dc0
lea ecx, [ebp + 0x1924]
push ecx
call fcn.10017540
add esp, 0x14
xor ecx, ecx
call fcn.1007aaf0
test eax, eax
je 0x10023e88
cmp dword [0x101aa5a4], 5
jl 0x10023e52
push ebx
lea edx, [ebp + 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x820]
push eax
call fcn.10061df0
lea ecx, [ebp + 0x820]
push ecx
push str._s_SendingComm_DIRECTLY___s_
call fcn.10017540
add esp, 0xc
push 0xffffffffffffffff
push 7
jmp 0x10023cfc
push 0x10
lea edx, [ebp]
push edx
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x10023e96
push esi
call sub.WS2_32.dll_closesocket
cmp dword [0x101aa5a4], 5
jl 0x10023e88
push str._ERROR___s_Unable_to_connect_
call fcn.10017540
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10023f95
push 0
push 0x101b35d0
push 0xfa0
push 0x410
lea eax, [ebp + 0x410]
push eax
push esi
lea edx, [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.1000f280
add esp, 0x18
test eax, eax
jne 0x10023eef
push esi
call sub.WS2_32.dll_closesocket
cmp dword [0x101aa5a4], 5
jl 0x10023ee1
lea ecx, [ebp + 0x10]
push ecx
push str._ERROR___s_Unable_to_ReadLine__Reason:__s
call fcn.10017540
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10023f95
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023ef4
sub eax, edx
push ebx
mov ecx, eax
mov edx, esi
call fcn.1000f9c0
add esp, 4
push 0x101b35d0
lea ecx, [ebp - 0x20]
cmp dword [ebp + 0x1a34], 0
je 0x10023f1f
push 0xffffffffffffffff
jmp 0x10023f24
push 0x1388
push 0x208
push edi
push esi
call fcn.1000f7a0
mov edi, eax
mov dword [ebp - 0x1c], edi
add esp, 0x14
push esi
call sub.WS2_32.dll_closesocket
cmp dword [0x101aa5a4], 5
jl 0x10023f68
push edi
push str._s_ReadBytes_returned__d
lea edx, [ebp + 0x1924]
push edx
call fcn.10127dc0
lea eax, [ebp + 0x1924]
push eax
call fcn.10017540
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
jmp 0x10023f93
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a28]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x1a2c
mov esp, ebp
pop ebp
ret 4