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

Disassembly:
sub esp, 0x9ac
mov eax, dword [0x4bcad4]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b0]
push ebx
push ebp
mov ebp, dword [edi]
push esi
xor ebx, ebx
push 0xff
lea ecx, [esp + 0xb5]
push ebx
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0xbc], bl
call fcn.00477750
mov esi, dword [ebp + 0x404]
mov dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x404]
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 1
cmp eax, ebx
je 0x45a038
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459ee0
sub eax, edx
cmp eax, 1
jbe 0x45a038
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459ef7
sub eax, edx
cmp eax, 0x41
jae 0x459f0c
mov eax, 0x41
jmp 0x459f1a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459f11
sub eax, edx
inc eax
push 1
push eax
call dword [0x4bc5a8]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x459f48
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
mov al, byte [esi]
cmp al, 0x5b
jne 0x45a0a3
lea edx, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x28], edx
call fcn.00477ef0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x459fec
mov eax, dword [esp + 0x20]
mov ecx, ebp
sub ecx, eax
push ecx
push eax
push ebx
call fcn.0047ba20
add esp, 0xc
test ebp, ebp
je 0x459fec
push 0x3a
push ebp
call fcn.00477ef0
mov esi, eax
add esp, 8
test esi, esi
je 0x459fec
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.0047a0b9
push eax
call fcn.004483c0
movzx ebp, ax
push 0x2d
push esi
mov dword [esp + 0x34], ebp
call fcn.00477ef0
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x45a113
push 0xa
inc eax
push esi
push eax
call fcn.0047a0b9
push eax
call fcn.004483c0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp bp, ax
jbe 0x459fec
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
cmp byte [ebx], 0
je 0x45a038
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0x4c]
push 0x401
lea eax, [esp + 0x1b4]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ecx
push eax
call fcn.004684d0
mov ecx, dword [edi + 0x4c]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.00438f30
add esp, 0x18
sub eax, 0
je 0x45a11f
dec eax
je 0x45a086
dec eax
je 0x45a161
mov edx, dword [edi + 0x168]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45a123
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0044a830
push eax
mov eax, dword [esp + 0x1c]
push str.getsockname___failed:__s
push eax
call fcn.00444910
push ebx
call dword [0x4bc59c]
add esp, 0x18
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
cmp al, 0x3a
jne 0x45a0ae
mov ebp, esi
jmp 0x459f81
push 0x3a
push esi
call fcn.00477ef0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45a0fe
lea edx, [esp + 0x30]
push edx
push esi
push 0x17
call fcn.0044b280
add esp, 0xc
cmp eax, 1
jne 0x45a0f3
xor eax, eax
mov edx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45a0e4
jmp 0x459fec
mov eax, ebp
sub eax, esi
push eax
push esi
jmp 0x459f78
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45a104
jmp 0x459fec
movzx edx, bp
mov dword [esp + 0x18], edx
jmp 0x459fec
mov esi, ebx
jmp 0x45a168
movzx eax, word [esp + 0x30]
push 0x401
cmp eax, 0x17
je 0x45a142
lea ecx, [esp + 0x1b4]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
jmp 0x45a151
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0x17
call fcn.0044ec50
add esp, 0x10
mov dword [esp + 0x28], 0
lea esi, [esp + 0x1b0]
lea edx, [esp + 0x24]
push edx
push 0
push esi
push edi
call fcn.0043a600
add esp, 0x10
cmp eax, 1
jne 0x45a18c
lea eax, [esp + 0x24]
push eax
push edi
call fcn.004392d0
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45a1a8
mov ecx, dword [esp + 0x10]
mov ebp, dword [eax]
push eax
push ecx
call fcn.0043aad0
add esp, 8
test ebp, ebp
jne 0x45a1df
mov edx, dword [esp + 0x10]
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edx
call fcn.00444910
push ebx
call dword [0x4bc59c]
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
push ebx
call dword [0x4bc59c]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0xc], 0xffffffff
xor esi, esi
lea esp, [esp]
lea eax, [esp + 0xc]
push eax
push 0
push ebp
push edi
call fcn.00447680
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
je 0x45a226
call ebx
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x45a200
jmp 0x45a22a
test ebp, ebp
jne 0x45a261
push esi
push edi
call fcn.0044a830
mov ecx, dword [esp + 0x18]
push eax
push str.socket_failure:__s
push ecx
call fcn.00444910
add esp, 0x14
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00475200
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x14], edx
movzx esi, ax
cmp ax, word [esp + 0x18]
ja 0x45a3c5
mov ebx, dword [esp + 0x28]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0xc]
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x45a3be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x45a317
cmp eax, 0x2741
jne 0x45a317
push eax
push edi
call fcn.0044a830
push eax
movzx eax, si
mov esi, dword [esp + 0x1c]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00444880
mov eax, dword [edi + 0x168]
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45a334
movzx esi, word [esp + 0x1c]
xor ebx, ebx
jmp 0x45a324
cmp eax, 0x2740
je 0x45a323
cmp eax, 0xd
jne 0x45a378
inc esi
cmp si, word [esp + 0x18]
jbe 0x45a293
jmp 0x45a3c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0044a830
push eax
push str.getsockname___failed:__s
push esi
call fcn.00444910
mov ecx, dword [esp + 0x20]
push ecx
push edi
call fcn.00447620
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
push eax
push edi
call fcn.0044a830
push eax
mov eax, dword [esp + 0x1c]
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.00444910
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.00447620
add esp, 0x20
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
cmp si, word [esp + 0x18]
jbe 0x45a3ff
mov edx, dword [esp + 0x10]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.00444910
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.00447620
add esp, 0x10
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45a468
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0044a830
push eax
push str.getsockname___failed:__s
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00444910
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.00447620
add esp, 0x1c
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
mov eax, dword [esp + 0xc]
push 1
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x45a48e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0044a830
push eax
push str.socket_failure:__s
jmp 0x45a433
push 0x100
lea eax, [esp + 0xb4]
push eax
push ebp
call fcn.0043a2b0
add esp, 0xc
cmp dword [edi + 0x2fc], 0
jne 0x45a4c0
cmp dword [edi + 0x2d4], 0
je 0x45a4c0
mov dword [edi + 0x2fc], 1
mov ebp, dword [esp + 0x2c]
cmp ebp, 2
je 0x45a522
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp dword [edi + 0x2fc], 0
jne 0x45a4e1
test ebp, ebp
je 0x45a51c
cmp ebp, 1
jne 0x45a4ec
cmp cx, 2
jne 0x45a51c
movzx eax, cx
sub eax, 2
je 0x45a500
sub eax, 0x15
jne 0x45a51c
mov ecx, dword [esp + 0x32]
push ecx
jmp 0x45a505
mov edx, dword [esp + 0x32]
push edx
call ebx
movzx esi, ax
test ebp, ebp
je 0x45a58d
cmp ebp, 1
je 0x45a603
mov cx, word [esp + 0x30]
inc ebp
cmp ebp, 2
jne 0x45a4d4
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x5d0], ebp
mov eax, dword [edi + 0x16c]
cmp eax, 0xffffffff
je 0x45a54b
push eax
push edi
call fcn.00447620
add esp, 8
mov dword [edi + 0x16c], 0xffffffff
mov eax, dword [esp + 0xc]
mov dword [edi + 0x62c], 0
mov dword [edi + 0x16c], eax
mov dword [edi + 0x2e0], 1
mov dword [edi + 0x5dc], 0x1c
mov ecx, dword [esp + 0x9b4]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004751f1
add esp, 0x9ac
ret
xor edx, edx
cmp word [esp + 0x30], 2
movzx eax, si
setne dl
push eax
lea ecx, [esp + 0xb4]
push ecx
lea esi, [edi + 0x568]
inc edx
push edx
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.0046a6d0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x45a526
push ebx
call fcn.00449e90
push eax
mov eax, dword [esp + 0x18]
push str.Failure_sending_EPRT_command:__s
push eax
call fcn.00444910
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.00447620
mov dword [esi + 0x68], 1
add esp, 0x18
mov dword [edi + 0x5dc], 0
jmp 0x45a573
lea ecx, [esp + 0x5b4]
lea edx, [esp + 0xb0]
mov al, byte [edx]
test al, al
je 0x45a626
cmp al, 0x2e
jne 0x45a620
mov byte [ecx], 0x2c
jmp 0x45a622
mov byte [ecx], al
inc ecx
inc edx
jne 0x45a611
movzx eax, si
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.00448c10
lea eax, [esp + 0x5c8]
push eax
push str.PORT
lea eax, [edi + 0x568]
push 0x4a1bdc
push eax
call fcn.0046a6d0
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x45a526
push ebx
call fcn.00449e90
mov ecx, dword [esp + 0x14]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.00444910
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.00447620
add esp, 0x18
mov dword [edi + 0x5dc], 0
jmp 0x45a573