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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437814
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.004074e0
mov ecx, eax
call fcn.00410aa5
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14c]
push ecx
push 0x444774
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40b95f
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 0x40bdab
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x168]
call fcn.00423b70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00423b70
mov byte [ebp - 4], 2
push 7
push 0
push 0x444490
lea ecx, [ebp - 0x168]
call fcn.00407f60
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jge 0x40b9df
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00407f40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00407f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
jmp 0x40bdab
lea eax, [ebp - 0x120]
push eax
push 0x44477c
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x1a4]
push edx
call sub.MFC42.DLL_operator
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
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1a4]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x178]
call fcn.004077f0
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00407550
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.00407760
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1b4]
push edx
lea ecx, [ebp - 0x168]
call fcn.00416140
mov ecx, eax
call fcn.00407980
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b4]
call fcn.00407800
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.004075e0
movsx eax, word [ebp - 0x15c]
cmp eax, 0xffffffff
je 0x40baf5
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.00407f40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00407f40
jmp 0x40bd8c
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x444780
call fcn.00407550
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.00416140
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00407c60
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.00407f20
lea ecx, [ebp - 0x1c0]
call fcn.00407f40
push 0x444798
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00407ef0
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x174]
push eax
call fcn.00412b49
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 9
push 0x4447a0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00407ef0
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x160]
push eax
call fcn.00412b49
add esp, 0xc
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0xa
push 0x4447a8
push ecx
mov ecx, esp
mov dword [ebp - 0x1cc], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00407ef0
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00412b49
add esp, 0xc
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xb
push 0x4447c4
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40bd16
lea edx, [ebp - 0x178]
push edx
mov ecx, 0x4479c0
call fcn.00402cd0
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.004077f0
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.0040c350
mov dword [ebp - 0x198], 1
lea ecx, [ebp - 0x160]
call fcn.004077f0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040c2f0
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, 0x4479c0
call fcn.004074f0
push eax
mov edx, dword [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040c320
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.00407f40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00407f40
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b969
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