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

Disassembly:
sub esp, 0x9ac
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
mov ebx, dword [esp + 0x9b8]
lea eax, [esp + 0xa8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c0]
push 0x100
push 0
push eax
mov ebp, dword [edi]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], 0xffffffff
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0x3a0]
xor eax, eax
mov dword [esp + 0x34], eax
add esp, 0xc
mov ecx, dword [ebp + 0x3a0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x441772
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441560
sub ecx, edx
cmp ecx, 1
jbe 0x441772
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441577
sub ecx, edx
cmp ecx, 0x41
jae 0x44158c
mov ecx, 0x41
jmp 0x44159a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441591
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x46d010]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4415bb
mov eax, 0x1b
jmp 0x441c8b
mov al, byte [esi]
cmp al, 0x5b
jne 0x4415ef
push 0x5d
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x441662
lea eax, [esi + 1]
mov ecx, ebp
sub ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
jmp 0x441662
cmp al, 0x3a
jne 0x4415f7
mov ebp, esi
jmp 0x441662
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x44164f
lea eax, [esp + 0x34]
push eax
push esi
push 0x17
call fcn.00434900
add esp, 0xc
cmp eax, 1
jne 0x441639
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x441623
xor esi, esi
xor edx, edx
jmp 0x4416be
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
jmp 0x441662
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x441655
xor esi, esi
xor edx, edx
test ebp, ebp
je 0x4416be
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
xor edx, edx
test ebp, ebp
je 0x4416be
push 0xa
push edx
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.00433700
push 0x2d
push ebp
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x4416bc
push 0xa
inc eax
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.00433700
add esp, 0x10
movzx edx, ax
jmp 0x4416be
mov edx, esi
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, si
movzx ebp, cx
xor ecx, ecx
cmp si, dx
mov esi, dword [esp + 0x18]
cmovbe ecx, eax
movzx eax, cx
cmp byte [esi], 0
mov dword [esp + 0x20], eax
je 0x44175f
push 0x401
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [edi + 0x4c]
push esi
push dword [edi + 0x88]
push dword [eax + 0x18]
call fcn.0044c7e0
add esp, 4
push eax
mov eax, dword [edi + 0x4c]
push dword [eax + 4]
call fcn.00403500
add esp, 0x18
sub eax, 0
je 0x441738
sub eax, 1
je 0x441c86
sub eax, 1
jne 0x441740
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1c], ecx
jmp 0x441742
mov ecx, esi
mov dword [esp + 0x1c], ecx
jmp 0x441742
xor ecx, ecx
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebp
test ecx, ecx
jne 0x441808
mov ebp, dword [esp + 0x14]
jmp 0x441774
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x441774
xor esi, esi
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x80
push eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4417be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00436fa0
push eax
push str.getsockname___failed:__s
push ebp
call fcn.00428f80
push esi
call dword [0x46d004]
add esp, 0x18
jmp 0x441c86
mov ax, word [esp + 0x34]
push 0x401
cmp ax, 0x17
je 0x4417e1
lea ecx, [esp + 0x1b8]
movzx eax, ax
push ecx
lea ecx, [esp + 0x40]
push ecx
push eax
jmp 0x4417f0
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x44]
push eax
push 0x17
call fcn.004377d0
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x23], 0
add esp, 0x10
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x28]
push eax
push 0
push ecx
push edi
call fcn.0041ed60
add esp, 0x10
cmp eax, 1
jne 0x44182c
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0041e530
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x441c69
mov ebp, dword [eax]
push eax
push dword [esp + 0x18]
call fcn.0041f070
add esp, 8
test ebp, ebp
je 0x441c69
push esi
call dword [0x46d004]
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
xor esi, esi
lea eax, [esp + 0x2c]
push eax
push 0
push ebp
push edi
call fcn.0042a3c0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
je 0x44188d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov esi, eax
test ebp, ebp
jne 0x441863
jmp 0x441891
test ebp, ebp
jne 0x4418af
push esi
push edi
call fcn.00436fa0
push eax
push str.socket_failure:__s
push dword [esp + 0x24]
call fcn.00428f80
add esp, 0x14
jmp 0x441c86
push dword [ebp + 0x10]
lea eax, [esp + 0x38]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
cmp ax, word [esp + 0x18]
movzx esi, ax
ja 0x441c4f
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x30]
mov word [esp + 0x3a], ax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4419db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x44196d
cmp eax, 0x2741
jne 0x44196d
push eax
push edi
call fcn.00436fa0
push eax
movzx eax, si
mov esi, dword [esp + 0x20]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00429070
add esp, 0x18
mov dword [esp + 0x30], 0x80
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x441984
mov eax, dword [esp + 0x20]
movzx esi, ax
cmp si, word [esp + 0x18]
mov byte [esp + 0x13], 0
jmp 0x4418d5
cmp eax, 0x2740
je 0x441979
cmp eax, 0xd
jne 0x4419af
inc esi
cmp si, word [esp + 0x18]
jmp 0x4418d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00436fa0
push eax
push str.getsockname___failed:__s
push esi
call fcn.00428f80
push dword [esp + 0x40]
push edi
call fcn.004299b0
add esp, 0x1c
jmp 0x441c86
push eax
push edi
call fcn.00436fa0
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push dword [esp + 0x28]
call fcn.00428f80
push dword [esp + 0x44]
push edi
call fcn.004299b0
add esp, 0x20
jmp 0x441c86
cmp si, word [esp + 0x18]
ja 0x441c4f
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x80
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x441a22
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00436fa0
push eax
push str.getsockname___failed:__s
push dword [esp + 0x24]
jmp 0x441998
push 1
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x441a4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00436fa0
push eax
push str.socket_failure:__s
push dword [esp + 0x24]
jmp 0x441998
push 0x100
lea eax, [esp + 0xb8]
push eax
push ebp
call fcn.0041ed10
add esp, 0xc
cmp byte [edi + 0x369], 0
jne 0x441a7d
cmp byte [edi + 0x35f], 0
je 0x441a7d
mov byte [edi + 0x369], 1
cmp ebx, 2
je 0x441ad6
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x34]
nop dword [eax]
cmp byte [edi + 0x369], 0
jne 0x441a9d
test ebx, ebx
je 0x441ad0
cmp ebx, 1
jne 0x441aa8
cmp cx, 2
jne 0x441ad0
movzx eax, cx
sub eax, 2
je 0x441ab5
sub eax, 0x15
jne 0x441ad0
push dword [esp + 0x36]
call esi
movzx ebp, ax
test ebx, ebx
je 0x441bdc
cmp ebx, 1
je 0x441b2e
mov cx, word [esp + 0x34]
inc ebx
cmp ebx, 2
jne 0x441a90
mov ebp, dword [esp + 0x1c]
lea esi, [edi + 0x5c0]
mov dword [esi + 0x5c], ebx
mov eax, dword [edi + 0x194]
cmp eax, 0xffffffff
je 0x441b02
push eax
push edi
call fcn.004299b0
add esp, 8
mov dword [edi + 0x194], 0xffffffff
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x194], eax
mov eax, ebp
mov dword [edi + 0x66c], 0
mov byte [edi + 0x362], 1
mov dword [edi + 0x628], 0x1c
jmp 0x441c8b
lea edx, [esp + 0x5b8]
mov edi, 0x2c
lea esi, [esp + 0xb4]
mov eax, edx
sub esi, eax
mov cl, byte [esi + edx]
test cl, cl
je 0x441b5f
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
lea eax, [esi + edx]
test eax, eax
jne 0x441b45
movzx ecx, bp
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00434dd0
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x5cc]
push eax
push str.PORT
push 0x4604fc
lea esi, [edi + 0x5c0]
push esi
call fcn.00451df0
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x441ae0
push ebp
call fcn.00437080
push eax
push str.Failure_sending_PORT_command:__s
push dword [esp + 0x20]
call fcn.00428f80
push dword [esp + 0x3c]
push edi
call fcn.004299b0
add esp, 0x18
mov dword [edi + 0x628], 0
mov eax, ebp
jmp 0x441c8b
movzx eax, bp
lea esi, [edi + 0x5c0]
push eax
lea eax, [esp + 0xb8]
push eax
xor eax, eax
cmp word [esp + 0x3c], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.00451df0
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x441ae0
push ebp
call fcn.00437080
push eax
push str.Failure_sending_EPRT_command:__s
push dword [esp + 0x20]
call fcn.00428f80
push dword [esp + 0x3c]
push edi
call fcn.004299b0
mov dword [esi + 0x5c], 1
add esp, 0x18
mov dword [edi + 0x628], 0
mov eax, ebp
jmp 0x441c8b
push str.bind___failed__we_ran_out_of_ports_
push dword [esp + 0x18]
call fcn.00428f80
push dword [esp + 0x34]
push edi
call fcn.004299b0
jmp 0x441c83
mov eax, dword [esp + 0x1c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [esp + 0x1c]
call fcn.00428f80
push esi
call dword [0x46d004]
add esp, 0x10
mov eax, 0x1e
mov ecx, dword [esp + 0x9b8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x9ac
ret