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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x600], eax
add eax, 0x3d0
push 0x2f
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x614], 0xffffffff
call fcn.0045c980
mov esi, dword [ebx + 0x538]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x618], eax
mov byte [ebp - 0x601], 1
mov dword [ebp - 0x60c], eax
test esi, esi
je 0x44302b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442e10
sub ecx, edx
cmp ecx, 1
jbe 0x44302b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442e27
sub ecx, edx
cmp ecx, 0x41
jae 0x442e3c
mov ecx, 0x41
jmp 0x442e4a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442e41
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x493014]
add esp, 8
mov dword [ebp - 0x60c], eax
test eax, eax
jne 0x442e6b
lea ebx, [eax + 0x1b]
jmp 0x44357b
mov al, byte [esi]
cmp al, 0x5b
jne 0x442e8f
push 0x5d
push esi
call fcn.0045cb50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x442f61
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
jmp 0x442ee8
cmp al, 0x3a
jne 0x442e97
mov ebx, esi
jmp 0x442ef6
push 0x3a
push esi
call fcn.0045cb50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x442f4c
lea eax, [ebp - 0x5fc]
push eax
push esi
push 0x17
call fcn.0044be50
add esp, 0xc
cmp eax, 1
jne 0x442ee2
mov ecx, dword [ebp - 0x60c]
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x442ed0
jmp 0x442f61
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x60c]
call fcn.00465c90
add esp, 0xc
push 0x3a
push ebx
call fcn.0045cb50
mov ebx, eax
add esp, 8
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x442f65
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.0046000d
push eax
call fcn.00421610
push 0x2d
push ebx
movzx esi, ax
call fcn.0045cb50
add esp, 0x18
test eax, eax
je 0x442f48
push 0xa
inc eax
push 0
push eax
call fcn.0046000d
push eax
call fcn.00421610
add esp, 0x10
movzx edx, ax
jmp 0x442f65
mov edx, esi
jmp 0x442f65
mov ecx, dword [ebp - 0x60c]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x442f54
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, si
movzx ebx, cx
xor ecx, ecx
cmp si, dx
cmovbe ecx, eax
mov eax, dword [ebp - 0x60c]
movzx esi, cx
cmp byte [eax], 0
je 0x443015
push 0x401
lea ecx, [ebp - 0x57c]
push ecx
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x4ac]
mov eax, dword [eax + 0x40]
push dword [eax + 0x18]
call fcn.0044ba20
add esp, 4
push eax
mov eax, dword [ebp - 0x600]
mov eax, dword [eax + 0x40]
push dword [eax + 4]
call fcn.004157c0
add esp, 0x18
sub eax, 0
je 0x442fed
sub eax, 1
je 0x443576
sub eax, 1
jne 0x442ffb
lea eax, [ebp - 0x57c]
mov dword [ebp - 0x620], eax
jmp 0x442ffd
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x620], eax
jmp 0x442ffd
xor eax, eax
mov dword [ebp - 0x61c], esi
mov esi, ebx
mov dword [ebp - 0x618], esi
test eax, eax
jne 0x4430dd
jmp 0x443025
mov eax, esi
mov dword [ebp - 0x61c], eax
mov eax, ebx
mov dword [ebp - 0x618], eax
mov ebx, dword [ebp - 0x608]
lea eax, [ebp - 0x610]
mov dword [ebp - 0x610], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x443085
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00430280
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0041ec20
add esp, 0x18
jmp 0x443576
mov ax, word [ebp - 0x5fc]
cmp ax, 0x17
je 0x44309d
lea ecx, [ebp - 0x5f8]
movzx eax, ax
jmp 0x4430a8
lea ecx, [ebp - 0x5f4]
mov eax, 0x17
push 0x401
lea edx, [ebp - 0x57c]
movzx eax, ax
push edx
push ecx
push eax
call fcn.0044baf0
add esp, 0x10
test eax, eax
je 0x443576
lea eax, [ebp - 0x57c]
xor cl, cl
mov dword [ebp - 0x620], eax
mov byte [ebp - 0x601], cl
mov esi, dword [ebp - 0x608]
lea ecx, [ebp - 0x624]
push ecx
push 0
push 0
push eax
push esi
call fcn.00424a90
add esp, 0x14
cmp eax, 1
jne 0x44310d
lea eax, [ebp - 0x624]
push eax
push esi
call fcn.00415990
add esp, 8
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x443561
mov ebx, dword [eax]
push eax
push esi
call fcn.00424d90
add esp, 8
test ebx, ebx
je 0x443561
nop
lea eax, [ebp - 0x614]
push eax
push 0
push ebx
push esi
call fcn.00420180
add esp, 0x10
test eax, eax
je 0x44317a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x443130
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.00430280
push eax
push str.socket_failure:__s
push esi
call fcn.0041ec20
add esp, 0x18
jmp 0x443576
push dword [ebx + 0x10]
lea eax, [ebp - 0x5fc]
push dword [ebx + 0x18]
push eax
call fcn.0045c400
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x610], eax
mov eax, dword [ebp - 0x61c]
movzx esi, ax
cmp ax, word [ebp - 0x618]
ja 0x44354b
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x610]
movzx eax, ax
mov word [ebp - 0x5fa], ax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x614]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4432e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [ebp - 0x601]
test cl, cl
je 0x44326b
cmp eax, 0x2741
jne 0x44326b
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.00430280
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0041ece0
add esp, 0x1c
mov dword [ebp - 0x610], 0x80
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x443288
mov eax, dword [ebp - 0x61c]
xor cl, cl
movzx esi, ax
mov byte [ebp - 0x601], cl
jmp 0x4431ae
cmp eax, 0x2740
je 0x443277
cmp eax, 0xd
jne 0x4432b4
inc esi
mov byte [ebp - 0x601], cl
movzx eax, si
mov esi, eax
jmp 0x4431a1
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00430280
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041ec20
add esp, 0x18
jmp 0x443576
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.00430280
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0041ec20
add esp, 0x1c
jmp 0x443576
cmp si, word [ebp - 0x618]
ja 0x44354b
lea eax, [ebp - 0x610]
mov dword [ebp - 0x610], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x614]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44334b
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00430280
mov esi, dword [ebp - 0x608]
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041ec20
add esp, 0x18
jmp 0x443576
push 1
push dword [ebp - 0x614]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x44338f
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00430280
mov esi, dword [ebp - 0x608]
push eax
push str.socket_failure:__s
push esi
call fcn.0041ec20
add esp, 0x18
jmp 0x443576
push 0x2f
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.00424a40
mov eax, dword [ebp - 0x600]
add esp, 0xc
cmp byte [eax + 0x20a], 0
jne 0x4433bd
cmp byte [eax + 0x204], 0
je 0x4433bd
mov byte [eax + 0x20a], 1
cmp edi, 2
je 0x443426
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x5fc]
nop
cmp byte [eax + 0x20a], 0
jne 0x4433dd
test edi, edi
je 0x44341a
cmp edi, 1
jne 0x4433e8
cmp cx, 2
jne 0x44341a
movzx eax, cx
sub eax, 2
je 0x4433f5
sub eax, 0x15
jne 0x443414
push dword [ebp - 0x5fa]
call esi
movzx ebx, ax
test edi, edi
je 0x4434f4
cmp edi, 1
je 0x44346a
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x600]
inc edi
mov dword [ebp - 0x62c], edi
cmp edi, 2
jne 0x4433d0
mov esi, dword [ebp - 0x608]
mov eax, dword [ebp - 0x628]
mov dword [eax + 0x78], edi
lea eax, [ebp - 0x614]
mov edi, dword [ebp - 0x600]
push eax
push 1
push edi
push esi
call fcn.0041f9a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x443581
mov dword [ebp - 0x614], 0xffffffff
lea ecx, [eax + 0x1c]
jmp 0x443583
lea edx, [ebp - 0x78]
mov edi, 0x2c
lea esi, [ebp - 0x34]
mov cl, byte [esi]
test cl, cl
je 0x44348c
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x443475
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.0042e400
mov esi, dword [ebp - 0x608]
lea eax, [ebp - 0x78]
push eax
push str.PORT
push 0x48489c
push dword [ebp - 0x628]
push esi
call fcn.00455c30
mov edi, dword [ebp - 0x62c]
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x44342c
push ebx
call fcn.00430400
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0041ec20
add esp, 0x10
jmp 0x44357b
mov esi, dword [ebp - 0x608]
movzx eax, bx
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x5fc], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push dword [ebp - 0x628]
push esi
call fcn.00455c30
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x44342c
push ebx
call fcn.00430400
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0041ec20
add esp, 0x10
jmp 0x44357b
mov esi, dword [ebp - 0x608]
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0041ec20
add esp, 8
jmp 0x443576
mov eax, dword [ebp - 0x620]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0041ec20
add esp, 0xc
mov ebx, 0x1e
mov edi, dword [ebp - 0x600]
xor ecx, ecx
mov edx, dword [ebp - 0x608]
mov eax, edx
push ecx
push eax
call fcn.00440990
mov eax, dword [ebp - 0x614]
add esp, 8
cmp eax, 0xffffffff
je 0x4435ab
push eax
push edi
push edx
call fcn.0041f920
add esp, 0xc
push dword [ebp - 0x60c]
call dword [0x493008]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0045a978
mov esp, ebp
pop ebp
ret