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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x56c3f4]
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 + 0x18]
mov dword [ebp - 0x600], eax
add eax, 0x260
push 0x2e
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x33]
push 0
push eax
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x618], 0xffffffff
mov byte [ebp - 0x34], 0
call fcn.005073b0
mov esi, dword [ebx + 0x51c]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x61c], eax
mov byte [ebp - 0x601], 1
mov dword [ebp - 0x60c], eax
test esi, esi
je 0x452d28
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452b04
sub ecx, edx
cmp ecx, 1
jbe 0x452d28
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452b20
sub ecx, edx
cmp ecx, 0x41
jae 0x452b35
mov ecx, 0x41
jmp 0x452b49
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452b40
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x56c030]
add esp, 8
mov dword [ebp - 0x60c], eax
test eax, eax
jne 0x452b6a
lea esi, [eax + 0x1b]
jmp 0x4532ac
mov al, byte [esi]
cmp al, 0x5b
jne 0x452b8e
push 0x5d
push esi
call fcn.005079f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x452c5e
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
jmp 0x452be5
cmp al, 0x3a
jne 0x452b96
mov ebx, esi
jmp 0x452bf3
push 0x3a
push esi
call fcn.005079f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x452c49
lea eax, [ebp - 0x5f4]
push eax
push esi
push 0x17
call fcn.00466df0
add esp, 0xc
cmp eax, 1
jne 0x452bdf
mov ecx, dword [ebp - 0x60c]
sub ecx, esi
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x452bd0
jmp 0x452c5e
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x60c]
call fcn.0051b9d0
add esp, 0xc
push 0x3a
push ebx
call fcn.005079f0
mov ebx, eax
add esp, 8
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x452c62
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.00519da4
push eax
call fcn.00439280
push 0x2d
push ebx
movzx esi, ax
call fcn.005079f0
add esp, 0x18
test eax, eax
je 0x452c45
push 0xa
inc eax
push 0
push eax
call fcn.00519da4
push eax
call fcn.00439280
add esp, 0x10
movzx edx, ax
jmp 0x452c62
mov edx, esi
jmp 0x452c62
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 0x452c51
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 0x452d12
push 0x401
lea ecx, [ebp - 0x57c]
push ecx
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x328]
mov eax, dword [eax + 0x44]
add eax, 0x10
push eax
call fcn.0046d3d0
add esp, 4
push eax
mov eax, dword [ebp - 0x600]
mov eax, dword [eax + 0x44]
push dword [eax]
call fcn.0042e0f0
add esp, 0x18
sub eax, 0
je 0x452cea
sub eax, 1
je 0x4532a7
sub eax, 1
jne 0x452cf8
lea eax, [ebp - 0x57c]
mov dword [ebp - 0x610], eax
jmp 0x452cfa
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x610], eax
jmp 0x452cfa
xor eax, eax
mov dword [ebp - 0x624], esi
mov esi, ebx
mov dword [ebp - 0x61c], esi
test eax, eax
jne 0x452dda
jmp 0x452d22
mov eax, esi
mov dword [ebp - 0x624], eax
mov eax, ebx
mov dword [ebp - 0x61c], eax
mov ebx, dword [ebp - 0x608]
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 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 0x452d82
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448570
push eax
push str.getsockname___failed:__s
push ebx
call fcn.00437230
add esp, 0x18
jmp 0x4532a7
mov ax, word [ebp - 0x5fc]
cmp ax, 0x17
je 0x452d9a
lea ecx, [ebp - 0x5f8]
movzx eax, ax
jmp 0x452da5
lea ecx, [ebp - 0x5f4]
mov eax, 0x17
push 0x401
lea edx, [ebp - 0x57c]
movzx eax, ax
push edx
push ecx
push eax
call fcn.00465400
add esp, 0x10
test eax, eax
je 0x4532a7
lea eax, [ebp - 0x57c]
xor cl, cl
mov dword [ebp - 0x610], eax
mov byte [ebp - 0x601], cl
mov esi, dword [ebp - 0x608]
lea ecx, [ebp - 0x62c]
push ecx
push 0
push 0
push eax
push esi
call fcn.0043c5c0
add esp, 0x14
cmp eax, 1
jne 0x452e0a
lea eax, [ebp - 0x62c]
push eax
push esi
call fcn.0042e2c0
add esp, 8
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x453292
mov ebx, dword [eax]
push eax
push esi
call fcn.0043c930
add esp, 8
test ebx, ebx
je 0x453292
nop dword [eax]
lea eax, [ebp - 0x618]
push eax
mov eax, dword [ebp - 0x600]
movzx eax, byte [eax + 0x333]
push eax
push 0
push ebx
push esi
call fcn.00460d10
add esp, 0x14
test eax, eax
je 0x452e88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x452e30
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.00448570
push eax
push str.socket_failure:__s
push esi
call fcn.00437230
add esp, 0x18
jmp 0x4532a7
push dword [ebx + 0x10]
lea eax, [ebp - 0x5fc]
push dword [ebx + 0x18]
push eax
call fcn.00506e30
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x624]
movzx esi, ax
cmp ax, word [ebp - 0x61c]
ja 0x45327c
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x614]
mov word [ebp - 0x5fa], ax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x452fef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [ebp - 0x601]
test cl, cl
je 0x452f76
cmp eax, 0x2741
jne 0x452f76
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.00448570
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.004372f0
add esp, 0x1c
mov dword [ebp - 0x614], 0x80
lea eax, [ebp - 0x614]
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 0x452f93
mov eax, dword [ebp - 0x624]
xor cl, cl
movzx esi, ax
mov byte [ebp - 0x601], cl
jmp 0x452ebc
cmp eax, 0x2740
je 0x452f82
cmp eax, 0xd
jne 0x452fbf
inc esi
mov byte [ebp - 0x601], cl
movzx eax, si
mov esi, eax
jmp 0x452eaf
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448570
push eax
push str.getsockname___failed:__s
push esi
call fcn.00437230
add esp, 0x18
jmp 0x4532a7
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.00448570
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.00437230
add esp, 0x1c
jmp 0x4532a7
cmp si, word [ebp - 0x61c]
ja 0x45327c
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x453056
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448570
mov esi, dword [ebp - 0x608]
push eax
push str.getsockname___failed:__s
push esi
call fcn.00437230
add esp, 0x18
jmp 0x4532a7
push 1
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x45309a
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448570
mov esi, dword [ebp - 0x608]
push eax
push str.socket_failure:__s
push esi
call fcn.00437230
add esp, 0x18
jmp 0x4532a7
push 0x2f
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.0043c570
mov eax, dword [ebp - 0x600]
add esp, 0xc
cmp byte [eax + 0x1da], 0
jne 0x4530c8
cmp byte [eax + 0x1d4], 0
je 0x4530c8
mov byte [eax + 0x1da], 1
cmp edi, 2
je 0x453136
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x5fc]
nop word [eax + eax]
cmp byte [eax + 0x1da], 0
jne 0x4530ed
test edi, edi
je 0x45312a
cmp edi, 1
jne 0x4530f8
cmp cx, 2
jne 0x45312a
movzx eax, cx
sub eax, 2
je 0x453105
sub eax, 0x15
jne 0x453124
push dword [ebp - 0x5fa]
call esi
movzx ebx, ax
test edi, edi
je 0x45321a
cmp edi, 1
je 0x453181
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x600]
inc edi
mov dword [ebp - 0x620], edi
cmp edi, 2
jne 0x4530e0
mov ebx, dword [ebp - 0x628]
mov esi, dword [ebp - 0x608]
lea eax, [ebp - 0x618]
mov dword [ebx + 0x90], edi
mov ebx, dword [ebp - 0x600]
push eax
push 1
push ebx
push esi
call fcn.00460ae0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4532b2
mov dword [ebp - 0x618], 0xffffffff
mov byte [ebp - 0x620], 0x1c
jmp 0x4532b9
lea edx, [ebp - 0x78]
mov edi, 0x2c
lea esi, [ebp - 0x34]
nop dword [eax]
mov cl, byte [esi]
test cl, cl
je 0x4531a7
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x453190
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.00446da0
mov ebx, dword [ebp - 0x628]
lea eax, [ebp - 0x78]
mov esi, dword [ebp - 0x608]
push eax
push str.PORT
push 0x53fb30
push ebx
push esi
call fcn.0046c1b0
mov edi, dword [ebp - 0x620]
add esp, 0x28
mov dword [ebp - 0x610], eax
test eax, eax
je 0x453142
push eax
call fcn.00448660
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.00437230
mov esi, dword [ebp - 0x610]
add esp, 0x10
jmp 0x4532ac
mov esi, dword [ebp - 0x608]
movzx eax, bx
mov ebx, dword [ebp - 0x628]
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 ebx
push esi
call fcn.0046c1b0
add esp, 0x1c
mov dword [ebp - 0x610], eax
test eax, eax
je 0x453142
push eax
call fcn.00448660
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.00437230
mov esi, dword [ebp - 0x610]
add esp, 0x10
jmp 0x4532ac
mov esi, dword [ebp - 0x608]
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.00437230
add esp, 8
jmp 0x4532a7
mov eax, dword [ebp - 0x610]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.00437230
add esp, 0xc
mov esi, 0x1e
mov ebx, dword [ebp - 0x600]
mov byte [ebp - 0x620], 0
mov edx, dword [ebp - 0x608]
mov eax, edx
push dword [ebp - 0x620]
push eax
call fcn.004505e0
mov eax, dword [ebp - 0x618]
add esp, 8
cmp eax, 0xffffffff
je 0x4532e6
push eax
push ebx
push edx
call fcn.00460cf0
add esp, 0xc
push dword [ebp - 0x60c]
call dword [0x56c024]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00504c38
mov esp, ebp
pop ebp
ret