Function at 0x1015e620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x624
mov eax, dword [0x1026e004]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
mov ebx, dword [esp + 0x630]
lea eax, [esp + 0xac]
push ebp
push esi
mov esi, dword [esp + 0x634]
push edi
push 0x2f
push 0
mov ebp, dword [esi + 0xc]
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], 0xffffffff
call fcn.100e19a0
mov edi, dword [esi + 0x56c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 1
test edi, edi
je 0x1015e865
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015e693
sub ecx, edx
cmp ecx, 1
jbe 0x1015e865
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015e6b0
sub ecx, edx
cmp ecx, 0x16
jae 0x1015e6c5
mov ecx, 0x16
jmp 0x1015e6d9
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015e6d0
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x1026e9f8]
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1015e6fa
mov eax, 0x1b
jmp 0x1015edb7
cmp byte [edi], 0x3a
je 0x1015e729
push 0x3a
push edi
call fcn.100e2630
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1015e791
mov ecx, eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push ecx
call fcn.100f2560
mov edi, dword [esp + 0x38]
add esp, 0xc
test edi, edi
je 0x1015e7a4
push 0x3a
push edi
call fcn.100e2630
mov edi, eax
add esp, 8
test edi, edi
je 0x1015e7a4
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call fcn.100ec35e
push eax
call fcn.1014e230
movzx eax, ax
push 0x2d
push edi
mov dword [esp + 0x34], eax
call fcn.100e2630
add esp, 0x18
test eax, eax
je 0x1015e784
push 0xa
inc eax
push 0
push eax
call fcn.100ec35e
push eax
call fcn.1014e230
movzx ecx, ax
add esp, 0x10
mov dword [esp + 0x18], ecx
jmp 0x1015e7a4
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x1015e7a4
mov ecx, dword [esp + 0x28]
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x1015e797
mov edi, dword [esp + 0x18]
xor ecx, ecx
cmp word [esp + 0x1c], di
movzx eax, di
cmovbe ecx, eax
mov eax, dword [esp + 0x1c]
movzx edx, cx
xor ecx, ecx
cmp word [esp + 0x1c], di
mov edi, dword [esp + 0x28]
movzx eax, ax
cmovbe ecx, eax
mov dword [esp + 0x18], edx
movzx eax, cx
cmp byte [edi], 0
mov dword [esp + 0x2c], eax
je 0x1015e855
push 0x401
lea eax, [esp + 0x230]
push eax
mov eax, dword [ebp + 0x48]
push edi
push dword [ebp + 0x54]
push dword [eax + 0x18]
call fcn.1001f3a0
add esp, 4
push eax
mov eax, dword [ebp + 0x48]
push dword [eax + 4]
call fcn.1001f3a0
add esp, 0x18
sub eax, 0
je 0x1015e82b
sub eax, 1
je 0x1015edb2
sub eax, 1
jne 0x1015e833
lea ecx, [esp + 0x22c]
mov dword [esp + 0x30], ecx
jmp 0x1015e835
mov ecx, edi
mov dword [esp + 0x30], ecx
jmp 0x1015e835
xor ecx, ecx
mov eax, dword [esp + 0x2c]
movzx edx, ax
mov eax, dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x1015e8f5
jmp 0x1015e867
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, dx
mov dword [esp + 0x18], eax
jmp 0x1015e867
xor edi, edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0x148]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1015e8bd
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1016d470
push eax
push str.getsockname___failed:__s
push esi
call fcn.1014d3d0
push edi
call dword [0x1026e9ec]
add esp, 0x1c
jmp 0x1015edb2
push 0x401
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x44]
push eax
movzx eax, word [esp + 0x44]
push eax
call fcn.101690a0
add esp, 0x10
test eax, eax
je 0x1015edb2
lea ecx, [esp + 0x22c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push ecx
push esi
call fcn.10144010
add esp, 0x14
cmp eax, 1
jne 0x1015e91b
lea eax, [esp + 0x34]
push eax
push esi
call fcn.10143070
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1015ed98
mov ebp, dword [eax]
push eax
push esi
call fcn.10144390
add esp, 8
test ebp, ebp
je 0x1015ed98
push edi
call dword [0x1026e9ec]
add esp, 4
xor edi, edi
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push esi
call fcn.1014ad50
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x1015e971
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x1015e947
jmp 0x1015e975
test ebp, ebp
jne 0x1015e99c
push 0x100
lea eax, [esp + 0x130]
push eax
push edi
call fcn.1016d470
push eax
push str.socket_failure:__s
push esi
call fcn.1014d3d0
add esp, 0x18
jmp 0x1015edb2
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push dword [ebp + 0x18]
push eax
call fcn.100e1b00
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
movzx edi, ax
cmp ax, word [esp + 0x18]
ja 0x1015ea81
cmp word [esp + 0x38], 2
jne 0x1015e9dc
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3a], ax
push dword [esp + 0x24]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1015eb13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x1015ea69
cmp eax, 0x2741
jne 0x1015ea69
push 0x100
lea eax, [esp + 0x130]
push eax
push 0x2741
call fcn.1016d470
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.1014d4a0
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x40]
add esp, 0x1c
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x148]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1015eaa2
mov eax, dword [esp + 0x1c]
movzx edi, ax
mov byte [esp + 0x13], 0
jmp 0x1015ea76
cmp eax, 0x2740
je 0x1015ea75
cmp eax, 0xd
jne 0x1015eada
inc edi
cmp di, word [esp + 0x18]
jbe 0x1015e9c8
push str.bind___failed__we_ran_out_of_ports_
push esi
call fcn.1014d3d0
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push esi
call fcn.1014a170
add esp, 0x14
jmp 0x1015edb2
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1016d470
push eax
push str.getsockname___failed:__s
push esi
call fcn.1014d3d0
push dword [esp + 0x2c]
push edi
push esi
call fcn.1014a170
add esp, 0x24
jmp 0x1015edb2
push 0x100
lea ecx, [esp + 0x130]
push ecx
push eax
call fcn.1016d470
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.1014d3d0
push dword [esp + 0x30]
push dword [esp + 0x40]
push esi
call fcn.1014a170
add esp, 0x28
jmp 0x1015edb2
cmp di, word [esp + 0x18]
ja 0x1015ea81
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1015eb79
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1016d470
push eax
push str.getsockname___failed:__s
push esi
call fcn.1014d3d0
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push esi
call fcn.1014a170
add esp, 0x24
jmp 0x1015edb2
push 1
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1015ebaa
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1016d470
push eax
push str.socket_failure:__s
jmp 0x1015eb5d
push 0x2f
lea eax, [esp + 0xbc]
push eax
push ebp
call fcn.10143fe0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
cmp ebx, 2
je 0x1015ec16
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x38]
cmp byte [ebp + 0x26c], 0
jne 0x1015ebde
test ebx, ebx
je 0x1015ec10
cmp ebx, 1
jne 0x1015ebe9
cmp cx, 2
jne 0x1015ec10
movzx eax, cx
sub eax, 2
jne 0x1015ec10
push dword [esp + 0x3a]
call edi
movzx eax, ax
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1015ed20
cmp ebx, 1
je 0x1015ec73
mov cx, word [esp + 0x38]
inc ebx
cmp ebx, 2
jne 0x1015ebd1
mov edi, dword [esp + 0x28]
mov dword [ebp + 0x390], ebx
mov eax, dword [ebp + 0x14c]
cmp eax, 0xffffffff
je 0x1015ec40
push eax
push ebp
push esi
call fcn.1014a170
add esp, 0xc
mov dword [ebp + 0x14c], 0xffffffff
mov byte [ebp + 0x255], 0
mov byte [ebp + 0x257], 0
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x14c], eax
mov byte [ebp + 0x255], 1
mov eax, dword [esi + 0xc]
mov dword [eax + 0x39c], 0x1c
mov eax, edi
jmp 0x1015edb7
lea edx, [esp + 0xe8]
mov ebp, 0x2c
lea edi, [esp + 0xb8]
mov cl, byte [edi]
test cl, cl
je 0x1015ec9d
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add edi, 1
jne 0x1015ec86
mov eax, dword [esp + 0x2c]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.1013e450
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0xfc]
push eax
push str.PORT
push 0x101d11d4
lea eax, [ebp + 0x318]
push eax
push esi
call fcn.1016fa90
mov edi, eax
add esp, 0x28
test edi, edi
je 0x1015ec1a
push edi
call fcn.1016d560
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.1014d3d0
push dword [esp + 0x24]
push ebp
push esi
call fcn.1014a170
mov eax, dword [esi + 0xc]
add esp, 0x1c
mov dword [eax + 0x39c], 0
mov eax, edi
jmp 0x1015edb7
movzx eax, ax
push eax
lea eax, [esp + 0xbc]
push eax
xor eax, eax
cmp word [esp + 0x40], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
lea eax, [ebp + 0x318]
push eax
push esi
call fcn.1016fa90
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x1015ec1a
push edi
call fcn.1016d560
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.1014d3d0
push dword [esp + 0x24]
push ebp
push esi
call fcn.1014a170
mov dword [ebp + 0x390], 1
add esp, 0x1c
mov eax, dword [esi + 0xc]
mov dword [eax + 0x39c], 0
mov eax, edi
jmp 0x1015edb7
mov eax, dword [esp + 0x30]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.1014d3d0
push edi
call dword [0x1026e9ec]
add esp, 0x10
mov eax, 0x1e
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e04a9
add esp, 0x624
ret