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

Disassembly:
sub esp, 0x61c
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x618], eax
mov eax, dword [ebx + 0xc]
push ebp
push esi
push edi
push 0x2e
xor esi, esi
lea ecx, [esp + 0xb1]
push esi
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0xb8], 0
call fcn.00422f70
mov edi, dword [ebx + 0x5cc]
add esp, 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 1
cmp edi, esi
je 0x4db46d
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db310
sub eax, edx
cmp eax, 1
jbe 0x4db46d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db327
sub eax, edx
cmp eax, 0x41
jae 0x4db33c
mov eax, 0x41
jmp 0x4db34a
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db341
sub eax, edx
inc eax
push 1
push eax
call dword [0x6434d8]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4db378
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
mov al, byte [edi]
cmp al, 0x5b
jne 0x4db4e4
lea edx, [edi + 1]
push 0x5d
push edi
mov dword [esp + 0x1c], edx
call fcn.0041cb40
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4db41c
mov eax, dword [esp + 0x14]
mov ecx, ebp
sub ecx, eax
push ecx
push eax
push esi
call fcn.0041a380
add esp, 0xc
test ebp, ebp
je 0x4db41c
push 0x3a
push ebp
call fcn.0041cb40
mov edi, eax
add esp, 8
test edi, edi
je 0x4db41c
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call fcn.0041bb1f
push eax
call fcn.004be8c0
movzx ebp, ax
push 0x2d
push edi
mov dword [esp + 0x34], ebp
call fcn.0041cb40
xor edi, edi
add esp, 0x18
cmp eax, edi
je 0x4db554
push 0xa
inc eax
push edi
push eax
call fcn.0041bb1f
push eax
call fcn.004be8c0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp bp, ax
jbe 0x4db41c
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp byte [esi], 0
je 0x4db46d
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x48]
push 0x401
lea eax, [esp + 0x224]
push eax
mov eax, dword [edx + 0x18]
push esi
push ecx
push eax
call fcn.004eafe0
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.0053f5e0
add esp, 0x18
sub eax, 0
je 0x4db560
sub eax, 1
je 0x4db4c7
sub eax, 1
je 0x4db5a2
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], 0x80
mov eax, dword [edx + 0x148]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4db564
push 0x100
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004aa910
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004c8260
push esi
call dword [0x6434cc]
add esp, 0x1c
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
cmp al, 0x3a
jne 0x4db4ef
mov ebp, edi
jmp 0x4db3b1
push 0x3a
push edi
call fcn.0041cb40
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4db53f
lea edx, [esp + 0x2c]
push edx
push edi
push 0x17
call fcn.004e99f0
add esp, 0xc
cmp eax, 1
jne 0x4db534
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4db525
jmp 0x4db41c
mov eax, ebp
sub eax, edi
push eax
push edi
jmp 0x4db3a8
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4db545
jmp 0x4db41c
movzx edx, bp
mov dword [esp + 0x18], edx
jmp 0x4db41c
mov edi, esi
jmp 0x4db5a9
movzx eax, word [esp + 0x2c]
push 0x401
lea edx, [esp + 0x224]
push edx
cmp eax, 0x17
je 0x4db583
lea ecx, [esp + 0x38]
push ecx
push eax
jmp 0x4db58a
lea eax, [esp + 0x3c]
push eax
push 0x17
call fcn.004e96e0
add esp, 0x10
test eax, eax
je 0x4db4c7
mov dword [esp + 0x28], 0
lea edi, [esp + 0x220]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
push ebx
call fcn.004c4840
add esp, 0x14
cmp eax, 1
jne 0x4db5cf
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.004c9320
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4db5e7
mov ebp, dword [eax]
push eax
push ebx
call fcn.004c4af0
add esp, 8
test ebp, ebp
jne 0x4db61a
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.004c8260
push esi
call dword [0x6434cc]
add esp, 0x10
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
push esi
call dword [0x6434cc]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0xc], 0xffffffff
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0
push ebp
push ebx
call fcn.004c5a50
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x4db65a
call esi
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x4db634
jmp 0x4db65e
test ebp, ebp
jne 0x4db69d
push 0x100
lea ecx, [esp + 0x124]
push ecx
push edi
call fcn.004aa910
push eax
push str.socket_failure:__s
push ebx
call fcn.004c8260
add esp, 0x18
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00422ff0
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], edx
movzx edi, ax
cmp ax, word [esp + 0x18]
ja 0x4db829
nop
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0xc]
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4db822
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x28], 0
je 0x4db765
cmp eax, 0x2741
jne 0x4db765
push 0x100
lea eax, [esp + 0x124]
push eax
push 0x2741
call fcn.004aa910
push eax
movzx ecx, di
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s
push ebx
call fcn.004c81e0
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
mov dword [esp + 0x14], 0x80
mov ecx, dword [esi + 0x148]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4db782
movzx edi, word [esp + 0x1c]
mov dword [esp + 0x28], eax
jmp 0x4db772
cmp eax, 0x2740
je 0x4db771
cmp eax, 0xd
jne 0x4db7d3
inc edi
cmp di, word [esp + 0x18]
jbe 0x4db6d0
jmp 0x4db829
push 0x100
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004aa910
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004c8260
mov eax, dword [esp + 0x24]
push eax
push esi
push ebx
call fcn.004c59d0
add esp, 0x24
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
push 0x100
lea ecx, [esp + 0x124]
push ecx
push eax
call fcn.004aa910
push eax
movzx edx, di
push edx
push str.bind_port_hu__failed:__s
push ebx
call fcn.004c8260
mov eax, dword [esp + 0x28]
push eax
push esi
push ebx
call fcn.004c59d0
add esp, 0x28
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
cmp di, word [esp + 0x18]
jbe 0x4db860
push str.bind___failed__we_ran_out_of_ports_
push ebx
call fcn.004c8260
mov ecx, dword [esp + 0x14]
push ecx
push esi
push ebx
call fcn.004c59d0
add esp, 0x14
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4db782
mov ecx, dword [esp + 0xc]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4db8e7
push 0x100
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004aa910
push eax
push str.socket_failure:__s
push ebx
call fcn.004c8260
mov eax, dword [esp + 0x24]
push eax
push esi
push ebx
call fcn.004c59d0
add esp, 0x24
pop edi
pop esi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
push 0x2f
lea ecx, [esp + 0xb0]
push ecx
push ebp
call fcn.004c3a50
add esp, 0xc
cmp dword [esi + 0x2cc], 0
jne 0x4db916
cmp dword [esi + 0x2b0], 0
je 0x4db916
mov dword [esi + 0x2cc], 1
mov edi, dword [esp + 0x62c]
cmp edi, 2
je 0x4db984
mov cx, word [esp + 0x2c]
cmp dword [esi + 0x2cc], 0
jne 0x4db934
test edi, edi
je 0x4db977
cmp edi, 1
jne 0x4db93f
cmp cx, 2
jne 0x4db977
movzx eax, cx
sub eax, 2
je 0x4db953
sub eax, 0x15
jne 0x4db977
mov edx, dword [esp + 0x2e]
push edx
jmp 0x4db958
mov eax, dword [esp + 0x2e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ebp, ax
test edi, edi
je 0x4db9d6
cmp edi, 1
je 0x4dba6c
mov cx, word [esp + 0x2c]
inc edi
cmp edi, 2
jne 0x4db927
mov dword [esp + 0x62c], edi
mov edx, dword [esp + 0x62c]
push ebx
mov dword [esi + 0x430], edx
call fcn.004dae50
mov eax, dword [esp + 0x10]
mov dword [esi + 0x14c], eax
add esp, 4
mov edx, 0x1c
mov eax, ebx
mov dword [esi + 0x270], 1
call fcn.004db170
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
xor eax, eax
cmp word [esp + 0x2c], 2
movzx ecx, bp
setne al
push ecx
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0x634], edi
lea edi, [esi + 0x3a8]
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
push ebx
call fcn.004ee7e0
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
je 0x4db984
mov ebp, eax
push ebp
call fcn.004a9e90
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.004c8260
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push ebx
call fcn.004c59d0
add esp, 0x1c
xor edx, edx
mov eax, ebx
mov dword [edi + 0x88], 1
call fcn.004db170
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret
mov dword [esp + 0x62c], edi
lea ecx, [esp + 0xdc]
lea edx, [esp + 0xac]
mov al, byte [edx]
test al, al
je 0x4dba98
cmp al, 0x2e
jne 0x4dba90
mov byte [ecx], 0x2c
jmp 0x4dba92
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x4dba81
movzx eax, bp
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.004b24f0
lea eax, [esp + 0xf0]
push eax
push str.PORT
push str._s__s
lea eax, [esi + 0x3a8]
push eax
push ebx
call fcn.004ee7e0
add esp, 0x28
mov dword [esp + 0x14], eax
test eax, eax
je 0x4db984
mov edi, eax
push edi
call fcn.004a9e90
push eax
push str.Failure_sending_PORT_command:__s
push ebx
call fcn.004c8260
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push ebx
call fcn.004c59d0
add esp, 0x1c
xor edx, edx
mov eax, ebx
call fcn.004db170
mov ecx, dword [esp + 0x624]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00418878
add esp, 0x61c
ret