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

Disassembly:
sub esp, 0x65c
mov eax, dword [0x6c02d0]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
mov ebp, dword [esp + 0x66c]
push esi
push edi
mov edi, dword [esp + 0x670]
push 0x2e
push 0
mov dword [esp + 0x40], edi
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
add eax, 0x430
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc5]
push eax
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0xc8], 0
call fcn.005f77b0
mov ecx, dword [edi + 0x564]
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x49cc25
mov edx, ecx
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x49ca50
sub edx, esi
cmp edx, 1
jbe 0x49cc25
mov al, byte [ecx]
cmp al, 0x5b
jne 0x49ca93
lea ebx, [ecx + 1]
mov esi, ebx
push 0x5d
push esi
call fcn.005f7910
mov ecx, eax
add esp, 8
xor eax, eax
test ecx, ecx
cmove ebx, eax
mov eax, ecx
mov dword [esp + 0x30], ebx
sub eax, esi
mov ebx, ecx
neg ebx
sbb ebx, ebx
and ebx, eax
jmp 0x49cacb
cmp al, 0x3a
je 0x49cad3
push 0x3a
push ecx
call fcn.005f7910
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x24]
mov ebx, esi
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x49cb2c
lea ecx, [esp + 0x44]
sub ebx, 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 0x49cb3e
push 0x3a
push ecx
call fcn.005f7910
add esp, 8
mov dword [esp + 0x24], eax
xor esi, esi
xor edx, edx
test eax, eax
je 0x49cb3e
push 0xa
push edx
inc eax
push eax
call fcn.005ffc8d
push eax
call fcn.004776c0
push 0x2d
push dword [esp + 0x38]
movzx esi, ax
call fcn.005f7910
add esp, 0x18
test eax, eax
je 0x49cb28
push 0xa
inc eax
push 0
push eax
call fcn.005ffc8d
push eax
call fcn.004776c0
add esp, 0x10
movzx edx, ax
jmp 0x49cb3e
mov edx, esi
jmp 0x49cb3e
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x49cb31
sub ebx, 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 + 0x14], eax
cmp si, dx
movzx eax, si
cmovbe ecx, eax
movzx eax, cx
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x49cc13
cmp ebx, 0x32
jae 0x49d17f
push ebx
push dword [esp + 0x34]
lea eax, [esp + 0xf4]
push eax
call fcn.005f7b80
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x270]
add esp, 0xc
mov byte [esp + ebx + 0xec], 0
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [esi + 0x24]
push dword [esi + 0x508]
add eax, 0x10
push eax
call fcn.004aa3b0
add esp, 4
push eax
mov eax, dword [esi + 0x24]
push dword [eax]
call fcn.0044e760
add esp, 0x18
sub eax, 0
je 0x49cbe8
sub eax, 1
je 0x49d17f
sub eax, 1
jne 0x49cbf1
lea esi, [esp + 0x264]
jmp 0x49cbf3
lea esi, [esp + 0xec]
jmp 0x49cbf3
xor esi, esi
mov eax, dword [esp + 0x24]
movzx ebx, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
movzx ebx, ax
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x49ccc1
jmp 0x49cc25
movzx ecx, ax
mov eax, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49cc78
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0045db30
push eax
push str.getsockname___failed:__s
push edi
call fcn.00473ed0
add esp, 0x18
jmp 0x49d17f
mov ax, word [esp + 0x3c]
cmp ax, 0x17
je 0x49cc8c
lea ecx, [esp + 0x40]
movzx eax, ax
jmp 0x49cc95
lea ecx, [esp + 0x44]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x268]
movzx eax, ax
push edx
push ecx
push eax
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x49d17f
xor al, al
lea esi, [esp + 0x264]
mov byte [esp + 0x13], al
lea eax, [esp + 0x34]
push eax
push 0
push 0
push esi
push edi
call fcn.00480cf0
add esp, 0x14
cmp eax, 1
jne 0x49cce7
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004676b0
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x49d170
mov ebx, dword [eax]
push eax
push edi
call fcn.00481270
add esp, 8
test ebx, ebx
je 0x49d170
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 ebx
push edi
call fcn.0047c590
add esp, 0x14
test eax, eax
je 0x49cd61
call esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x49cd10
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0045db30
push eax
push str.socket_failure:__s
push edi
call fcn.00473ed0
add esp, 0x18
jmp 0x49d17f
mov eax, dword [edi + 0x18]
test eax, eax
je 0x49cd78
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x6301b0]
jmp 0x49cd7d
mov eax, 0x630434
push eax
push str.__s__ftp_state_use_port____opened_socket
push edi
call fcn.00474110
push dword [ebx + 0x10]
lea eax, [esp + 0x4c]
push dword [ebx + 0x18]
push eax
call fcn.005f7b80
mov eax, dword [ebx + 0x10]
add esp, 0x18
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
movzx esi, ax
cmp ax, word [esp + 0x14]
ja 0x49d160
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x18]
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x49ce9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x49ce58
cmp eax, 0x2741
jne 0x49ce58
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.0045db30
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push edi
call fcn.00473fa0
add esp, 0x1c
mov dword [esp + 0x18], 0x80
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49cc4b
mov eax, dword [esp + 0x28]
movzx esi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x49cdb5
cmp eax, 0x2740
je 0x49ce64
cmp eax, 0xd
jne 0x49ce73
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x49cdaa
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0045db30
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push edi
call fcn.00473ed0
add esp, 0x1c
jmp 0x49d17f
cmp si, word [esp + 0x14]
ja 0x49d160
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49cc4b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x49cee4
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x6301b0]
jmp 0x49cee9
mov eax, 0x630434
movzx esi, si
push esi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push edi
call fcn.00474110
add esp, 0x10
push 1
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x49cf39
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0045db30
push eax
push str.socket_failure:__s
push edi
call fcn.00473ed0
add esp, 0x18
jmp 0x49d17f
mov eax, dword [edi + 0x18]
test eax, eax
je 0x49cf50
movzx eax, byte [eax + 0x4de]
mov eax, dword [eax*4 + 0x6301b0]
jmp 0x49cf55
mov eax, 0x630434
push esi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push edi
call fcn.00474110
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebx
call fcn.00480ca0
mov esi, dword [esp + 0x3c]
add esp, 0x1c
cmp byte [esi + 0x299], 0
jne 0x49cf92
cmp byte [esi + 0x294], 0
je 0x49cf92
mov byte [esi + 0x299], 1
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push edi
call fcn.0047c1e0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x49d184
mov dword [esp + 0x1c], 0xffffffff
cmp ebp, 2
je 0x49d01e
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax]
cmp byte [esi + 0x299], 0
jne 0x49cfdd
test ebp, ebp
je 0x49d014
cmp ebp, 1
jne 0x49cfe8
cmp cx, 2
jne 0x49d014
movzx eax, cx
sub eax, 2
je 0x49cff5
sub eax, 0x15
jne 0x49d014
push dword [esp + 0x3e]
call ebx
movzx esi, ax
test ebp, ebp
je 0x49d0e8
cmp ebp, 1
je 0x49d050
mov cx, word [esp + 0x3c]
mov esi, dword [esp + 0x20]
inc ebp
cmp ebp, 2
jne 0x49cfd0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov dword [esi + 0xa0], ebp
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4de]
cmp al, 0x1c
je 0x49d153
test esi, esi
je 0x49d13a
movzx eax, al
mov eax, dword [eax*4 + 0x6301b0]
jmp 0x49d13f
mov cl, byte [esp + 0xbc]
lea edx, [esp + 0x120]
test cl, cl
je 0x49d089
lea ebx, [esp + 0xbc]
mov eax, edx
sub ebx, eax
mov edi, 0x2c
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
mov cl, byte [ebx + edx]
test cl, cl
jne 0x49d072
mov edi, dword [esp + 0x38]
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.00479860
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x134]
push eax
push 0x630241
push 0x62fcf0
push esi
push edi
call fcn.004b1d60
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x49d022
push ebx
call fcn.0045dca0
push eax
push str.Failure_sending_PORT_command:__s
push edi
call fcn.00473ed0
add esp, 0x10
jmp 0x49d184
movzx eax, si
mov esi, dword [esp + 0x2c]
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 esi
push edi
call fcn.004b1d60
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x49d022
push ebx
call fcn.0045dca0
push eax
push str.Failure_sending_EPRT_command:__s
push edi
call fcn.00473ed0
add esp, 0x10
jmp 0x49d184
mov eax, 0x630434
push str.PORT
push eax
push str.__s_______s_
push edi
call fcn.00474110
add esp, 0x10
mov byte [esi + 0x4de], 0x1c
test ebx, ebx
je 0x49d1c1
jmp 0x49d184
push str.bind___failed__we_ran_out_of_ports
push edi
call fcn.00473ed0
add esp, 8
jmp 0x49d17f
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.00473ed0
add esp, 0xc
mov ebx, 0x1e
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4de]
test al, al
je 0x49d1ba
test esi, esi
je 0x49d1a1
movzx eax, al
mov eax, dword [eax*4 + 0x6301b0]
jmp 0x49d1a6
mov eax, 0x630434
push str.STOP
push eax
push str.__s_______s_
push edi
call fcn.00474110
add esp, 0x10
mov byte [esi + 0x4de], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x49d1d8
push eax
push dword [esp + 0x24]
push edi
call fcn.0047c560
add esp, 0xc
mov ecx, dword [esp + 0x668]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f5e48
add esp, 0x65c
ret