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

Disassembly:
sub esp, 0x658
mov eax, dword [0x10091014]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
mov ebx, dword [esp + 0x664]
push ebp
push esi
mov esi, dword [esp + 0x668]
push edi
push 0x2e
push 0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], eax
add eax, 0x430
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc1]
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0xc4], 0
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [esi + 0x564]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], 0
test ebp, ebp
je 0x1005f61c
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005f448
sub ecx, edx
cmp ecx, 1
jbe 0x1005f61c
mov al, byte [ebp]
cmp al, 0x5b
jne 0x1005f487
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1005f4c5
mov eax, dword [esp + 0x14]
mov edi, ebp
sub edi, eax
mov dword [esp + 0x28], eax
jmp 0x1005f4cb
cmp al, 0x3a
je 0x1005f4cb
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebp
test eax, eax
je 0x1005f526
mov edi, eax
lea eax, [esp + 0x40]
push eax
push ebp
push 0x17
sub edi, ebp
call fcn.10052550
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x14]
xor edx, edx
test ebp, ebp
je 0x1005f53f
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
xor ebp, ebp
xor edx, edx
test eax, eax
je 0x1005f541
push 0xa
push edx
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.10039b70
push 0x2d
push dword [esp + 0x28]
movzx ebp, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x1005f522
push 0xa
inc eax
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.10039b70
add esp, 0x10
movzx edx, ax
jmp 0x1005f541
mov edx, ebp
jmp 0x1005f541
mov edi, ebp
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x1005f530
sub edi, ecx
xor ebp, ebp
xor edx, edx
jmp 0x1005f541
xor ebp, ebp
xor ecx, ecx
movzx eax, dx
cmp bp, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp bp, dx
mov dword [esp + 0x18], eax
movzx eax, bp
cmovbe ecx, eax
movzx ebp, cx
test edi, edi
je 0x1005f60b
cmp edi, 0x32
jae 0x1005fb72
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0xf0]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + edi + 0xe8], 0
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x260]
push 0x401
push eax
lea eax, [esp + 0xf0]
push eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x508]
add eax, 0x10
push eax
call fcn.1006d520
add esp, 4
push eax
mov eax, dword [edi + 0x24]
push dword [eax]
call fcn.100796c0
add esp, 0x18
sub eax, 0
je 0x1005f5e7
sub eax, 1
je 0x1005fb72
sub eax, 1
jne 0x1005f5f0
lea edi, [esp + 0x260]
jmp 0x1005f5f2
lea edi, [esp + 0xe8]
jmp 0x1005f5f2
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
movzx ebp, ax
mov dword [esp + 0x18], ebp
test edi, edi
jne 0x1005f6bb
jmp 0x1005f61c
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1005f66f
push 0x100
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10022370
push eax
push str.getsockname___failed:__s
push esi
call fcn.10036610
add esp, 0x18
jmp 0x1005fb72
mov ax, word [esp + 0x38]
cmp ax, 0x17
je 0x1005f683
lea ecx, [esp + 0x3c]
movzx eax, ax
jmp 0x1005f68c
lea ecx, [esp + 0x40]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x264]
movzx eax, ax
push edx
push ecx
push eax
call fcn.1006bfc0
add esp, 0x10
test eax, eax
je 0x1005fb72
xor al, al
lea edi, [esp + 0x260]
mov byte [esp + 0x13], al
lea eax, [esp + 0x30]
push eax
push 0
push 0
push edi
push esi
call fcn.1003cbe0
add esp, 0x14
cmp eax, 1
jne 0x1005f6e1
lea eax, [esp + 0x30]
push eax
push esi
call fcn.10029190
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1005fb63
mov ebp, dword [eax]
push eax
push esi
call fcn.1003d170
add esp, 8
test ebp, ebp
je 0x1005fb63
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x512]
push eax
push 0
push ebp
push esi
call fcn.1003ed90
add esp, 0x14
test eax, eax
je 0x1005f758
call edi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x1005f707
push 0x100
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.10022370
push eax
push str.socket_failure:__s
push esi
call fcn.10036610
add esp, 0x18
jmp 0x1005fb72
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005f76f
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x10085838]
jmp 0x1005f774
mov eax, 0x10085ab8
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.10036850
push dword [ebp + 0x10]
lea eax, [esp + 0x48]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
movzx edi, ax
cmp ax, word [esp + 0x18]
ja 0x1005fb53
mov eax, dword [sym.imp.WS2_32.dll_htons]
push edi
call eax
push dword [esp + 0x1c]
movzx eax, ax
mov word [esp + 0x3e], ax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1005f898
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x1005f852
cmp eax, 0x2741
jne 0x1005f852
push 0x100
lea eax, [esp + 0x164]
push eax
push 0x2741
call fcn.10022370
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.100366e0
add esp, 0x1c
mov dword [esp + 0x1c], 0x80
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1005f642
mov eax, dword [esp + 0x14]
movzx edi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x1005f7ac
cmp eax, 0x2740
je 0x1005f85e
cmp eax, 0xd
jne 0x1005f86d
inc edi
mov byte [esp + 0x13], cl
movzx eax, di
mov edi, eax
jmp 0x1005f7a1
push 0x100
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.10022370
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.10036610
add esp, 0x1c
jmp 0x1005fb72
cmp di, word [esp + 0x18]
ja 0x1005fb53
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1005f642
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005f8de
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x10085838]
jmp 0x1005f8e3
mov eax, 0x10085ab8
movzx edi, di
push edi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.10036850
add esp, 0x10
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1005f933
push 0x100
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10022370
push eax
push str.socket_failure:__s
push esi
call fcn.10036610
add esp, 0x18
jmp 0x1005fb72
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005f94a
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x10085838]
jmp 0x1005f94f
mov eax, 0x10085ab8
push edi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.10036850
push 0x2f
lea eax, [esp + 0xcc]
push eax
push ebp
call fcn.1003cb90
mov edi, dword [esp + 0x40]
add esp, 0x1c
cmp byte [edi + 0x299], 0
jne 0x1005f98c
cmp byte [edi + 0x294], 0
je 0x1005f98c
mov byte [edi + 0x299], 1
lea eax, [esp + 0x20]
push eax
push 1
push edi
push esi
call fcn.1003e9f0
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x1005fb77
mov dword [esp + 0x20], 0xffffffff
cmp ebx, 2
je 0x1005fa11
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x38]
cmp byte [edi + 0x299], 0
jne 0x1005f9d0
test ebx, ebx
je 0x1005fa07
cmp ebx, 1
jne 0x1005f9db
cmp cx, 2
jne 0x1005fa07
movzx eax, cx
sub eax, 2
je 0x1005f9e8
sub eax, 0x15
jne 0x1005fa07
push dword [esp + 0x3a]
call ebp
movzx edi, ax
test ebx, ebx
je 0x1005fadb
cmp ebx, 1
je 0x1005fa43
mov cx, word [esp + 0x38]
mov edi, dword [esp + 0x24]
inc ebx
cmp ebx, 2
jne 0x1005f9c3
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [edi + 0xa0], ebx
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4de]
cmp al, 0x1c
je 0x1005fb46
test edi, edi
je 0x1005fb2d
movzx eax, al
mov eax, dword [eax*4 + 0x10085838]
jmp 0x1005fb32
mov cl, byte [esp + 0xb8]
lea edx, [esp + 0x11c]
test cl, cl
je 0x1005fa7c
lea ebp, [esp + 0xb8]
mov eax, edx
sub ebp, eax
mov esi, 0x2c
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
mov cl, byte [edx + ebp]
test cl, cl
jne 0x1005fa65
mov esi, dword [esp + 0x34]
movzx ecx, di
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.100404c0
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x130]
push eax
push 0x100858c9
push 0x10085378
push edi
push esi
call fcn.100753e0
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x1005fa15
push ebp
call fcn.100224e0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.10036610
add esp, 0x10
jmp 0x1005fb77
movzx eax, di
mov edi, dword [esp + 0x2c]
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
push edi
push esi
call fcn.100753e0
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x1005fa15
push ebp
call fcn.100224e0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.10036610
add esp, 0x10
jmp 0x1005fb77
mov eax, 0x10085ab8
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.10036850
add esp, 0x10
mov byte [edi + 0x4de], 0x1c
test ebp, ebp
je 0x1005fbb4
jmp 0x1005fb77
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.10036610
add esp, 8
jmp 0x1005fb72
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.10036610
add esp, 0xc
mov ebp, 0x1e
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4de]
test al, al
je 0x1005fbad
test edi, edi
je 0x1005fb94
movzx eax, al
mov eax, dword [eax*4 + 0x10085838]
jmp 0x1005fb99
mov eax, 0x10085ab8
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.10036850
add esp, 0x10
mov byte [edi + 0x4de], 0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x1005fbcb
push eax
push dword [esp + 0x28]
push esi
call fcn.1003ed60
add esp, 0xc
mov ecx, dword [esp + 0x664]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001a41e
add esp, 0x658
ret