Function at 0x18004dce0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x3f8], rbx
mov rax, qword [0x1801610c0]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r12d, r9d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x18016afc4]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
lea r15, [0x180169cb8]
or rbx, 0xffffffffffffffff
mov eax, dword [r8 + rdx]
cmp dword [0x180169ce8], eax
jg 0x18004e146
jmp 0x18004dd71
inc rax
cmp word [r15 + rax*2], 0
je 0x18004e224
jmp 0x18004dd60
mov rax, qword [rdi + 0x28]
cmp dword [rax - 0x10], 0
cmove rdi, r15
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.18003f420
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x48]
call fcn.1800500f0
nop
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x40]
call fcn.1800b2150
xor r15b, r15b
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call fcn.180052d30
nop
lea rdx, [rbp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x18004ddef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp rsi, 0xffffffffffffffff
jne 0x18004de5d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004de1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x20]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18004de4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor al, al
jmp 0x18004e11c
mov edi, dword [rbp + 0x300]
mov ecx, dword [rbp + 0x40]
cmp ecx, 0xffffffff
je 0x18004e06b
mov eax, ecx
xor eax, edi
test r12d, eax
jne 0x18004e06b
test cl, 0x10
je 0x18004dea2
cmp word [rbp + 0x6c], 0x2e
jne 0x18004dea2
movzx eax, word [rbp + 0x6e]
cmp ax, 0x2e
jne 0x18004de99
cmp word [rbp + 0x70], 0
jmp 0x18004de9c
test ax, ax
je 0x18004e06b
mov r15b, 1
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x18004deeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18004dee5
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18004e26a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
call fcn.180039cb0
test rax, rax
je 0x18004e2b5
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x68]
call fcn.180039fa0
test al, al
jne 0x18004df4c
lea rcx, [rbp + 0x6c]
mov rax, rbx
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x18004df30
mov r8d, eax
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x68]
call fcn.18003a350
nop
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x18004df8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18004df89
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18004e282
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
call fcn.180039cb0
test rax, rax
je 0x18004e29a
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.18004d8c0
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.18000c910
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004dff5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [rax + 0x20]
nop
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004e02b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004e060
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18004de63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x18004e258
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x18004e2d0
mov qword [rsp + 0x38], rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004e0dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x20]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18004e10e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
movzx eax, r15b
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1800916f0
mov rbx, qword [rsp + 0x3f8]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x180169ce8]
call fcn.180091960
cmp dword [0x180169ce8], 0xffffffff
jne 0x18004dd71
xor eax, eax
mov qword [0x180169cb8], rax
mov qword [0x180169cc0], rax
mov qword [0x180169cc8], rax
mov qword [0x180169cd0], rax
mov qword [0x180169cd8], rax
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x18004e1c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18004e1a7
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x18004e1c1
xor r9d, r9d
mov r8d, 0xc3
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlcore.h
mov ecx, eax
call fcn.18003abe0
nop
lea r13, [0x180169ce0]
mov qword [rsp + 0x38], r13
call fcn.180039cb0
mov rcx, rax
test rax, rax
jne 0x18004e1f5
xor r9d, r9d
mov r8d, 0xcd
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80004005
call fcn.18003abe0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x180169ce0], rax
lea r15, [0x1800fe3d8]
mov rdx, r15
mov rcx, r13
call fcn.180039fa0
test al, al
jne 0x18004e233
mov rax, rbx
jmp 0x18004dd60
mov r8d, eax
mov rdx, r15
mov rcx, r13
call fcn.18003a350
nop
lea rcx, [0x1800f9400]
call fcn.180091e90
nop
lea rcx, [0x180169ce8]
call fcn.180091900
lea r15, [0x180169cb8]
jmp 0x18004dd71
mov edx, 0x3c1
lea rcx, str.FilePath.cpp
call fcn.180039200
int3
xor r9d, r9d
mov r8d, 0xc3
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlcore.h
mov ecx, eax
call fcn.18003abe0
nop
xor r9d, r9d
mov r8d, 0xc3
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlcore.h
mov ecx, eax
call fcn.18003abe0
nop
xor r9d, r9d
mov r8d, 0xcd
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80004005
call fcn.18003abe0
nop
xor r9d, r9d
mov r8d, 0xcd
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80004005
call fcn.18003abe0
nop
call fcn.1800391e0
mov ecx, eax
lea r9, str.WinAPI
mov r8d, 0xef
lea rdx, [0x18011ae00]
call fcn.1800391c0
lea rax, str.WinAPI_FALSE___NO_ERROR
mov qword [rsp + 0x20], rax
mov r9d, 0xef
lea r8, [0x18011ae00]
mov edx, 0x80004005
lea rcx, [rbp + 0x20]
call fcn.18003a640
lea rdx, [0x18015e3c8]
lea rcx, [rbp + 0x20]
call fcn.1800b2060
int3