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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x108], 0
push 0xff
lea eax, [ebp - 0x107]
mov dword [ebp - 0xa44], edi
push 0
mov esi, dword [edi]
mov ebx, edx
push eax
mov dword [ebp - 0xa2c], esi
call fcn.0048d420
mov esi, dword [esi + 0x3dc]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xa24], 0
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa34], 0
mov dword [ebp - 0xa40], 1
mov dword [ebp - 0xa28], eax
test esi, esi
je 0x441686
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441528
sub ecx, edx
cmp ecx, 1
jbe 0x441686
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441540
sub ecx, edx
cmp ecx, 0x16
jae 0x441555
mov ecx, 0x16
jmp 0x441569
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441560
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x4d75d4]
add esp, 8
mov dword [ebp - 0xa28], eax
test eax, eax
jne 0x441598
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x3a
je 0x4415d1
push 0x3a
push esi
call fcn.0048a160
add esp, 8
mov dword [ebp - 0xa3c], eax
test eax, eax
je 0x44165f
mov ecx, eax
mov eax, dword [ebp - 0xa28]
sub ecx, esi
push ecx
push esi
push eax
call fcn.0048b450
mov esi, dword [ebp - 0xa3c]
add esp, 0xc
test esi, esi
je 0x441674
push 0x3a
push esi
call fcn.0048a160
mov esi, eax
add esp, 8
test esi, esi
je 0x441674
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.00489a10
add esp, 0xc
movzx eax, ax
mov dword [ebp - 0xa38], eax
push 0x2d
push esi
call fcn.0048a160
add esp, 8
test eax, eax
je 0x44164e
push 0xa
inc eax
push 0
push eax
call fcn.00489a10
mov ecx, dword [ebp - 0xa38]
add esp, 0xc
movzx eax, ax
mov dword [ebp - 0xa34], eax
cmp cx, ax
jbe 0x441674
mov dword [ebp - 0xa34], 0
mov dword [ebp - 0xa38], 0
jmp 0x441674
mov ecx, dword [ebp - 0xa38]
movzx eax, cx
mov dword [ebp - 0xa34], eax
jmp 0x441674
mov ecx, dword [ebp - 0xa28]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x441667
mov esi, dword [ebp - 0xa28]
cmp byte [esi], 0
je 0x441688
mov eax, esi
jmp 0x441721
xor esi, esi
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 0x80
push eax
lea eax, [ebp - 0x990]
push eax
push dword [edi + 0x150]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4416e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
add esp, 0xc
test esi, esi
je 0x441cb7
push esi
jmp 0x441cae
movzx eax, word [ebp - 0x990]
sub eax, 2
je 0x4416fa
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x441713
push 0x401
lea edx, [ebp - 0x510]
lea ecx, [ebp - 0x98c]
call fcn.00448d00
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x510]
mov dword [ebp - 0xa40], ecx
lea ecx, [ebp - 0xa24]
mov dword [ebp - 0xa3c], eax
push ecx
push 0
mov edx, eax
mov ecx, edi
call fcn.00426c50
add esp, 8
cmp eax, 1
jne 0x44174e
lea edx, [ebp - 0xa24]
mov ecx, edi
call fcn.004274f0
mov edx, dword [ebp - 0xa24]
test edx, edx
je 0x441c8a
mov ecx, dword [ebp - 0xa2c]
mov esi, dword [edx]
call fcn.00426e50
test esi, esi
je 0x441c8a
mov eax, dword [ebp - 0xa28]
test eax, eax
je 0x441785
push eax
call dword [0x4d75cc]
add esp, 4
mov ecx, 0x80
lea ebx, [ebx]
mov eax, dword [esi + 4]
mov dword [ebp - 0xa20], eax
mov eax, dword [edi + 0x8c]
cmp eax, 2
mov dword [ebp - 0xa1c], eax
mov eax, 0x11
je 0x4417b2
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xa18], eax
mov eax, dword [esi + 0x10]
cmp eax, 0x80
cmova eax, ecx
push eax
push dword [esi + 0x18]
mov dword [ebp - 0xa14], eax
lea eax, [ebp - 0xa10]
push eax
call fcn.0048d4b0
mov eax, dword [edi]
add esp, 0xc
mov ecx, dword [eax + 0x1f0]
test ecx, ecx
je 0x4417fe
lea edx, [ebp - 0xa20]
push edx
push 0
push dword [eax + 0x1f4]
call ecx
add esp, 0xc
jmp 0x441816
push dword [ebp - 0xa18]
push dword [ebp - 0xa1c]
push dword [ebp - 0xa20]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xa24], eax
cmp eax, 0xffffffff
jne 0x441859
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esi + 0x1c]
mov ecx, 0x80
test esi, esi
jne 0x441790
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
push str.socket_failure:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
add esp, 0xc
jmp 0x441cb7
push dword [esi + 0x10]
lea eax, [ebp - 0x990]
push dword [esi + 0x18]
push eax
call fcn.0048d4b0
mov eax, dword [esi + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0xa38]
mov dword [ebp - 0xa30], eax
movzx eax, cx
mov dword [ebp - 0xa28], eax
cmp cx, word [ebp - 0xa34]
ja 0x44196a
cmp word [ebp - 0x990], 2
jne 0x4418ab
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x98e], ax
push dword [ebp - 0xa30]
lea eax, [ebp - 0x990]
push eax
push dword [ebp - 0xa24]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4419fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0xa40], 0
je 0x441944
cmp eax, 0x2741
jne 0x441944
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
mov eax, dword [ebp - 0xa28]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0xa2c]
call fcn.00428020
add esp, 0x10
mov dword [ebp - 0xa30], 0x80
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x990]
push eax
push dword [edi + 0x150]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44198f
mov eax, dword [ebp - 0xa38]
xor ecx, ecx
movzx eax, ax
mov dword [ebp - 0xa40], ecx
jmp 0x441957
cmp eax, 0x2740
je 0x441950
cmp eax, 0xd
jne 0x4419c4
mov eax, dword [ebp - 0xa28]
inc eax
mov dword [ebp - 0xa28], eax
cmp ax, word [ebp - 0xa34]
jbe 0x441893
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0xa2c]
call fcn.004280e0
mov edx, dword [ebp - 0xa24]
add esp, 8
mov ecx, edi
call fcn.00426870
jmp 0x441cb7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
mov edx, dword [ebp - 0xa24]
add esp, 0xc
mov ecx, edi
call fcn.00426870
jmp 0x441cb7
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
mov eax, dword [ebp - 0xa28]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
mov edx, dword [ebp - 0xa24]
add esp, 0x10
mov ecx, edi
call fcn.00426870
jmp 0x441cb7
mov eax, dword [ebp - 0xa28]
cmp ax, word [ebp - 0xa34]
ja 0x44196a
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 0x80
push eax
lea eax, [ebp - 0x990]
push eax
push dword [ebp - 0xa24]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44198f
push 1
push dword [ebp - 0xa24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x441a68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
push str.socket_failure:__s
jmp 0x4419a4
mov eax, dword [esi + 4]
sub eax, 2
jne 0x441a89
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x108]
add ecx, 4
push 0x100
call fcn.00448d00
add esp, 4
cmp ebx, 2
je 0x441aeb
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x990]
jmp 0x441aa0
cmp dword [edi + 0x28c], 0
jne 0x441aad
test ebx, ebx
je 0x441ae5
cmp ebx, 1
jne 0x441ab8
cmp cx, 2
jne 0x441ae5
movzx eax, cx
sub eax, 2
jne 0x441ae5
push dword [ebp - 0x98e]
call esi
movzx eax, ax
mov dword [ebp - 0xa3c], eax
test ebx, ebx
je 0x441bfe
cmp ebx, 1
je 0x441b38
mov cx, word [ebp - 0x990]
inc ebx
cmp ebx, 2
jne 0x441aa0
xor esi, esi
mov dword [edi + 0x538], ebx
mov edx, dword [edi + 0x154]
cmp edx, 0xffffffff
je 0x441b05
mov ecx, edi
call fcn.00426870
mov eax, dword [ebp - 0xa24]
mov dword [edi + 0x154], eax
mov eax, esi
mov dword [edi + 0x270], 1
mov dword [edi + 0x544], 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x910]
mov edi, 0x2c
lea esi, [ebp - 0x108]
lea esp, [esp]
mov cl, byte [esi]
test cl, cl
je 0x441b65
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
inc esi
jne 0x441b50
mov eax, dword [ebp - 0xa3c]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.0041ef60
mov edi, dword [ebp - 0xa44]
lea eax, [ebp - 0x910]
add esp, 0x14
push eax
push str.PORT
lea eax, [edi + 0x4d0]
push str._s__s
push eax
call fcn.0044ed80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441aed
mov ecx, esi
call fcn.00448da0
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
mov edx, dword [ebp - 0xa24]
add esp, 0xc
mov ecx, edi
call fcn.00426870
mov dword [edi + 0x544], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
movzx eax, ax
push eax
lea eax, [ebp - 0x108]
push eax
xor eax, eax
cmp word [ebp - 0x990], 2
setne al
inc eax
push eax
push str.EPRT
lea eax, [edi + 0x4d0]
push str._s__d_s_hu
push eax
call fcn.0044ed80
mov esi, eax
add esp, 0x18
test esi, esi
je 0x441aed
mov ecx, esi
call fcn.00448da0
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
mov edx, dword [ebp - 0xa24]
add esp, 0xc
mov ecx, edi
call fcn.00426870
mov dword [edi + 0x538], 1
mov eax, esi
mov dword [edi + 0x544], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa3c]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0xa2c]
call fcn.004280e0
mov eax, dword [ebp - 0xa28]
add esp, 0xc
test eax, eax
je 0x441cb7
push eax
call dword [0x4d75cc]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret