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

Disassembly:
sub esp, 0x658
mov eax, dword [0x4ad440]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
mov ebp, dword [esp + 0x664]
push esi
push edi
mov edi, dword [esp + 0x670]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
add eax, 0x3f0
push 0x2f
mov dword [esp + 0x30], eax
lea eax, [esp + 0xbc]
push 0
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], 0xffffffff
call fcn.00467a40
mov ebx, dword [ebp + 0x504]
add esp, 0xc
xor esi, esi
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 ebx, ebx
je 0x44813a
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447f70
sub ecx, edx
cmp ecx, 1
jbe 0x44813a
mov al, byte [ebx]
cmp al, 0x5b
jne 0x447fae
lea eax, [ebx + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call fcn.00467ba0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x447fec
mov eax, dword [esp + 0x14]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x28], eax
jmp 0x447ff2
cmp al, 0x3a
je 0x447ff2
push 0x3a
push ebx
call fcn.00467ba0
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
test eax, eax
je 0x44804b
mov esi, eax
lea eax, [esp + 0x40]
push eax
push ebx
push 0x17
sub esi, ebx
call fcn.0043b6b0
add esp, 0xc
lea ebx, [eax - 1]
neg ebx
sbb ebx, ebx
and ebx, dword [esp + 0x14]
xor edx, edx
test ebx, ebx
je 0x44805b
push 0x3a
push ebx
call fcn.00467ba0
add esp, 8
mov dword [esp + 0x14], eax
xor edx, edx
xor ebx, ebx
test eax, eax
je 0x44805d
push 0xa
inc eax
push ebx
push eax
call fcn.0047388a
push eax
call fcn.004276e0
push 0x2d
push dword [esp + 0x28]
movzx ebx, ax
call fcn.00467ba0
add esp, 0x18
test eax, eax
je 0x448047
push 0xa
inc eax
push 0
push eax
call fcn.0047388a
push eax
call fcn.004276e0
add esp, 0x10
movzx edx, ax
jmp 0x44805d
mov edx, ebx
jmp 0x44805d
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x448050
sub esi, ecx
xor edx, edx
xor ebx, ebx
xor ecx, ecx
movzx eax, dx
cmp bx, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp bx, dx
mov dword [esp + 0x18], eax
movzx eax, bx
cmovbe ecx, eax
movzx ebx, cx
test esi, esi
je 0x448129
cmp esi, 0x32
jae 0x4485ca
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0xf0]
push eax
call fcn.00467e10
add esp, 0xc
mov byte [esp + esi + 0xe8], 0
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x260]
push 0x401
push eax
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esi + 0x24]
push dword [esi + 0x4c8]
add eax, 0x10
push eax
call fcn.00462690
add esp, 4
push eax
mov eax, dword [esi + 0x24]
push dword [eax]
call fcn.00407260
add esp, 0x18
sub eax, 0
je 0x448103
sub eax, 1
je 0x4485ca
sub eax, 1
jne 0x44810c
lea esi, [esp + 0x260]
jmp 0x44810e
lea esi, [esp + 0xe8]
jmp 0x44810e
xor esi, esi
mov eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx ebx, ax
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x4481ce
jmp 0x44813a
mov eax, ebx
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 0x44818d
push 0x100
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040ecc0
push eax
push str.getsockname___failed:__s
push ebp
call fcn.004241a0
add esp, 0x18
jmp 0x4485ca
cmp word [esp + 0x38], 0x17
lea edx, [esp + 0x40]
movzx eax, word [esp + 0x38]
lea ecx, [esp + 0x3c]
cmove ecx, edx
lea edx, [esp + 0x260]
push 0x401
push edx
push ecx
push eax
call fcn.00457ff0
add esp, 0x10
test eax, eax
je 0x4485ca
lea esi, [esp + 0x260]
mov byte [esp + 0x13], 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push esi
push ebp
call fcn.0042d980
add esp, 0x14
cmp eax, 1
jne 0x4481f4
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.00418690
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4485bb
mov ebx, dword [eax]
push eax
push ebp
call fcn.0042df20
add esp, 8
test ebx, ebx
je 0x4485bb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop word [eax + eax]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebx
push ebp
call fcn.00457170
add esp, 0x14
test eax, eax
je 0x448271
call esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x448220
push 0x100
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0040ecc0
push eax
push str.socket_failure:__s
push ebp
call fcn.004241a0
add esp, 0x18
jmp 0x4485ca
push dword [ebx + 0x10]
lea eax, [esp + 0x3c]
push dword [ebx + 0x18]
push eax
call fcn.00467e10
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmp ax, word [esp + 0x18]
movzx esi, ax
ja 0x4485ab
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
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 0x448388
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x448346
cmp eax, 0x2741
jne 0x448346
push 0x100
lea eax, [esp + 0x164]
push eax
push 0x2741
call fcn.0040ecc0
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push ebp
call fcn.00424270
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 0x448160
mov eax, dword [esp + 0x14]
movzx esi, ax
cmp si, word [esp + 0x18]
mov byte [esp + 0x13], 0
jmp 0x448297
cmp eax, 0x2740
je 0x448352
cmp eax, 0xd
jne 0x44835d
inc esi
cmp si, word [esp + 0x18]
jmp 0x448297
push 0x100
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0040ecc0
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push ebp
call fcn.004241a0
add esp, 0x1c
jmp 0x4485ca
cmp si, word [esp + 0x18]
ja 0x4485ab
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 0x448160
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4483f4
push 0x100
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040ecc0
push eax
push str.socket_failure:__s
push ebp
call fcn.004241a0
add esp, 0x18
jmp 0x4485ca
push 0x2f
lea eax, [esp + 0xbc]
push eax
push ebx
call fcn.0042d930
mov ebx, dword [esp + 0x30]
add esp, 0xc
cmp byte [ebx + 0x251], 0
jne 0x448424
cmp byte [ebx + 0x24c], 0
je 0x448424
mov byte [ebx + 0x251], 1
lea eax, [esp + 0x20]
push eax
push 1
push ebx
push ebp
call fcn.00456f20
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4485cf
mov dword [esp + 0x20], 0xffffffff
cmp edi, 2
je 0x4484ae
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x38]
nop dword [eax + eax]
cmp byte [ebx + 0x251], 0
jne 0x44846d
test edi, edi
je 0x4484a4
cmp edi, 1
jne 0x448478
cmp cx, 2
jne 0x4484a4
movzx eax, cx
sub eax, 2
je 0x448485
sub eax, 0x15
jne 0x4484a4
push dword [esp + 0x3a]
call esi
movzx ebx, ax
test edi, edi
je 0x448559
cmp edi, 1
je 0x4484cf
mov cx, word [esp + 0x38]
mov ebx, dword [esp + 0x24]
inc edi
cmp edi, 2
jne 0x448460
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], edi
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0x1c
test esi, esi
je 0x4485d9
jmp 0x4485cf
lea edx, [esp + 0x11c]
mov ebp, 0x2c
lea esi, [esp + 0xb8]
mov cl, byte [esi]
test cl, cl
je 0x4484f9
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add esi, 1
jne 0x4484e2
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00429890
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x130]
mov ebp, dword [esp + 0x48]
push eax
push str.PORT
push 0x49a6fc
push ebx
push ebp
call fcn.004610e0
mov esi, eax
add esp, 0x28
test esi, esi
je 0x4484b2
push esi
call fcn.0040ee30
push eax
push str.Failure_sending_PORT_command:__s
push ebp
call fcn.004241a0
add esp, 0x10
jmp 0x4485cf
movzx eax, bx
mov ebx, 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 ebx
push ebp
call fcn.004610e0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4484b2
push esi
call fcn.0040ee30
push eax
push str.Failure_sending_EPRT_command:__s
push ebp
call fcn.004241a0
add esp, 0x10
jmp 0x4485cf
push str.bind___failed__we_ran_out_of_ports
push ebp
call fcn.004241a0
add esp, 8
jmp 0x4485ca
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebp
call fcn.004241a0
add esp, 0xc
mov esi, 0x1e
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x4485f0
push eax
push dword [esp + 0x28]
push ebp
call fcn.00457140
add esp, 0xc
mov ecx, dword [esp + 0x664]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466003
add esp, 0x658
ret