Function at 0x1008e340
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x620
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x61c], eax
mov eax, dword [esp + 0x628]
push ebx
push ebp
mov ebp, dword [esp + 0x62c]
push esi
push edi
mov edi, dword [ebp]
xor ebx, ebx
push 0x2e
lea ecx, [esp + 0xb9]
push ebx
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xc0], bl
call fcn.100b52f0
mov esi, dword [edi + 0x9ec]
mov dword [esp + 0x34], ebx
mov eax, dword [edi + 0x9ec]
add esp, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], 1
cmp eax, ebx
je 0x1008e50b
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008e3c0
sub eax, edx
cmp eax, 1
jbe 0x1008e50b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008e3d7
sub eax, edx
cmp eax, 0x41
jae 0x1008e3ec
mov eax, 0x41
jmp 0x1008e3fa
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008e3f1
sub eax, edx
inc eax
push 1
push eax
call dword [0x102181cc]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1008e415
lea eax, [ebx + 0x1b]
jmp 0x1008ea25
mov al, byte [esi]
cmp al, 0x5b
jne 0x1008e56f
lea edx, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x2c], edx
call fcn.100b3c90
mov edi, eax
add esp, 8
test edi, edi
je 0x1008e4b9
mov eax, dword [esp + 0x24]
mov ecx, edi
sub ecx, eax
push ecx
push eax
push ebx
call fcn.100b6610
add esp, 0xc
test edi, edi
je 0x1008e4b9
push 0x3a
push edi
call fcn.100b3c90
mov esi, eax
add esp, 8
test esi, esi
je 0x1008e4b9
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.100b4530
push eax
call fcn.1007d800
movzx edi, ax
push 0x2d
push esi
mov dword [esp + 0x38], edi
call fcn.100b3c90
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x1008e5df
push 0xa
inc eax
push esi
push eax
call fcn.100b4530
push eax
call fcn.1007d800
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp di, ax
jbe 0x1008e4b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
cmp byte [ebx], 0
je 0x1008e50b
mov ecx, dword [ebp + 0x2f4]
mov edx, dword [ebp + 0x2b8]
push 0x401
lea eax, [esp + 0x22c]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ecx
push eax
call fcn.100a8580
mov ecx, dword [ebp + 0x2b8]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.10146710
add esp, 0x18
sub eax, 0
je 0x1008e5eb
dec eax
je 0x1008e565
dec eax
je 0x1008e625
mov edx, dword [ebp + 0x420]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1008e5ef
push 0x100
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100a70a0
mov ecx, dword [esp + 0x20]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.1007fc80
push ebx
call dword [0x102181c0]
add esp, 0x1c
mov eax, 0x1e
jmp 0x1008ea25
cmp al, 0x3a
jne 0x1008e57a
mov edi, esi
jmp 0x1008e44e
push 0x3a
push esi
call fcn.100b3c90
mov edi, eax
add esp, 8
test edi, edi
je 0x1008e5ca
lea edx, [esp + 0x34]
push edx
push esi
push 0x17
call fcn.100a2c10
add esp, 0xc
cmp eax, 1
jne 0x1008e5bf
xor eax, eax
mov edx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1008e5b0
jmp 0x1008e4b9
mov eax, edi
sub eax, esi
push eax
push esi
jmp 0x1008e445
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1008e5d0
jmp 0x1008e4b9
movzx edx, di
mov dword [esp + 0x1c], edx
jmp 0x1008e4b9
mov esi, ebx
jmp 0x1008e62c
movzx eax, word [esp + 0x34]
push 0x401
lea edx, [esp + 0x22c]
push edx
cmp eax, 0x17
je 0x1008e60e
lea ecx, [esp + 0x40]
push ecx
push eax
jmp 0x1008e615
lea eax, [esp + 0x44]
push eax
push 0x17
call fcn.100a89a0
add esp, 0x10
mov dword [esp + 0x2c], 0
lea esi, [esp + 0x228]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push esi
push ebp
call fcn.1009a280
add esp, 0x14
cmp eax, 1
jne 0x1008e652
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.1007dd40
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1008e66e
mov edi, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.1009a4f0
add esp, 8
test edi, edi
jne 0x1008e692
mov ecx, dword [esp + 0x14]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ecx
call fcn.1007fc80
push ebx
call dword [0x102181c0]
add esp, 0x10
mov eax, 0x1e
jmp 0x1008ea25
push ebx
call dword [0x102181c0]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
push 0
push edi
push ebp
call fcn.100816b0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
je 0x1008e6d6
call ebx
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x1008e6b0
jmp 0x1008e6da
test edi, edi
jne 0x1008e70a
push 0x100
lea eax, [esp + 0x12c]
push eax
push esi
call fcn.100a70a0
mov ecx, dword [esp + 0x20]
push eax
push str.socket_failure:__s
push ecx
call fcn.1007fc80
add esp, 0x18
mov eax, 0x1e
jmp 0x1008ea25
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.100b4ba0
mov eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x18], edx
movzx esi, ax
cmp ax, word [esp + 0x1c]
ja 0x1008e874
mov ebx, dword [esp + 0x2c]
lea esp, [esp]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x10]
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1008e86d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x1008e7d4
cmp eax, 0x2741
jne 0x1008e7d4
push 0x100
lea eax, [esp + 0x12c]
push eax
push 0x2741
call fcn.100a70a0
movzx ecx, si
mov esi, dword [esp + 0x20]
push eax
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.1007fb40
mov ecx, dword [ebp + 0x420]
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1008e7f1
movzx esi, word [esp + 0x20]
xor ebx, ebx
jmp 0x1008e7e1
cmp eax, 0x2740
je 0x1008e7e0
cmp eax, 0xd
jne 0x1008e82e
inc esi
cmp si, word [esp + 0x1c]
jbe 0x1008e740
jmp 0x1008e874
push 0x100
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100a70a0
push eax
push str.getsockname___failed:__s
push esi
call fcn.1007fc80
mov eax, dword [esp + 0x28]
push eax
push ebp
call fcn.10081620
add esp, 0x20
mov eax, 0x1e
jmp 0x1008ea25
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push eax
call fcn.100a70a0
push eax
mov eax, dword [esp + 0x24]
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.1007fc80
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call fcn.10081620
add esp, 0x24
mov eax, 0x1e
jmp 0x1008ea25
cmp si, word [esp + 0x1c]
jbe 0x1008e89b
mov edx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.1007fc80
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.10081620
add esp, 0x10
mov eax, 0x1e
jmp 0x1008ea25
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1008e8e5
push 0x100
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100a70a0
mov edx, dword [esp + 0x20]
push eax
push str.getsockname___failed:__s
push edx
jmp 0x1008e811
mov ecx, dword [esp + 0x10]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1008e937
push 0x100
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100a70a0
push eax
mov eax, dword [esp + 0x24]
push str.socket_failure:__s
push eax
call fcn.1007fc80
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call fcn.10081620
add esp, 0x20
mov eax, 0x1e
jmp 0x1008ea25
push 0x2f
lea edx, [esp + 0xb8]
push edx
push edi
call fcn.10099c30
add esp, 0xc
cmp dword [ebp + 0x57c], 0
jne 0x1008e966
cmp dword [ebp + 0x560], 0
je 0x1008e966
mov dword [ebp + 0x57c], 1
mov edi, dword [esp + 0x30]
cmp edi, 2
je 0x1008e9d2
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x34]
lea ebx, [ebx]
cmp dword [ebp + 0x57c], 0
jne 0x1008e98d
test edi, edi
je 0x1008e9cc
cmp edi, 1
jne 0x1008e998
cmp cx, 2
jne 0x1008e9cc
movzx eax, cx
sub eax, 2
je 0x1008e9ac
sub eax, 0x15
jne 0x1008e9cc
mov eax, dword [esp + 0x36]
push eax
jmp 0x1008e9b1
mov ecx, dword [esp + 0x36]
push ecx
call ebx
movzx esi, ax
test edi, edi
je 0x1008ea3e
cmp edi, 1
je 0x1008eab4
mov cx, word [esp + 0x34]
inc edi
cmp edi, 2
jne 0x1008e980
mov ebx, dword [esp + 0x24]
mov dword [ebp + 0x830], edi
mov eax, dword [ebp + 0x424]
cmp eax, 0xffffffff
je 0x1008e9fb
push eax
push ebp
call fcn.10081620
add esp, 8
mov dword [ebp + 0x424], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x528], 0
mov dword [ebp + 0x424], eax
mov dword [ebp + 0x520], 1
mov dword [ebp + 0x83c], 0x1c
mov eax, ebx
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0x620
ret
xor ecx, ecx
cmp word [esp + 0x34], 2
movzx edx, si
setne cl
push edx
lea eax, [esp + 0xb8]
push eax
lea esi, [ebp + 0x7b8]
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.100a9040
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1008e9d6
push ebx
call fcn.100a6670
mov edx, dword [esp + 0x18]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.1007fc80
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.10081620
mov dword [esi + 0x78], 1
add esp, 0x18
mov dword [ebp + 0x83c], 0
jmp 0x1008ea23
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xb4]
mov al, byte [edx]
test al, al
je 0x1008ead7
cmp al, 0x2e
jne 0x1008ead1
mov byte [ecx], 0x2c
jmp 0x1008ead3
mov byte [ecx], al
inc ecx
inc edx
jne 0x1008eac2
movzx eax, si
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.10098d40
lea eax, [esp + 0xf8]
push eax
push str.PORT
lea eax, [ebp + 0x7b8]
push 0x101b102c
push eax
call fcn.100a9040
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x1008e9d6
push ebx
call fcn.100a6670
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.1007fc80
mov edx, dword [esp + 0x20]
push edx
push ebp
call fcn.10081620
add esp, 0x18
mov dword [ebp + 0x83c], 0
jmp 0x1008ea23