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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400a6fa0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movzx ebp, cl
call fcn.140040a20
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140012440
mov ecx, 0x80004005
call fcn.1400118e0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x30], rdi
call fcn.140040a20
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140012472
mov ecx, 0x80004005
call fcn.1400118e0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
call fcn.140040a20
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400124a4
mov ecx, 0x80004005
call fcn.1400118e0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400124de
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400115c0
mov rdi, qword [rsp + 0x30]
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r11d, eax
mov word [rdi + r11*2], r12w
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14004f7b8
test eax, eax
js 0x140012abb
cmp eax, dword [rdi - 0xc]
jg 0x140012abb
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r12w
mov edx, 0x5c
mov rcx, rdi
call fcn.14004f78c
or rsi, 0xffffffffffffffff
test rax, rax
jne 0x140012538
mov eax, esi
jmp 0x14001253e
sub rax, rdi
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000b710
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400125aa
cmp dword [rdi + 0x10], 0
jl 0x14001259b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001259b
call fcn.1400117a0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140012590
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x1400125aa
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140011690
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400125c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x30]
lea r14, [rax - 0x18]
mov rdx, qword [rsp + 0x28]
lea rdi, [rdx - 0x18]
cmp r14, rdi
je 0x140012633
cmp dword [rdi + 0x10], 0
jl 0x14001261d
mov rcx, qword [rdi]
cmp qword [r14], rcx
jne 0x14001261d
mov rcx, r14
call fcn.1400117a0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140012612
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x28], rdx
jmp 0x140012633
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140011690
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140012692
cmp dword [rdi + 0x10], 0
jl 0x14001267f
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001267f
call fcn.1400117a0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140012674
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x38], rbx
jmp 0x140012692
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140011690
mov rbx, qword [rsp + 0x38]
movzx ecx, bpl
call fcn.140012170
test al, al
je 0x1400126c8
xor eax, eax
mov rcx, rsi
lea rdi, str..exe.config.4
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str..exe.config.4
lea rcx, [rsp + 0x28]
call fcn.140013270
jmp 0x1400126ef
xor eax, eax
mov rcx, rsi
lea rdi, str..exe.config.2
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str..exe.config.2
lea rcx, [rsp + 0x28]
call fcn.140013270
mov dword [rsp + 0x60], r12d
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x64]
call fcn.140051b60
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140012780
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001273a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001275a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [r14 + 0x10], esi
dec esi
test esi, esi
jg 0x140012ac6
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140012ac6
lea r8, [0x14008c158]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140013090
nop
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x8c]
repne scasw ax, word [rdi]
not rcx
dec rcx
lea r13, [rsp + 0x8c]
lea rbp, [rsp + 0x8c]
mov rax, qword [rsp + 0x20]
sub rbp, rax
sar rbp, 1
mov ebx, dword [rax - 0x10]
mov eax, r12d
test ecx, ecx
setns al
test eax, eax
je 0x140012ab0
movsxd rdx, ecx
lea rcx, [rsp + 0x8c]
call fcn.14004f7b8
mov r12, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, ebx
setge dl
test edx, edx
je 0x140012aa5
lea edi, [rbx + rax]
mov rcx, qword [rsp + 0x20]
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x14001282e
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400115c0
mov rcx, qword [rsp + 0x20]
cmp rbp, rbx
ja 0x140012837
lea r13, [rcx + rbp*2]
movsxd rdx, r12d
add rdx, rdx
lea rcx, [rcx + rbx*2]
mov r9, rdx
mov r8, r13
call fcn.14004ec70
test edi, edi
js 0x140012a9a
mov rax, qword [rsp + 0x20]
cmp edi, dword [rax - 0xc]
jg 0x140012a9a
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsp + 0x20]
xor r12d, r12d
mov word [rax + rcx*2], r12w
mov rdi, qword [rsp + 0x20]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], r12d
jl 0x14001289e
cmp rax, qword [rdi - 0x18]
jne 0x14001289e
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400128d9
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x140012a94
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
inc ecx
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.14004ec70
lea rax, [rbx + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax - 0x10]
add r8d, 0xfffffffe
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.14000b710
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x20]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14001295d
cmp dword [rdi + 0x10], 0
jl 0x14001294e
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001294e
call fcn.1400117a0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140012943
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x14001295d
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.140011690
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001297c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400129cd
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400129ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140012a1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140012a1a
mov rdx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14004f6d8
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400129fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140012a1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140012780
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140012a5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140012a7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [r14 + 0x10], esi
dec esi
test esi, esi
jg 0x140012ac6
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140012ac6
call fcn.140011790
int3
mov ecx, 0x80070057
call fcn.1400118e0
int3
mov ecx, 0x80070057
call fcn.1400118e0
int3
mov ecx, 0x80070057
call fcn.1400118e0
nop
mov ecx, 0x80070057
call fcn.1400118e0
nop
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14004e770
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret