Function at 0x42a366
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x2f0
mov eax, 0x5e3666
call fcn.0059bbd7
mov eax, edx
mov dword [ebp - 0x2e8], eax
mov esi, ecx
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x2ec], esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2f4], ecx
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x40]
push 0x637264
call fcn.00411559
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2ec], ebx
cmp ebx, 0xffffffff
jne 0x42a41e
push 0xbbd
push str.ThemeDllOp::GetPathAllFile
push str.__s__d___hFind_is_INVALID_HANDLE_VALUE
call fcn.0040a649
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp 0x42a5b9
mov esi, dword [ebp - 0x2e8]
test byte [ebp - 0x2d8], 0x10
je 0x42a57a
push 0x6361d0
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42a57a
push 0x6361d4
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42a57a
lea eax, [ebp - 0x2ac]
mov edx, esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00411559
mov byte [ebp - 4], 2
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x88]
mov dword [esp], 0x633b6c
call fcn.00411559
pop ecx
push dword [ebp - 0x2f4]
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00411504
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x2e8], bl
push dword [ebp - 0x2e8]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040b632
or edi, 4
mov dword [ebp - 0x2f0], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0040b67e
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040b0d5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
or edi, 2
mov dword [ebp - 0x2f8], edi
call fcn.0042a72d
test al, al
je 0x42a516
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a516
mov bl, 1
mov edi, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 5
and edi, 0xfffffffd
call fcn.0040b67e
lea eax, [ebp - 0x58]
test bl, bl
je 0x42a543
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00420d32
jmp 0x42a560
sub esp, 0x18
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b155
mov cl, 1
call fcn.0042602c
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.0040b67e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040b67e
mov ebx, dword [ebp - 0x2ec]
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a424
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x2e4]
mov dword [esi], eax
mov eax, dword [ebp - 0x2e0]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2dc]
mov dword [esi + 8], eax
xor eax, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
call fcn.0040b67e
lea ecx, [ebp - 0x2e4]
call fcn.004132fb
mov eax, esi
call fcn.0059bb81
ret