Function at 0x415fa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push reloc.kernel32.dll_FileTimeToLocalFileTime
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x52bd60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x2c4], eax
mov edi, ecx
and dword [ebp - 0x20], 0xfffffe00
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov eax, dword [0x530408]
imul eax, eax
cdq
mov ecx, reloc.kernel32.dll_OpenSemaphoreW
idiv ecx
cmp edx, 0xa
jne 0x416011
dec dword [0x5305dc]
mov byte [ebp - 4], 2
mov al, byte [edi + 8]
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x18], 0
test al, al
je 0x416048
cmp al, 7
je 0x416048
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b708c
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x416058
mov ecx, 0x530a10
jmp 0x4160e4
mov dword [ebp - 0x2b0], str.path
mov dword [ebp - 0x2ac], 0
mov ebx, dword [edi]
lea eax, [ebp - 0x2b0]
push eax
mov ecx, ebx
call fcn.0044b6a0
mov ecx, dword [ebx]
cmp eax, ecx
je 0x4160c4
mov esi, dword [eax + 0x10]
mov edx, str.path
lea ebx, [ebx]
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4160b0
test bl, bl
je 0x4160ac
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4160b0
add edx, 2
add esi, 2
test bl, bl
jne 0x416090
xor edx, edx
jmp 0x4160b5
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x29c], eax
test dl, dl
je 0x4160ca
mov dword [ebp - 0x29c], ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x29c]
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, dword [ecx]
mov ecx, 0x530a10
je 0x4160e4
lea ecx, [eax + 0x18]
sub esp, 0x18
push esp
call fcn.0044a0e0
lea ecx, [ebp - 0x18]
call fcn.004319e0
add esp, 0x18
mov byte [ebp - 4], 4
mov al, byte [edi + 8]
test al, al
je 0x41611e
cmp al, 7
je 0x41611e
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b708c
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x41612e
mov ecx, 0x530a10
jmp 0x4161b2
mov dword [ebp - 0x2b0], str.folder
mov dword [ebp - 0x2ac], 0
mov edi, dword [edi]
lea eax, [ebp - 0x2b0]
push eax
mov ecx, edi
call fcn.0044b6a0
mov ecx, dword [edi]
cmp eax, ecx
je 0x416194
mov esi, dword [eax + 0x10]
mov edx, str.folder
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x416180
test bl, bl
je 0x41617c
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x416180
add edx, 2
add esi, 2
test bl, bl
jne 0x416160
xor edx, edx
jmp 0x416185
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x29c], eax
test dl, dl
je 0x41619a
mov dword [ebp - 0x29c], ecx
lea eax, [ebp - 0x29c]
mov eax, dword [eax]
cmp eax, ecx
mov byte [ebp - 4], 4
mov ecx, 0x530a10
je 0x4161b2
lea ecx, [eax + 0x18]
call fcn.0044a5d0
push 2
test al, al
push reloc.kernel32.dll_GetCurrentDirectoryA
lea ecx, [ebp - 0x18]
setne byte [ebp - 0x2a5]
call fcn.004270f0
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
jne 0x4163d4
mov dword [ebp - 0x2a0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x52b6d0
push eax
push str.enumFileSystem_FindFirstFile__d
lea ecx, [ebp - 0x2a0]
call fcn.00427070
push str.enumFo1der_
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
call fcn.004036e0
mov byte [ebp - 4], 7
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c8], esi
lea eax, [ebp - 0x2a0]
push eax
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 8
call fcn.00431c80
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 9
call fcn.004036e0
push 2
push edi
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2bc]
push eax
mov ecx, 0x530768
mov byte [ebp - 4], 0xa
call fcn.004018b0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x2bc]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4162bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2ac]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4162df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4162fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41631f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea edx, [ebp - 0x2a0]
lea ecx, [ebp - 0x2e0]
call fcn.00431ab0
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], reloc.kernel32.dll_ConvertDefaultLocale
call fcn.00449d70
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], reloc.kernel32.dll_AssignProcessToJobObject
call fcn.0044aa00
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, eax
call fcn.0044a020
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], reloc.kernel32.dll_ConvertDefaultLocale
call fcn.00449f60
cmp dword [ebp - 0x2cc], 0x10
jb 0x416386
push dword [ebp - 0x2e0]
call fcn.004b458c
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4163a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4163c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [ebp - 0x2a4]
jmp 0x41684c
mov ebx, dword [ebp - 0x2b0]
or edi, 0xffffffff
lea ecx, [ecx]
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2a0], esi
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], reloc.kernel32.dll_CreateFileMappingW
test eax, 0xffff0000
jne 0x41645c
movzx edi, ax
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x416428
push edi
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00404a70
mov esi, dword [ebp - 0x2a0]
or edi, 0xffffffff
mov byte [ebp - 4], reloc.kernel32.dll_ReleaseActCtx
mov ecx, reloc.kernel32.dll_GetFileAttributesExW
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41648f
test dx, dx
je 0x416458
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41648f
add eax, 4
add ecx, 4
test dx, dx
jne 0x416436
xor eax, eax
jmp 0x416494
lea ecx, [ebp - 0x26c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416465
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004046b0
mov esi, dword [ebp - 0x2a0]
jmp 0x41642b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4165b9
mov ecx, reloc.kernel32.dll_GetFileAttributesExW
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4164ce
test dx, dx
je 0x4164ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4164ce
add eax, 4
add ecx, 4
test dx, dx
jne 0x4164a8
xor eax, eax
jmp 0x4164d3
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4165b9
cmp byte [ebp - 0x2a5], 0
je 0x4164f7
test byte [ebp - 0x298], 0x10
jne 0x416504
jmp 0x4165b9
test byte [ebp - 0x298], 0x10
jne 0x4165b9
lea edx, [ebp - 0x2a0]
lea ecx, [ebp - 0x2e0]
call fcn.00431ab0
mov edi, eax
mov byte [ebp - 4], reloc.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x530ce4]
and ebx, 0xffffff04
or ebx, 0x104
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2ac], 0
test al, 1
jne 0x41655f
or eax, 1
push 0x4e04e0
mov dword [0x530ce4], eax
mov dword [0x530c68], 0x518430
call fcn.004b4d59
add esp, 4
cmp dword [edi + 0x14], 0x10
mov edx, dword [edi + 0x10]
jb 0x41656a
mov edi, dword [edi]
mov ecx, dword [0x52d374]
push edx
mov eax, dword [ecx]
push edi
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], reloc.kernel32.dll_GetUserDefaultLangID
call fcn.0044ace0
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], reloc.kernel32.dll_UnmapViewOfFile
call fcn.00449f60
cmp dword [ebp - 0x2cc], 0x10
jb 0x4165b6
push dword [ebp - 0x2e0]
call fcn.004b458c
add esp, 4
or edi, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4165d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4163e0
mov eax, dword [ebp - 0x20]
test al, al
je 0x416604
cmp al, 6
je 0x416604
cmp al, 7
jne 0x4166f8
movsx eax, al
cmp eax, 7
ja case.default.0x41660c
jmp dword [eax*4 + reloc.kernel32.dll_GetUserDefaultUILanguage]
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je case.0x41660c.0
mov eax, dword [eax]
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x29c], eax
call fcn.0042c570
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x14]
inc eax
jmp 0x41665c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
jmp 0x41665c
push 0x388
push str...CrossRiderGeneralJsonjson_value.cpp
push reloc.kernel32.dll_ActivateActCtx
call fcn.004b708c
add esp, 0xc
xor eax, eax
test eax, eax
sete al
test al, al
je 0x4166f8
mov eax, dword [ebp - 0x2b0]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x2b0], eax
mov eax, dword [0x530ce4]
mov dword [ebp - 0x2ac], 0
test al, 1
jne 0x4166b1
or eax, 1
push 0x4e04e0
mov dword [0x530ce4], eax
mov dword [0x530c68], 0x518430
call fcn.004b4d59
add esp, 4
mov ecx, dword [0x52d374]
push 0xffffffffffffffff
mov eax, dword [ecx]
push str.empty
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
mov dword [ebp - 0x2b8], eax
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], reloc.kernel32.dll_GetDiskFreeSpaceA
call fcn.0044aa00
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, eax
call fcn.0044a020
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 4
call fcn.00449f60
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416718
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov dword [ebp - 4], 1
jmp 0x416842
mov eax, dword [ebp - 0x2a4]
test eax, eax
je 0x416853
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x48], 0x5149b4
mov dword [ebp - 0x30], reloc.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], reloc.kernel32.dll_CreateDirectoryW
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2a4], esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], reloc.kernel32.dll_GetSystemPowerStatus
call fcn.0044cc00
mov edx, eax
mov byte [ebp - 4], reloc.kernel32.dll_QueryDosDeviceW
cmp dword [edx + 0x14], 0x10
jb 0x4168af
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], reloc.kernel32.dll_UnmapViewOfFile
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x4168ce
xor ecx, ecx
jmp 0x4168dc
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4168d3
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.004012e0
lea ecx, [ebp - 0x2c0]
call fcn.004319e0
add esp, 0x18
mov byte [ebp - 4], reloc.kernel32.dll_WritePrivateProfileSectionA
mov edx, dword [eax]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x41694d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x416938
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x416938
call fcn.00404770
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41692d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + reloc.kernel32.dll_IsBadStringPtrA]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x2a4], esi
jmp 0x41694d
push dword [edx - 0xc]
lea ecx, [ebp - 0x2a4]
push edx
call fcn.004046b0
mov esi, dword [ebp - 0x2a4]
mov byte [ebp - 4], reloc.kernel32.dll_QueryDosDeviceW
mov edx, dword [ebp - 0x2c0]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416973
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_GetSystemPowerStatus
cmp dword [ebp - 0x2cc], 0x10
jb 0x41698e
push dword [ebp - 0x2e0]
call fcn.004b458c
add esp, 4
mov edi, dword [ebp - 0x2c4]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4169af
call fcn.0040c710
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], reloc.kernel32.dll_CreateDirectoryW
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4169cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x48], 0x5149b4
jb 0x4169e5
push dword [ebp - 0x44]
call fcn.004b458c
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], reloc.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0x5185e8
mov dword [ebp - 4], 0xffffffff
call fcn.00449f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b4591
mov esp, ebp
pop ebp
ret