Function at 0x100346d0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, str.Unable_to_connect
movzx eax, word [esi + 0x2e0]
mov dword [ebp - 0xbc], eax
test ebx, ebx
je 0x10034739
lea eax, [esi + 0x188]
push eax
call fcn.1001e050
push ebx
push esi
call fcn.10030cc0
push ebx
push esi
call fcn.100385e0
add esp, 0x14
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x6e
lea eax, [ebp - 0xa4]
push 0
push eax
call sub.ntdll.dll_memset
lea eax, [esi + 0x1e4]
push eax
call fcn.10028870
add esp, 0x10
test eax, eax
je 0x100347a9
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x100347bc
cmp dword [esi + 0x21c], 0
jne 0x100347bc
cmp dword [esi + 0x2b0], 0xffffffff
jne 0x100347bc
cmp dword [esi + 0x210], 0
jne 0x100347bc
push 0
push 0xf4240
mov eax, 0x200
mov word [esi + 0x2b4], ax
lea eax, [esi + 0x188]
push 0x10034de0
push eax
push 0
push dword [esi]
call fcn.1001e080
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x2b4], 0x202
mov eax, dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xc0], eax
mov eax, dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xb4], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0xb0], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc4], edx
jne 0x100348b2
mov ecx, dword [esi + 0x2b0]
cmp ecx, 0xffffffff
je 0x100348b2
cmp dword [esi + 0x21c], 0
jne 0x10034828
cmp dword [esi + 0x190], 0
je 0x10034c87
push 0x10
lea eax, [esi + 0x230]
push eax
push ecx
call edx
test eax, eax
je 0x10034d4e
mov ebx, dword [ebp - 0xa8]
call ebx
cmp eax, 0x2748
je 0x10034d4e
cmp eax, 0x2735
jne 0x10034876
push 0x10
push 0
push esi
call fcn.10029af0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10034d3b
cmp eax, 0x2726
je 0x10034d3b
cmp eax, 0x2733
je 0x10034d3b
call ebx
push eax
push str.conn_fail:__d
lea eax, [ebp - 0x34]
push 0x30
push eax
call fcn.10020380
add esp, 0x10
lea edi, [ebp - 0x34]
jmp 0x10034c87
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x10034902
cmp byte [eax], 0x2b
jne 0x10034902
inc eax
lea edi, [esi + 0x230]
push 0x6c
push eax
lea eax, [ebp - 0xa2]
xorps xmm0, xmm0
mov ecx, 1
push eax
movups xmmword [edi], xmm0
mov word [ebp - 0xa4], cx
call sub.msvcrt.dll_strncpy
add esp, 0xc
mov byte [ebp - 0x37], 0
cmp byte [ebp - 0xa2], 0x40
jne 0x1003495c
mov byte [ebp - 0xa2], 0
jmp 0x1003495c
cmp dword [esi + 0x21c], 0
je 0x10034ce4
mov edi, dword [esi + 0x218]
push edi
call fcn.100288b0
movups xmm0, xmmword [edi + 0x1c]
push str.lws_free
lea eax, [esi + 0x230]
push 0
push edi
mov dword [ebp - 0xac], eax
movups xmmword [eax], xmm0
call fcn.10020d50
add esp, 0x10
push dword [ebp - 0xbc]
call dword [ebp - 0xc0]
mov word [esi + 0x232], ax
lea edi, [esi + 0x230]
mov ebx, 0x10
cmp dword [esi + 0x2b0], 0xffffffff
jne 0x10034b0e
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x10034986
push esi
call eax
add esp, 4
test eax, eax
jne 0x10034d07
test byte [esi + 0x2d4], 8
push 0
push 1
je 0x1003499b
mov edi, 1
push edi
jmp 0x1003499f
movzx edi, word [edi]
push edi
call dword [ebp - 0xb4]
mov ecx, eax
mov dword [esi + 0x2b0], ecx
cmp ecx, 0xffffffff
jne 0x100349d4
call dword [ebp - 0xa8]
push eax
push str.conn_fail:_skt_creation:_errno__d
lea eax, [ebp - 0x34]
push 0x30
push eax
call fcn.10020380
add esp, 0x10
lea edi, [ebp - 0x34]
jmp 0x10034ca6
mov eax, dword [esi + 0x2d4]
shr eax, 3
and eax, 1
push eax
push ecx
push dword [esi + 4]
call fcn.1001cfc0
add esp, 0xc
test eax, eax
je 0x10034a13
call dword [ebp - 0xa8]
push eax
push str.conn_fail:_skt_options:_errno__d
lea eax, [ebp - 0x34]
push 0x30
push eax
call fcn.10020380
add esp, 0x10
lea edi, [ebp - 0x34]
jmp 0x10034c90
push dword [esi + 0x2c4]
movzx eax, byte [esi + 0x2f2]
push eax
push dword [esi + 0x2b0]
call fcn.1001bbe0
mov eax, 0x202
add esp, 0xc
mov word [esi + 0x2b4], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x10034a6f
push esi
call eax
add esp, 4
test eax, eax
je 0x10034a6f
push str.conn_fail:_sock_accept
lea eax, [ebp - 0x34]
push 0x30
push eax
call fcn.10020380
add esp, 0xc
lea edi, [ebp - 0x34]
jmp 0x10034c90
push esi
push dword [esi]
call fcn.10029a10
add esp, 8
test eax, eax
je 0x10034a85
push str.conn_fail:_insert_fd
jmp 0x10034a59
push 0x300
push 0
push esi
call fcn.10029af0
add esp, 0xc
test eax, eax
je 0x10034ab4
push str.conn_fail:_change_pollfd
lea eax, [ebp - 0x34]
push 0x30
push eax
call fcn.10020380
add esp, 0xc
lea edi, [ebp - 0x34]
jmp 0x10034c87
cmp dword [esi + 8], 0
jne 0x10034ac6
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x1e4]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push dword [eax + 0x240]
push 2
push esi
call fcn.10028ae0
push 0x5e
push 6
push esi
call fcn.1001c0b0
add esp, 0x18
test eax, eax
je 0x10034b0e
cmp byte [eax], 0
je 0x10034b0e
push edi
push eax
push 0
push dword [esi + 0x2b0]
push esi
push dword [esi + 4]
call fcn.10031370
add esp, 0x18
test eax, eax
jns 0x10034b0e
push str.conn_fail:_socket_bind
jmp 0x10034a9e
test byte [esi + 0x2d4], 8
je 0x10034b55
cmp byte [ebp - 0xa2], 0
lea edi, [ebp - 0xa4]
je 0x10034b3e
lea ecx, [ebp - 0xa2]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034b30
sub ecx, edx
lea ebx, [ecx + 2]
jmp 0x10034b7e
lea ecx, [ebp - 0xa1]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034b47
sub ecx, edx
lea ebx, [ecx + 3]
jmp 0x10034b7e
cmp dword [ebp - 0xac], 0
mov edi, str.Unable_to_connect
je 0x10034c87
mov edi, dword [ebp - 0xac]
lea eax, [esi + 0x230]
push ebx
push edi
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov eax, dword [esi + 8]
and dword [esi + 0x2d0], 0xffffefff
push 0
push dword [esi + 0x2b0]
push dword [esi + 0x2a0]
push 0x69
push esi
push dword [eax + 4]
call fcn.1001c4f0
add esp, 0x18
test eax, eax
jne 0x10034ce4
push ebx
push edi
push dword [esi + 0x2b0]
call dword [ebp - 0xc4]
mov edi, eax
call fcn.10020a20
mov dword [esi + 0x298], eax
mov dword [esi + 0x29c], edx
mov dword [esi + 0x284], 0
cmp edi, 0xffffffff
jne 0x10034d4e
call dword [ebp - 0xa8]
mov ebx, eax
test ebx, ebx
je 0x10034c2f
cmp ebx, 0x2735
je 0x10034c2f
cmp ebx, 0x2734
je 0x10034c2f
cmp ebx, 0x2733
je 0x10034c2f
cmp ebx, 0x2726
je 0x10034c2f
cmp ebx, 0x2748
je 0x10034c2f
call fcn.10020a20
sub eax, dword [esi + 0x298]
mov edi, str.Unable_to_connect
mov dword [esi + 0x284], eax
jmp 0x10034c87
push esi
mov edi, str.Unable_to_connect
call fcn.1001ce60
add esp, 4
test eax, eax
jne 0x10034c87
cmp ebx, 0x2748
je 0x10034d4e
mov ecx, dword [esi]
mov edx, 0xf4240
mov eax, dword [ecx + 0x4c8]
mul edx
push edx
push eax
push 0x100346b0
lea eax, [esi + 0x188]
push eax
push 0
push ecx
call fcn.1001e080
push 0x10
push 0
push esi
call fcn.10029af0
add esp, 0x24
test eax, eax
je 0x100347a9
push esi
call fcn.10029b80
add esp, 4
push dword [esi + 0x2b0]
call dword [ebp - 0xb0]
mov dword [esi + 0x2b0], 0xffffffff
lea eax, [esi + 0x188]
push eax
call fcn.1001e050
add esp, 4
cmp dword [esi + 0x218], 0
jne 0x10034902
push esi
call fcn.10021a60
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034cd0
sub ecx, edx
push ecx
push edi
push esi
call fcn.10021ad0
add esp, 0xc
push str.client_connect3
push 0
push esi
call fcn.10021aa0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
test dword [esi + 0x2b4], 0x10000000
je 0x10034d29
cmp dword [esi + 8], 0
je 0x10034d29
push 0x27
push str.waiting_for_event_loop_watcher_to_close
push esi
call fcn.10021ad0
add esp, 0xc
cmp dword [esi + 0x2bc], 0xffffffff
jne 0x10034ce4
push esi
call fcn.10021790
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
call fcn.10020a20
sub eax, dword [esi + 0x298]
mov dword [esi + 0x284], eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [esi + 0x220]
mov dword [ebp - 0xb0], 0x10
push eax
push dword [esi + 0x2b0]
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [esi + 0x188]
push eax
call fcn.1001e050
push esi
call fcn.10021a60
mov eax, dword [esi + 8]
add esp, 8
test eax, eax
je 0x10034db4
mov eax, dword [eax + 4]
push 0
push 0
push dword [esi + 0x2a0]
push 0x1d
push esi
call eax
add esp, 0x14
push 0
push 0
push esi
call fcn.100343e0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10039446
mov esp, ebp
pop ebp
ret