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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x68031884]
or dword [ebp - 0x258], 0xffffffff
and dword [ebp - 0x25c], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10c], 0
mov dword [ebp - 4], eax
mov ebx, 0x54f
je 0x68024c44
xor ebx, ebx
jmp 0x68024efc
push edi
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x268]
push eax
push 1
push 1
push dword [ebp + 8]
call fcn.680233db
test eax, eax
je 0x68024c7c
mov ebx, 0x103
jmp 0x68024ed2
push dword [ebp - 0x25c]
call sub._Cmvrt.DLL_wcslen
pop ecx
lea eax, [eax + eax + 6]
push eax
call fcn.68021ec0
mov edi, eax
test edi, edi
mov dword [ebp - 0x268], edi
je 0x68024ed2
push dword [ebp - 0x25c]
push edi
call sub._Cmvrt.DLL_wcscpy
push 0x6800631c
push edi
call sub._Cmvrt.DLL_wcscat
add esp, 0x10
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x254]
push ecx
push eax
push edi
call dword [sym.imp._CKERNEL.DLL_FindFirstFileExW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x258], ebx
jne 0x68024cf6
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, 2
jne 0x68024ec5
mov ebx, 0x103
jmp 0x68024ec7
mov edi, dword [sym.imp._CKERNEL.DLL_FindNextFileW]
lea eax, [ebp - 0x254]
push eax
push ebx
call edi
test eax, eax
je 0x68024e13
lea eax, [ebp - 0x254]
push eax
push ebx
call edi
test eax, eax
je 0x68024e13
xor ebx, ebx
inc ebx
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp._CKERNEL.DLL_FindNextFileW]
test eax, eax
jne 0x68024d5d
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, 0x12
je 0x68024d60
cmp eax, 5
jne 0x68024ec5
inc ebx
jmp 0x68024d23
push dword [ebp - 0x258]
call dword [sym.imp._CKERNEL.DLL_FindClose]
or dword [ebp - 0x258], 0xffffffff
and dword [esi + 0x104], 0
mov dword [esi + 0x108], ebx
imul ebx, ebx, 0x105
push ebx
mov dword [esi + 0x100], 0x105
call fcn.68021ec0
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x68024da8
push 8
pop ebx
jmp 0x68024ec7
xor eax, eax
push eax
push eax
mov ecx, 0x94
lea edi, [ebp - 0x254]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x254]
push ecx
push eax
push dword [ebp - 0x268]
call dword [sym.imp._CKERNEL.DLL_FindFirstFileExW]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x68024cdd
mov ebx, dword [sym.imp._CKERNEL.DLL_FindNextFileW]
lea ecx, [ebp - 0x254]
push ecx
push eax
call ebx
test eax, eax
je 0x68024e13
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call ebx
test eax, eax
jne 0x68024e21
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, 0x12
jmp 0x68024ce6
and dword [ebp - 0x264], 0
cmp dword [esi + 0x108], 0
mov edi, dword [esi + 0x10c]
jbe 0x68024ec1
lea eax, [ebp - 0x260]
push eax
push edi
push dword [ebp - 0x25c]
lea eax, [ebp - 0x228]
push eax
push 1
mov dword [ebp - 0x260], 0x104
call fcn.68024304
test eax, eax
jne 0x68024e6b
add edi, 0x105
mov dword [ebp - 0x260], edi
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call ebx
test eax, eax
jne 0x68024ea3
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, 0x12
je 0x68024ec1
cmp eax, 5
jne 0x68024ec5
inc dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
cmp eax, dword [esi + 0x108]
mov edi, dword [ebp - 0x260]
jb 0x68024e3b
xor ebx, ebx
jmp 0x68024ec7
mov ebx, eax
push dword [ebp - 0x268]
call fcn.68021f03
cmp dword [ebp - 0x25c], 0
pop edi
je 0x68024ee7
push dword [ebp - 0x25c]
call fcn.68021f03
cmp dword [ebp - 0x258], 0xffffffff
je 0x68024efc
push dword [ebp - 0x258]
call dword [sym.imp._CKERNEL.DLL_FindClose]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.68014cb9
leave
ret 8