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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0xa14], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov edi, ecx
mov esi, dword [edi]
mov dword [ebp - 0xa1c], eax
lea eax, [ebp - 0x183]
push ebx
push eax
mov dword [ebp - 0xa18], esi
mov byte [ebp - 0x184], bl
call fcn.0043c7f0
lea eax, [esi + 0x95c]
mov esi, dword [eax]
mov dword [ebp - 0xa34], ebx
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0xa28], ebx
mov dword [ebp - 0xa24], ebx
mov dword [ebp - 0xa30], 1
mov dword [ebp - 0xa0c], ebx
cmp eax, ebx
je 0x41c6a2
push eax
call fcn.0043bce0
pop ecx
cmp eax, 1
jbe 0x41c6a2
push esi
call fcn.0043bce0
pop ecx
cmp eax, 0x41
jae 0x41c4e7
push 0x41
pop eax
jmp 0x41c4ee
push esi
call fcn.0043bce0
pop ecx
inc eax
push 1
push eax
call dword [0x462010]
pop ecx
pop ecx
mov dword [ebp - 0xa0c], eax
cmp eax, ebx
jne 0x41c50c
push 0x1b
pop eax
jmp 0x41cb43
mov al, byte [esi]
cmp al, 0x5b
jne 0x41c542
lea eax, [esi + 1]
push 0x5d
push esi
mov dword [ebp - 0xa2c], eax
call fcn.0043cd60
pop ecx
pop ecx
mov dword [ebp - 0xa10], eax
cmp eax, ebx
je 0x41c641
sub eax, dword [ebp - 0xa2c]
push eax
push dword [ebp - 0xa2c]
jmp 0x41c5a2
cmp al, 0x3a
jne 0x41c54e
mov dword [ebp - 0xa10], esi
jmp 0x41c5c0
push 0x3a
push esi
call fcn.0043cd60
pop ecx
pop ecx
mov dword [ebp - 0xa10], eax
cmp eax, ebx
je 0x41c5b2
lea eax, [ebp - 0xa08]
push eax
push esi
push 0x17
call fcn.0043061b
add esp, 0xc
cmp eax, 1
jne 0x41c598
push esi
push dword [ebp - 0xa0c]
mov dword [ebp - 0xa24], ebx
mov dword [ebp - 0xa28], ebx
call fcn.0043ce20
pop ecx
pop ecx
jmp 0x41c641
mov eax, dword [ebp - 0xa10]
sub eax, esi
push eax
push esi
push dword [ebp - 0xa0c]
call fcn.0043d060
add esp, 0xc
jmp 0x41c5c0
push esi
push dword [ebp - 0xa0c]
call fcn.0043ce20
pop ecx
pop ecx
cmp dword [ebp - 0xa10], ebx
je 0x41c641
push 0x3a
push dword [ebp - 0xa10]
call fcn.0043cd60
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x41c641
push 0xa
lea eax, [esi + 1]
push ebx
push eax
call fcn.0043cd24
push eax
call fcn.0040e6f0
movzx eax, ax
push 0x2d
push esi
mov dword [ebp - 0xa28], eax
call fcn.0043cd60
add esp, 0x18
cmp eax, ebx
je 0x41c61f
push 0xa
inc eax
push ebx
push eax
call fcn.0043cd24
push eax
call fcn.0040e6f0
add esp, 0x10
movzx eax, ax
jmp 0x41c626
movzx eax, word [ebp - 0xa28]
mov dword [ebp - 0xa24], eax
cmp word [ebp - 0xa28], ax
jbe 0x41c641
mov dword [ebp - 0xa24], ebx
mov dword [ebp - 0xa28], ebx
mov esi, dword [ebp - 0xa0c]
cmp byte [esi], bl
je 0x41c690
push 0x401
lea eax, [ebp - 0x588]
push eax
mov eax, dword [edi + 0x50]
push esi
push dword [edi + 0x8c]
push dword [eax + 0x18]
call fcn.00433781
pop ecx
push eax
mov eax, dword [edi + 0x50]
push dword [eax + 4]
call fcn.0040f813
add esp, 0x18
sub eax, ebx
je 0x41c688
dec eax
je 0x41c6ff
dec eax
jne 0x41c6a2
jmp 0x41c746
mov dword [ebp - 0xa10], esi
jmp 0x41c696
mov dword [ebp - 0xa10], ebx
cmp dword [ebp - 0xa10], ebx
jne 0x41c752
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa08]
push eax
push dword [edi + 0x1b8]
mov esi, 0x80
mov dword [ebp - 0xa20], esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41c706
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00431c8d
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa0c]
call dword [0x462004]
add esp, 0x1c
push 0x1e
jmp 0x41c506
movzx eax, word [ebp - 0xa08]
push 0x401
cmp eax, 0x17
je 0x41c728
lea ecx, [ebp - 0x588]
push ecx
lea ecx, [ebp - 0xa04]
push ecx
push eax
jmp 0x41c738
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0xa00]
push eax
push 0x17
call fcn.00433a0e
add esp, 0x10
mov dword [ebp - 0xa30], ebx
lea eax, [ebp - 0x588]
mov dword [ebp - 0xa10], eax
lea eax, [ebp - 0xa34]
push eax
push ebx
push ebx
push dword [ebp - 0xa10]
push edi
call fcn.0042a221
add esp, 0x14
cmp eax, 1
jne 0x41c77e
lea eax, [ebp - 0xa34]
push eax
push edi
call fcn.0040fbba
pop ecx
pop ecx
mov eax, dword [ebp - 0xa34]
cmp eax, ebx
je 0x41c79a
mov esi, dword [eax]
push eax
push dword [ebp - 0xa18]
call fcn.0042a3d5
pop ecx
pop ecx
jmp 0x41c79c
xor esi, esi
cmp esi, ebx
jne 0x41c7ca
push dword [ebp - 0xa10]
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa0c]
call dword [0x462004]
add esp, 0x10
jmp 0x41c6ff
push dword [ebp - 0xa0c]
call dword [0x462004]
or dword [ebp - 0xa14], 0xffffffff
mov dword [ebp - 0xa2c], ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop ecx
lea eax, [ebp - 0xa14]
push eax
push 0
push esi
push edi
call fcn.004134e5
add esp, 0x10
mov dword [ebp - 0xa10], eax
test eax, eax
je 0x41c816
call ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0xa2c], eax
test esi, esi
jne 0x41c7ea
test esi, esi
jne 0x41c84a
push 0x80
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0xa2c]
call fcn.00431c8d
push eax
push str.socket_failure:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
add esp, 0x18
jmp 0x41c6ff
push dword [esi + 0x10]
lea eax, [ebp - 0xa08]
push dword [esi + 0x18]
push eax
call fcn.0043c360
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xa20], eax
mov eax, dword [ebp - 0xa28]
movzx ecx, ax
add esp, 0xc
mov dword [ebp - 0xa0c], ecx
cmp ax, word [ebp - 0xa24]
ja 0x41c977
push dword [ebp - 0xa0c]
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0xa20]
mov word [ebp - 0xa06], ax
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0xa14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x41c963
call ebx
cmp dword [ebp - 0xa30], 0
je 0x41c93a
cmp eax, 0x2741
jne 0x41c93a
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x2741
call fcn.00431c8d
push eax
movzx eax, word [ebp - 0xa0c]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0xa18]
call fcn.0040e9e4
add esp, 0x1c
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa08]
push eax
push dword [edi + 0x1b8]
mov dword [ebp - 0xa20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41c998
movzx eax, word [ebp - 0xa28]
and dword [ebp - 0xa30], 0
mov dword [ebp - 0xa0c], eax
jmp 0x41c956
cmp eax, 0x2740
je 0x41c94a
cmp eax, 0xd
jne 0x41c9d1
inc dword [ebp - 0xa0c]
mov eax, dword [ebp - 0xa0c]
cmp ax, word [ebp - 0xa24]
jbe 0x41c884
mov ax, word [ebp - 0xa24]
cmp word [ebp - 0xa0c], ax
jbe 0x41ca10
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa14]
push edi
call fcn.00413477
jmp 0x41c7c2
push 0x80
lea eax, [ebp - 0x84]
push eax
call ebx
push eax
call fcn.00431c8d
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa14]
push edi
call fcn.00413477
add esp, 0x20
jmp 0x41c6ff
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.00431c8d
push eax
movzx eax, word [ebp - 0xa0c]
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa14]
push edi
call fcn.00413477
add esp, 0x24
jmp 0x41c6ff
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0xa14]
mov dword [ebp - 0xa20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41c998
push 1
push dword [ebp - 0xa14]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x41ca6d
push 0x80
lea eax, [ebp - 0x84]
push eax
call ebx
push eax
call fcn.00431c8d
push eax
push str.socket_failure:__s
jmp 0x41c9b2
push 0x100
lea eax, [ebp - 0x184]
push eax
push esi
call fcn.00429866
mov eax, dword [edi + 0x2a4]
mov esi, 0x40000
add esp, 0xc
test esi, eax
jne 0x41cb01
test eax, 0x400
je 0x41cb01
or eax, esi
mov dword [edi + 0x2a4], eax
jmp 0x41cb01
test dword [edi + 0x2a4], esi
jne 0x41cab3
cmp dword [ebp - 0xa1c], 0
je 0x41cafb
cmp dword [ebp - 0xa1c], 1
jne 0x41cac6
cmp word [ebp - 0xa08], 2
jne 0x41cafb
movzx eax, word [ebp - 0xa08]
dec eax
dec eax
je 0x41cad6
sub eax, 0x15
jne 0x41cafb
push dword [ebp - 0xa06]
call dword [sym.imp.WS2_32.dll_ntohs]
cmp dword [ebp - 0xa1c], 0
movzx ebx, ax
je 0x41cb52
cmp dword [ebp - 0xa1c], 1
je 0x41cbbf
inc dword [ebp - 0xa1c]
cmp dword [ebp - 0xa1c], 2
jne 0x41caa2
mov esi, dword [ebp - 0xa10]
mov eax, dword [ebp - 0xa1c]
mov dword [edi + 0x538], eax
call fcn.0041c052
mov eax, dword [ebp - 0xa14]
push 0x1c
mov dword [edi + 0x1bc], eax
mov dword [edi + 0x2a0], 1
pop eax
mov ecx, edi
call fcn.0041c325
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret
movzx eax, bx
push eax
lea eax, [ebp - 0x184]
push eax
xor eax, eax
cmp word [ebp - 0xa08], 2
lea ebx, [edi + 0x4c0]
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
call fcn.00433c6f
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41cb10
push esi
call fcn.00431503
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa14]
push edi
call fcn.00413477
mov dword [ebx + 0x78], 1
add esp, 0x18
xor eax, eax
jmp 0x41cb3a
lea ecx, [ebp - 0x988]
lea edx, [ebp - 0x184]
mov al, byte [edx]
test al, al
je 0x41cbe0
cmp al, 0x2e
jne 0x41cbda
mov byte [ecx], 0x2c
jmp 0x41cbdc
mov byte [ecx], al
inc ecx
inc edx
jne 0x41cbcb
movzx eax, bx
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.004285eb
lea eax, [ebp - 0x988]
push eax
push str.PORT
lea eax, [edi + 0x4c0]
push 0x453398
push eax
call fcn.00433c6f
mov esi, eax
add esp, 0x24
test esi, esi
je 0x41cb10
push esi
call fcn.00431503
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0xa18]
call fcn.0040ea8b
push dword [ebp - 0xa14]
push edi
call fcn.00413477
jmp 0x41cbb5