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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a224
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.00407fb0
mov ecx, eax
call fcn.00413b90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.0040c8c0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14c]
push ecx
push str..xml
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40cc7f
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 0x40d0cb
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x168]
call fcn.0040c840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.0040c840
mov byte [ebp - 4], 2
push 7
push 0
push 0x447640
lea ecx, [ebp - 0x168]
call fcn.00408b60
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jge 0x40ccff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00408b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00408b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
jmp 0x40d0cb
lea eax, [ebp - 0x120]
push eax
push 0x4479e4
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.0040c8c0
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00408100
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.00408310
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1b4]
push edx
lea ecx, [ebp - 0x168]
call fcn.00408b10
mov ecx, eax
call fcn.00408520
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b4]
call fcn.004083a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.00408190
movsx eax, word [ebp - 0x15c]
cmp eax, 0xffffffff
je 0x40ce15
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.00408b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00408b40
jmp 0x40d0ac
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push str._Glsetup2_PackageInfo
call fcn.00408100
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.00408b10
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00408800
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.00408af0
lea ecx, [ebp - 0x1c0]
call fcn.00408b40
push str.Name
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00408a90
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x174]
push eax
call fcn.00415cc0
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 9
push str.Version
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00408a90
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x160]
push eax
call fcn.00415cc0
add esp, 0xc
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0xa
push str.NoWriteUnistallInfoToReg
push ecx
mov ecx, esp
mov dword [ebp - 0x1cc], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00408a90
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00415cc0
add esp, 0xc
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xb
push str.True
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00407f30
and eax, 0xff
test eax, eax
je 0x40d036
lea edx, [ebp - 0x178]
push edx
mov ecx, 0x4497a0
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.0040c8c0
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.0040d670
mov dword [ebp - 0x198], 1
lea ecx, [ebp - 0x160]
call fcn.0040c8c0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040d610
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, 0x4497a0
call fcn.004080a0
push eax
mov edx, dword [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040d640
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.00408b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00408b40
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cc89
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