Function at 0x40c295
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a104
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov dword [ebp - 0x1d0], ecx
push str._GLDIR_Setup
lea eax, [ebp - 0x158]
push eax
call fcn.00407e10
mov ecx, eax
call fcn.00412c35
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.004081e0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14c]
push ecx
push 0x447924
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40c32f
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
jmp 0x40c77b
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x168]
call fcn.00426310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00426310
mov byte [ebp - 4], 2
push 7
push 0
push 0x447640
lea ecx, [ebp - 0x168]
call fcn.00408920
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jge 0x40c3af
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00408900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00408900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
jmp 0x40c77b
lea eax, [ebp - 0x120]
push eax
push 0x44792c
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x1a4]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1d8]
push ecx
lea edx, [ebp - 0x178]
push edx
call sub.MFC42.DLL_operator_1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1a4]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x178]
call fcn.004081e0
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00407f40
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1e0]
push ecx
lea ecx, [ebp - 0x1b4]
call fcn.00408150
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1b4]
push edx
lea ecx, [ebp - 0x168]
call fcn.00416060
mov ecx, eax
call fcn.00408370
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b4]
call fcn.004081f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.00407fd0
movsx eax, word [ebp - 0x15c]
cmp eax, 0xffffffff
je 0x40c4c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00408900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00408900
jmp 0x40c75c
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x447930
call fcn.00407f40
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], ecx
mov byte [ebp - 4], 8
lea edx, [ebp - 0x1c0]
push edx
lea ecx, [ebp - 0x168]
call fcn.00416060
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00408650
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
push ecx
lea ecx, [ebp - 0x164]
call fcn.004088e0
lea ecx, [ebp - 0x1c0]
call fcn.00408900
push 0x447948
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00416030
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x174]
push eax
call fcn.00414cb9
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 9
push 0x447950
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00416030
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x160]
push eax
call fcn.00414cb9
add esp, 0xc
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0xa
push 0x447958
push ecx
mov ecx, esp
mov dword [ebp - 0x1cc], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00416030
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00414cb9
add esp, 0xc
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xb
push 0x447974
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00407d90
and eax, 0xff
test eax, eax
je 0x40c6e6
lea edx, [ebp - 0x178]
push edx
mov ecx, 0x44ad20
call fcn.00402cc0
push 0x28
push 0
lea eax, [ebp - 0x1a0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1a0], 1
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], 0
lea ecx, [ebp - 0x174]
call fcn.004081e0
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], 0x100
lea edx, [ebp - 0x1a0]
push edx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040cd20
mov dword [ebp - 0x198], 1
lea ecx, [ebp - 0x160]
call fcn.004081e0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040ccc0
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, 0x44ad20
call fcn.00407ee0
push eax
mov edx, dword [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040ccf0
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x16c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x160]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x174]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00408900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00408900
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c339
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret