Function at 0x14002f4d0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x360
xor r14d, r14d
or rsi, 0xffffffffffffffff
mov r12, rdx
cmp dword [0x1400689c0], r14d
mov r15, rcx
lea rbx, [0x1400689c4]
mov ebp, r14d
jle 0x14002f613
nop word [rax + rax]
movzx edi, byte [rbx]
inc rbx
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x14002f530
mov r8, qword [0x140078a80]
cmp rax, r8
jne 0x14002f5b1
mov rdx, qword [0x140078a78]
mov rcx, rbx
call sub.msvcrt.dll__strnicmp
test eax, eax
jne 0x14002f5b1
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x14002f560
inc rbx
add rbx, rax
cmp dil, 2
je 0x14002f732
mov rcx, qword [0x140078aa8]
mov r9, rbx
movzx r8d, dil
mov rdx, r12
call fcn.140045d00
test eax, eax
jne 0x14002f732
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x14002f5a0
inc rbx
add rbx, rax
jmp 0x14002f5e2
mov rax, rsi
cmp byte [rbx + rax + 1], r14b
lea rax, [rax + 1]
jne 0x14002f5b4
lea rcx, [rax + 1]
mov rax, rsi
add rcx, rbx
nop dword [rax]
cmp byte [rcx + rax + 1], r14b
lea rax, [rax + 1]
jne 0x14002f5d0
lea rbx, [rax + 1]
add rbx, rcx
movzx eax, byte [rbx]
inc rbx
cmp al, 6
jne 0x14002f601
mov rcx, rbx
call fcn.140042aa0
add eax, dword [0x14008d4c0]
cdqe
add rbx, rax
jmp 0x14002f605
add rbx, 8
inc ebp
cmp ebp, dword [0x1400689c0]
jl 0x14002f520
cmp byte [r12], r14b
jne 0x14002f8e0
mov rdi, qword [0x1400788b0]
test rdi, rdi
jne 0x14002f870
lea rcx, [0x14006603d]
movzx eax, byte [r14 + rcx]
lea r14, [r14 + 1]
mov byte [rsp + r14 + 0x15f], al
test al, al
jne 0x14002f634
lea rax, [rsp + 0x160]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x14002f654
movups xmm0, xmmword [str.Residents.res]
mov rbx, rsi
movups xmmword [rax], xmm0
lea rax, [rsp + 0x160]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002f673
lea rax, [rsp + 0x160]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
sub rax, 5
add rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002f85e
nop dword [rax + rax]
test byte [rsp + 0x20], 0x10
jne 0x14002f83f
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x14002f811
movsd xmm0, qword [str.Unicode_]
lea rcx, [rbx - 1]
movsd qword [rbx], xmm0
movzx eax, byte [0x140057f80]
mov byte [rbx + 8], al
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002f6e2
lea r8, [rsp + 0x4c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x14002f700
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002f7ed
mov edx, 1
jmp 0x14002f832
inc rsi
cmp byte [rbx + rsi], r14b
jne 0x14002f732
add rbx, rsi
movsx ecx, byte [rbx + 1]
sub ecx, 3
je 0x14002f7d5
sub ecx, 2
je 0x14002f7bd
dec ecx
jne 0x14002f9ff
lea rcx, [rbx + 2]
mov dword [r15], 0x25
call fcn.140042aa0
mov rcx, qword [0x140076f14]
xor edx, edx
add eax, dword [0x14008d4c0]
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r15 + 8], rax
test rax, rax
je 0x14002f79e
lea rdx, [rbx + 2]
mov rcx, rax
call fcn.140042a20
mov byte [r15 + 0x1a], r14b
jmp 0x14002f9ff
lea rdx, str.NoMemory
lea rcx, str.Parser
call fcn.14003a2a0
mov qword [0x1400788c8], rax
jmp 0x14002f9f5
mov dword [r15], 0x24
mov rax, qword [rbx + 2]
mov byte [r15 + 0x1a], r14b
mov qword [r15 + 8], rax
jmp 0x14002f9ff
mov dword [r15], 0x23
mov rax, qword [rbx + 2]
mov byte [r15 + 0x1a], r14b
mov qword [r15 + 8], rax
jmp 0x14002f9ff
lea rax, [rsp + 0x4c]
mov rdx, rbx
lea rcx, [rsp + 0x4c]
sub rdx, rax
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14002f800
jmp 0x14002f830
lea rax, [rsp + 0x4c]
mov rdx, rbx
lea rcx, [rsp + 0x4c]
sub rdx, rax
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14002f821
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.14002de10
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14002f6b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [0x1400788b0]
test rdi, rdi
je 0x14002f8e0
nop word [rax + rax]
mov rbx, qword [rdi + 8]
movsxd rax, dword [rdi + 0x10]
add rax, rbx
cmp rbx, rax
jae 0x14002f8d8
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x14002f883
mov r8, qword [0x140078a80]
cmp rax, r8
jne 0x14002f8af
mov rdx, qword [0x140078a78]
mov rcx, rbx
call sub.msvcrt.dll__strnicmp
test eax, eax
je 0x14002fa21
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x14002f8b2
mov edx, dword [rdi + 0x14]
lea rcx, [rbx + 1]
add rcx, rax
call qword [rdi + 0x20]
movsxd rcx, dword [rdi + 0x10]
add rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
jb 0x14002f880
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14002f870
cmp dword [0x1400788c0], 0
jne 0x14002f9ff
lea rdx, str.ConstantNotFound
lea rcx, str.Parser
call fcn.14003a2a0
lea rbx, [0x1400788d0]
mov rdx, rbx
sub rdx, rax
nop dword [rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rdx + rax - 1], cl
test cl, cl
jne 0x14002f910
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002f923
movzx eax, word [0x140057f58]
mov word [rcx], ax
movzx eax, byte [0x140057f5a]
mov byte [rcx + 2], al
cmp byte [r12], 0
je 0x14002f993
lea rcx, [rbx - 1]
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002f950
xor edx, edx
nop dword [rax]
movzx eax, byte [r12 + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x14002f960
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002f975
movzx eax, word [0x140057f5c]
mov word [rcx], ax
movzx eax, byte [0x140057f5e]
mov byte [rcx + 2], al
lea rcx, [rbx - 1]
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002f9a0
movzx eax, word [0x140057f9c]
mov r8, qword [0x140078a80]
mov rdx, qword [0x140078a78]
mov word [rcx], ax
mov rcx, rbx
call sub.msvcrt.dll_strncat
lea rcx, [rbx - 1]
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002f9d0
movzx eax, word [0x140057f60]
mov qword [0x1400788c8], rbx
mov word [rcx], ax
movzx eax, byte [0x140057f62]
mov byte [rcx + 2], al
mov dword [0x1400788c0], 1
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
inc rsi
cmp byte [rbx + rsi], 0
jne 0x14002fa21
mov r8d, dword [rdi + 0x14]
lea rcx, [rbx + 1]
mov rdx, r15
add rcx, rsi
call qword [rdi + 0x18]
mov byte [r15 + 0x1a], 0
jmp 0x14002f9ff