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

Disassembly:
sub esp, 0x65c
mov eax, dword [0x46c400]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push esi
mov esi, dword [esp + 0x66c]
push edi
push 0x2f
push 0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], eax
add eax, 0x3f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], 0x1e
mov dword [esp + 0x30], 0xffffffff
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [esi + 0x55c]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], 0
test ebp, ebp
je 0x43c48a
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c2b8
sub ecx, edx
cmp ecx, 1
jbe 0x43c48a
mov al, byte [ebp]
cmp al, 0x5b
jne 0x43c2f7
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 0x43c335
mov eax, dword [esp + 0x14]
mov edi, ebp
sub edi, eax
mov dword [esp + 0x30], eax
jmp 0x43c33b
cmp al, 0x3a
je 0x43c33b
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebp
test eax, eax
je 0x43c396
mov edi, eax
lea eax, [esp + 0x44]
push eax
push ebp
push 0x17
sub edi, ebp
call fcn.0042f3f0
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x14]
xor edx, edx
test ebp, ebp
je 0x43c3ab
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x43c3ad
push 0xa
inc eax
push ebp
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.0041a0a0
push 0x2d
push dword [esp + 0x28]
movzx ebp, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x43c392
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.0041a0a0
add esp, 0x10
movzx edx, ax
jmp 0x43c3ad
mov edx, ebp
jmp 0x43c3ad
mov edi, ebp
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x43c3a0
sub edi, ecx
xor edx, edx
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 + 0x1c], eax
movzx eax, bp
cmovbe ecx, eax
movzx ebp, cx
test edi, edi
je 0x43c479
cmp edi, 0x32
jae 0x43c9e4
push edi
push dword [esp + 0x34]
lea eax, [esp + 0xf4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + edi + 0xec], 0
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x264]
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x4c8]
add eax, 0x10
push eax
call fcn.004572b0
add esp, 4
push eax
mov eax, dword [edi + 0x24]
push dword [eax]
call fcn.0040b010
add esp, 0x18
sub eax, 0
je 0x43c453
sub eax, 1
je 0x43c9e4
sub eax, 1
jne 0x43c45c
lea edi, [esp + 0x264]
jmp 0x43c45e
lea edi, [esp + 0xec]
jmp 0x43c45e
xor edi, edi
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx ebp, ax
mov dword [esp + 0x1c], ebp
test edi, edi
jne 0x43c51e
jmp 0x43c48a
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43c4dd
push pe_nt_image_headers32
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00429770
push eax
push str.getsockname___failed:__s
push esi
call fcn.00416d50
add esp, 0x18
jmp 0x43c9e4
cmp word [esp + 0x3c], 0x17
lea edx, [esp + 0x44]
movzx eax, word [esp + 0x3c]
lea ecx, [esp + 0x40]
cmove ecx, edx
lea edx, [esp + 0x264]
push 0x401
push edx
push ecx
push eax
call fcn.0044cb10
add esp, 0x10
test eax, eax
je 0x43c9e4
lea edi, [esp + 0x264]
mov byte [esp + 0x13], 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push edi
push esi
call fcn.00420800
add esp, 0x14
cmp eax, 1
jne 0x43c544
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0040b230
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43c9d5
mov ebp, dword [eax]
push eax
push esi
call fcn.00420da0
add esp, 8
test ebp, ebp
je 0x43c9d5
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop word [eax + eax]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebp
push esi
call fcn.0044b620
add esp, 0x14
test eax, eax
je 0x43c5c1
call edi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x43c570
push pe_nt_image_headers32
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.00429770
push eax
push str.socket_failure:__s
push esi
call fcn.00416d50
add esp, 0x18
jmp 0x43c9e4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x43c5d8
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x4645e8]
jmp 0x43c5dd
mov eax, 0x464868
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.00416f90
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp ax, word [esp + 0x1c]
movzx edi, ax
ja 0x43c9c5
mov eax, dword [sym.imp.WS2_32.dll_htons]
push edi
call eax
push dword [esp + 0x20]
movzx eax, ax
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43c700
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x43c6be
cmp eax, 0x2741
jne 0x43c6be
push pe_nt_image_headers32
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.00429770
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.00416e20
add esp, 0x1c
mov dword [esp + 0x20], 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43c4b0
mov eax, dword [esp + 0x14]
movzx edi, ax
cmp di, word [esp + 0x1c]
mov byte [esp + 0x13], 0
jmp 0x43c60f
cmp eax, 0x2740
je 0x43c6ca
cmp eax, 0xd
jne 0x43c6d5
inc edi
cmp di, word [esp + 0x1c]
jmp 0x43c60f
push pe_nt_image_headers32
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.00429770
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.00416d50
add esp, 0x1c
jmp 0x43c9e4
cmp di, word [esp + 0x1c]
ja 0x43c9c5
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43c4b0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x43c746
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x4645e8]
jmp 0x43c74b
mov eax, 0x464868
movzx edi, di
push edi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.00416f90
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43c79b
push pe_nt_image_headers32
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00429770
push eax
push str.socket_failure:__s
push esi
call fcn.00416d50
add esp, 0x18
jmp 0x43c9e4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x43c7b2
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x4645e8]
jmp 0x43c7b7
mov eax, 0x464868
push edi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.00416f90
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebp
call fcn.004207b0
mov ebp, dword [esp + 0x44]
add esp, 0x1c
cmp byte [ebp + 0x251], 0
jne 0x43c7f4
cmp byte [ebp + 0x24c], 0
je 0x43c7f4
mov byte [ebp + 0x251], 1
lea eax, [esp + 0x24]
push eax
push 1
push ebp
push esi
call fcn.0044b3d0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x43c9e4
mov dword [esp + 0x24], 0xffffffff
cmp ebx, 2
je 0x43c87e
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax + eax]
cmp byte [ebp + 0x251], 0
jne 0x43c83d
test ebx, ebx
je 0x43c874
cmp ebx, 1
jne 0x43c848
cmp cx, 2
jne 0x43c874
movzx eax, cx
sub eax, 2
je 0x43c855
sub eax, 0x15
jne 0x43c874
push dword [esp + 0x3e]
call edi
movzx ebp, ax
test ebx, ebx
je 0x43c945
cmp ebx, 1
je 0x43c8b4
mov cx, word [esp + 0x3c]
mov ebp, dword [esp + 0x28]
inc ebx
cmp ebx, 2
jne 0x43c830
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov dword [edi + 0xa0], ebx
mov edi, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov al, byte [edi + 0x49e]
cmp al, 0x1c
je 0x43c9b8
test edi, edi
je 0x43c99b
movzx eax, al
mov eax, dword [eax*4 + 0x4645e8]
jmp 0x43c9a0
lea edx, [esp + 0x120]
mov esi, 0x2c
lea edi, [esp + 0xbc]
mov cl, byte [edi]
test cl, cl
je 0x43c8de
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add edi, 1
jne 0x43c8c7
movzx ecx, bp
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.0041e0c0
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x134]
mov esi, dword [esp + 0x4c]
push eax
push 0x464679
push 0x464130
push edi
push esi
call fcn.00455d00
mov ecx, eax
add esp, 0x28
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x43c882
push ecx
call fcn.004298e0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.00416d50
add esp, 0x10
jmp 0x43c9e4
mov edi, dword [esp + 0x2c]
movzx eax, bp
push eax
lea eax, [esp + 0xc0]
push eax
xor eax, eax
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
push esi
call fcn.00455d00
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x43c882
push ecx
call fcn.004298e0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.00416d50
add esp, 0x10
jmp 0x43c9e4
mov eax, 0x464868
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.00416f90
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov byte [edi + 0x49e], 0x1c
test ecx, ecx
je 0x43ca25
jmp 0x43c9e4
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.00416d50
add esp, 8
jmp 0x43c9e4
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.00416d50
add esp, 0xc
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x49e]
test al, al
je 0x43ca1a
test edi, edi
je 0x43ca01
movzx eax, al
mov eax, dword [eax*4 + 0x4645e8]
jmp 0x43ca06
mov eax, 0x464868
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.00416f90
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov byte [edi + 0x49e], 0
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x43ca42
push eax
push dword [esp + 0x2c]
push esi
call fcn.0044b5f0
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x43ca44
mov eax, ecx
mov ecx, dword [esp + 0x668]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459940
add esp, 0x65c
ret