Function at 0x43e040
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x658
mov eax, dword [0x4a3480]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
mov ebx, dword [esp + 0x664]
push ebp
push esi
push edi
mov edi, dword [esp + 0x66c]
push 0x2e
push 0
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
add eax, 0x430
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc1]
push eax
mov byte [esp + 0xc4], 0
call fcn.0045d420
mov ecx, dword [edi + 0x564]
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x43e2b5
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x43e0d8
sub edx, esi
cmp edx, 1
jbe 0x43e2b5
mov al, byte [ecx]
cmp al, 0x5b
jne 0x43e11b
lea ebp, [ecx + 1]
mov esi, ebp
push 0x5d
push esi
call fcn.0045d580
mov ecx, eax
add esp, 8
xor eax, eax
test ecx, ecx
cmove ebp, eax
mov eax, ecx
mov dword [esp + 0x30], ebp
sub eax, esi
mov ebp, ecx
neg ebp
sbb ebp, ebp
and ebp, eax
jmp 0x43e153
cmp al, 0x3a
je 0x43e15b
push 0x3a
push ecx
call fcn.0045d580
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x43e1b4
lea ecx, [esp + 0x40]
sub ebp, eax
push ecx
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [eax - 1]
neg ecx
sbb ecx, ecx
and ecx, esi
xor esi, esi
xor edx, edx
test ecx, ecx
je 0x43e1ce
push 0x3a
push ecx
call fcn.0045d580
add esp, 8
mov dword [esp + 0x14], eax
xor esi, esi
xor edx, edx
test eax, eax
je 0x43e1ce
push 0xa
push edx
inc eax
push eax
call fcn.00467dd0
push eax
call fcn.00419ef0
push 0x2d
push dword [esp + 0x28]
movzx esi, ax
call fcn.0045d580
add esp, 0x18
test eax, eax
je 0x43e1b0
push 0xa
inc eax
push 0
push eax
call fcn.00467dd0
push eax
call fcn.00419ef0
add esp, 0x10
movzx edx, ax
jmp 0x43e1ce
mov edx, esi
jmp 0x43e1ce
mov ebp, eax
lea ecx, [ebp + 1]
nop dword [eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x43e1c0
sub ebp, ecx
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x24], eax
cmp si, dx
movzx eax, si
cmovbe ecx, eax
movzx eax, cx
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x43e2a3
cmp ebp, 0x32
jae 0x43e7f9
push ebp
push dword [esp + 0x34]
lea eax, [esp + 0xf0]
push eax
call fcn.0045d6b0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x26c]
add esp, 0xc
mov byte [esp + ebp + 0xe8], 0
push 0x401
push eax
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esi + 0x24]
push dword [esi + 0x508]
add eax, 0x10
push eax
call fcn.0044af40
add esp, 4
push eax
mov eax, dword [esi + 0x24]
push dword [eax]
call fcn.004054b0
add esp, 0x18
sub eax, 0
je 0x43e278
sub eax, 1
je 0x43e7f9
sub eax, 1
jne 0x43e281
lea esi, [esp + 0x260]
jmp 0x43e283
lea esi, [esp + 0xe8]
jmp 0x43e283
xor esi, esi
mov eax, dword [esp + 0x14]
movzx ebp, ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
movzx ebp, ax
mov dword [esp + 0x24], ebp
test esi, esi
jne 0x43e351
jmp 0x43e2b5
movzx ecx, ax
mov eax, dword [esp + 0x24]
movzx eax, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43e308
push 0x100
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042ab00
push eax
push str.getsockname___failed:__s
push edi
call fcn.00416750
add esp, 0x18
jmp 0x43e7f9
mov ax, word [esp + 0x38]
cmp ax, 0x17
je 0x43e31c
lea ecx, [esp + 0x3c]
movzx eax, ax
jmp 0x43e325
lea ecx, [esp + 0x40]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x264]
movzx eax, ax
push edx
push ecx
push eax
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x43e7f9
xor al, al
lea esi, [esp + 0x260]
mov byte [esp + 0x13], al
lea eax, [esp + 0x34]
push eax
push 0
push 0
push esi
push edi
call fcn.00421960
add esp, 0x14
cmp eax, 1
jne 0x43e377
lea eax, [esp + 0x34]
push eax
push edi
call fcn.0040e010
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43e7ea
mov ebp, dword [eax]
push eax
push edi
call fcn.00421e90
add esp, 8
test ebp, ebp
je 0x43e7ea
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax + 0x512]
push eax
push 0
push ebp
push edi
call fcn.0041d210
add esp, 0x14
test eax, eax
je 0x43e3f1
call esi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x43e3a0
push 0x100
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0042ab00
push eax
push str.socket_failure:__s
push edi
call fcn.00416750
add esp, 0x18
jmp 0x43e7f9
mov eax, dword [edi + 0x18]
test eax, eax
je 0x43e408
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x48f090]
jmp 0x43e40d
mov eax, 0x48f314
push eax
push str.__s__ftp_state_use_port____opened_socket
push edi
call fcn.00416990
push dword [ebp + 0x10]
lea eax, [esp + 0x48]
push dword [ebp + 0x18]
push eax
call fcn.0045d6b0
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
movzx esi, ax
cmp ax, word [esp + 0x24]
ja 0x43e7da
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x18]
mov word [esp + 0x3e], ax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43e52e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x43e4e8
cmp eax, 0x2741
jne 0x43e4e8
push 0x100
lea eax, [esp + 0x164]
push eax
push 0x2741
call fcn.0042ab00
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push edi
call fcn.00416820
add esp, 0x1c
mov dword [esp + 0x18], 0x80
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43e2db
mov eax, dword [esp + 0x28]
movzx esi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x43e445
cmp eax, 0x2740
je 0x43e4f4
cmp eax, 0xd
jne 0x43e503
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x43e43a
push 0x100
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0042ab00
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push edi
call fcn.00416750
add esp, 0x1c
jmp 0x43e7f9
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43e2db
mov eax, dword [edi + 0x18]
test eax, eax
je 0x43e569
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x48f090]
jmp 0x43e56e
mov eax, 0x48f314
movzx esi, si
push esi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push edi
call fcn.00416990
add esp, 0x10
push 1
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43e5be
push 0x100
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042ab00
push eax
push str.socket_failure:__s
push edi
call fcn.00416750
add esp, 0x18
jmp 0x43e7f9
mov eax, dword [edi + 0x18]
test eax, eax
je 0x43e5d5
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x48f090]
jmp 0x43e5da
mov eax, 0x48f314
push esi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push edi
call fcn.00416990
push 0x2f
lea eax, [esp + 0xcc]
push eax
push ebp
call fcn.00421910
mov esi, dword [esp + 0x3c]
add esp, 0x1c
cmp byte [esi + 0x299], 0
jne 0x43e617
cmp byte [esi + 0x294], 0
je 0x43e617
mov byte [esi + 0x299], 1
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push edi
call fcn.0041ce60
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x43e7fe
mov dword [esp + 0x1c], 0xffffffff
cmp ebx, 2
je 0x43e69e
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x38]
nop
cmp byte [esi + 0x299], 0
jne 0x43e65d
test ebx, ebx
je 0x43e694
cmp ebx, 1
jne 0x43e668
cmp cx, 2
jne 0x43e694
movzx eax, cx
sub eax, 2
je 0x43e675
sub eax, 0x15
jne 0x43e694
push dword [esp + 0x3a]
call ebp
movzx esi, ax
test ebx, ebx
je 0x43e762
cmp ebx, 1
je 0x43e6d0
mov cx, word [esp + 0x38]
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, 2
jne 0x43e650
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov dword [esi + 0xa0], ebx
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4de]
cmp al, 0x1c
je 0x43e7cd
test esi, esi
je 0x43e7b4
movzx eax, al
mov eax, dword [eax*4 + 0x48f090]
jmp 0x43e7b9
mov al, byte [esp + 0xb8]
lea edx, [esp + 0x11c]
test al, al
je 0x43e703
lea ecx, [esp + 0xb8]
mov ebp, edx
sub ecx, ebp
nop dword [eax]
cmp al, 0x2e
mov al, 0x2c
je 0x43e6f9
mov al, byte [edx + ecx]
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x43e6f0
movzx ecx, si
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.0041f6f0
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x130]
push eax
push 0x48f121
push 0x48ebd0
push esi
push edi
call fcn.004529b0
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x43e6a2
push ebp
call fcn.0042ac70
push eax
push str.Failure_sending_PORT_command:__s
push edi
call fcn.00416750
add esp, 0x10
jmp 0x43e7fe
movzx eax, si
mov esi, 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 esi
push edi
call fcn.004529b0
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x43e6a2
push ebp
call fcn.0042ac70
push eax
push str.Failure_sending_EPRT_command:__s
push edi
call fcn.00416750
add esp, 0x10
jmp 0x43e7fe
mov eax, 0x48f314
push str.PORT
push eax
push str.__s_______s_
push edi
call fcn.00416990
add esp, 0x10
mov byte [esi + 0x4de], 0x1c
test ebp, ebp
je 0x43e83b
jmp 0x43e7fe
push str.bind___failed__we_ran_out_of_ports
push edi
call fcn.00416750
add esp, 8
jmp 0x43e7f9
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.00416750
add esp, 0xc
mov ebp, 0x1e
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4de]
test al, al
je 0x43e834
test esi, esi
je 0x43e81b
movzx eax, al
mov eax, dword [eax*4 + 0x48f090]
jmp 0x43e820
mov eax, 0x48f314
push str.STOP
push eax
push str.__s_______s_
push edi
call fcn.00416990
add esp, 0x10
mov byte [esi + 0x4de], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x43e852
push eax
push dword [esp + 0x24]
push edi
call fcn.0041d1e0
add esp, 0xc
mov ecx, dword [esp + 0x664]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045b917
add esp, 0x658
ret