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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff05c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
call fcn.00409268
test eax, eax
je 0x42096a
cmp dword [ebp - 4], 0
je 0x42080e
mov eax, dword [ebp - 4]
cmp word [eax], 0
je 0x42080e
lea eax, [ebp - 0x814]
mov edx, dword [ebp - 4]
call fcn.00408f34
jmp 0x420820
lea edx, [ebp - 0x814]
mov ecx, 0x10000000
mov eax, edi
call fcn.00408eec
cmp esi, 0xffffffff
jne 0x42085f
lea eax, [ebp - 0xa64]
push eax
lea edx, [ebp - 0x814]
push edx
call sub.KERNEL32.DLL_FindFirstFileW
mov esi, eax
cmp esi, 0xffffffff
jne 0x420887
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x42084e
cmp eax, 3
jne 0x420852
xor eax, eax
jmp 0x420857
mov eax, 1
mov byte [ebx + 0xc2c], al
jmp 0x420887
lea edx, [ebp - 0xa64]
push edx
push esi
call sub.KERNEL32.DLL_FindNextFileW
test eax, eax
jne 0x420887
or esi, 0xffffffff
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x12
setne al
and eax, 1
mov byte [ebx + 0xc2c], al
cmp esi, 0xffffffff
je 0x420af8
lea edx, [ebp - 0x814]
lea edi, [ebx + 0x400]
mov eax, edi
call fcn.00408f34
mov eax, edi
call fcn.004019dc
lea edx, [ebp - 0xa38]
call fcn.00408f34
mov eax, edi
mov ecx, 0x10000000
mov edx, ebx
call fcn.00408ed8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xa44]
mov edx, dword [ebp - 0xa48]
call fcn.00401f80
mov edx, dword [eax]
mov dword [ebx + 0xc00], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0xc04], edx
mov eax, dword [ebp - 0xa64]
mov dword [ebx + 0xc08], eax
lea eax, [ebp - 0xa50]
call fcn.0040b374
mov dword [ebx + 0xc0c], eax
mov edx, dword [ebp - 0xa60]
mov dword [ebx + 0xc14], edx
mov edx, dword [ebp - 0xa5c]
mov dword [ebx + 0xc18], edx
mov ecx, dword [ebp - 0xa58]
mov dword [ebx + 0xc1c], ecx
mov ecx, dword [ebp - 0xa54]
mov dword [ebx + 0xc20], ecx
mov eax, dword [ebp - 0xa50]
mov dword [ebx + 0xc24], eax
mov eax, dword [ebp - 0xa4c]
mov dword [ebx + 0xc28], eax
mov eax, edi
call fcn.00408efc
test al, al
je 0x420af8
mov word [ebx + 0x400], 0
jmp 0x420af8
test edi, edi
je 0x420985
cmp byte [edi], 0
je 0x420985
push edi
lea edx, [ebp - 0xe64]
push edx
call fcn.00424d38
add esp, 8
jmp 0x420998
lea edx, [ebp - 0xe64]
mov ecx, 0x10000000
mov eax, dword [ebp - 4]
call fcn.00408ed8
cmp esi, 0xffffffff
jne 0x4209d7
lea eax, [ebp - 0xfa4]
push eax
lea edx, [ebp - 0xe64]
push edx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x4209ff
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4209c6
cmp eax, 3
jne 0x4209ca
xor eax, eax
jmp 0x4209cf
mov eax, 1
mov byte [ebx + 0xc2c], al
jmp 0x4209ff
lea edx, [ebp - 0xfa4]
push edx
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4209ff
or esi, 0xffffffff
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x12
setne al
and eax, 1
mov byte [ebx + 0xc2c], al
cmp esi, 0xffffffff
je 0x420af8
lea edx, [ebp - 0xe64]
push edx
push ebx
call fcn.00424d38
add esp, 8
lea ecx, [ebp - 0xf78]
push ecx
mov eax, ebx
call fcn.00401990
push eax
call fcn.00424d38
add esp, 8
lea edx, [ebx + 0x400]
mov ecx, 0x10000000
mov eax, ebx
call fcn.00408eec
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xf84]
mov edx, dword [ebp - 0xf88]
call fcn.00401f80
mov edx, dword [eax]
mov dword [ebx + 0xc00], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0xc04], edx
mov eax, dword [ebp - 0xfa4]
mov dword [ebx + 0xc08], eax
lea eax, [ebp - 0xf90]
call fcn.0040b374
mov dword [ebx + 0xc0c], eax
mov edx, dword [ebp - 0xfa0]
mov dword [ebx + 0xc14], edx
mov edx, dword [ebp - 0xf9c]
mov dword [ebx + 0xc18], edx
mov ecx, dword [ebp - 0xf98]
mov dword [ebx + 0xc1c], ecx
mov ecx, dword [ebp - 0xf94]
mov dword [ebx + 0xc20], ecx
mov eax, dword [ebp - 0xf90]
mov dword [ebx + 0xc24], eax
mov eax, dword [ebp - 0xf8c]
mov dword [ebx + 0xc28], eax
mov cl, 1
xor eax, eax
jmp 0x420ae5
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
jl 0x420ae0
cmp edx, 0x7f
jle 0x420ae4
xor ecx, ecx
jmp 0x420aeb
inc eax
cmp byte [ebx + eax], 0
jne 0x420ad1
test cl, cl
je 0x420af8
mov word [ebx + 0x400], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4