Function at 0x140038e70
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov r14, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov dword [rsp + 0x40], ebx
movzx eax, byte [rdi]
lea edx, [rbx + 1]
test al, al
je 0x140038edd
mov rcx, rdi
nop word [rax + rax]
sub al, 0x30
lea rcx, [rcx + 1]
cmp al, 9
movzx eax, byte [rcx]
cmova edx, ebx
test al, al
jne 0x140038eb0
test edx, edx
je 0x140038edd
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call fcn.14003a940
test rax, rax
cmovne rdi, rax
xor edx, edx
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea ecx, [rdx + 0x17]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov esi, eax
cmp eax, 0x6f
jne 0x140038f3d
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140038f63
xor edx, edx
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea ecx, [rdx + 0x17]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov esi, eax
cmp eax, 0x6f
je 0x140038f00
test esi, esi
je 0x140038f82
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, esi
lea rdx, str.GetAdaptersAddresses__:_failed:__u_n
mov rcx, rax
call fcn.140001010
jmp 0x140039138
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.GetAdaptersAddresses__:malloc__:_failed:_out_of_memory_n
call fcn.140001010
jmp 0x140039138
mov r9, rbx
test rbx, rbx
je 0x140039112
movabs r10, 0x5c6563697665445c
nop dword [rax + rax]
mov rax, qword [r9 + 0x10]
mov r8, rdi
cmp qword [rax], r10
jne 0x140038fb9
cmp dword [rax + 8], 0x5f46504e
jne 0x140038fb9
add rax, 0xc
cmp qword [rdi], r10
jne 0x140038fcb
cmp dword [rdi + 8], 0x5f46504e
jne 0x140038fcb
lea r8, [rdi + 0xc]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140038fe3
inc rax
test ecx, ecx
jne 0x140038fd0
test edx, edx
je 0x140038ff0
mov r9, qword [r9 + 8]
test r9, r9
jne 0x140038fa0
mov rcx, qword [r9 + 0x18]
test rcx, rcx
je 0x14003912f
nop dword [rax]
mov r8, qword [rcx + 0x10]
cmp word [r8], 0x17
jne 0x140039103
cmp dword [rcx + 4], 2
je 0x140039103
movzx eax, byte [r8 + 8]
movzx edx, byte [r8 + 9]
movzx r9d, byte [r8 + 0x10]
shl rax, 8
or rdx, rax
shl r9, 8
movzx eax, byte [r8 + 0xa]
shl rdx, 8
or rdx, rax
movzx eax, byte [r8 + 0xb]
shl rdx, 8
or rdx, rax
movzx eax, byte [r8 + 0xc]
shl rdx, 8
or rdx, rax
movzx eax, byte [r8 + 0xd]
shl rdx, 8
or rdx, rax
movzx eax, byte [r8 + 0xe]
shl rdx, 8
or rdx, rax
movzx eax, byte [r8 + 0xf]
shl rdx, 8
or rdx, rax
movzx eax, byte [r8 + 0x11]
or r9, rax
movzx eax, byte [r8 + 0x12]
shl r9, 8
or r9, rax
movzx eax, byte [r8 + 0x13]
shl r9, 8
or r9, rax
movzx eax, byte [r8 + 0x14]
shl r9, 8
or r9, rax
movzx eax, byte [r8 + 0x15]
shl r9, 8
or r9, rax
movzx eax, byte [r8 + 0x16]
shl r9, 8
or r9, rax
movzx eax, byte [r8 + 0x17]
shl r9, 8
or r9, rax
mov eax, dword [rcx + 0x20]
cmp eax, 2
je 0x140039103
cmp eax, 4
jne 0x1400390de
cmp dword [rcx + 0x24], 5
je 0x140039103
mov rax, rdx
shr rax, 0x38
cmp rax, 0xfc
jae 0x140039103
mov rax, rdx
shr rax, 0x20
cmp rax, 0x20010db8
je 0x140039103
mov qword [r14], rdx
mov qword [r14 + 8], r9
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140039000
jmp 0x14003912f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.GetAdaptersInfo:_adapter_not_found:__s_n
mov rcx, rax
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
mov rax, r14
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret