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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b4c4
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.004085c0
mov ecx, eax
call fcn.00413c35
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.0040cdc0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14c]
push ecx
push 0x449ac4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40d17f
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 0x40d5cb
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x168]
call fcn.0040dba0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.0040dba0
mov byte [ebp - 4], 2
push 7
push 0
push 0x449728
lea ecx, [ebp - 0x168]
call fcn.00409110
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jge 0x40d1ff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004090c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.004090c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
jmp 0x40d5cb
lea eax, [ebp - 0x120]
push eax
push 0x449acc
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.0040cdc0
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00408710
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.00408920
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1b4]
push edx
lea ecx, [ebp - 0x168]
call fcn.004090e0
mov ecx, eax
call fcn.00408b30
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b4]
call fcn.004089b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.004087a0
movsx eax, word [ebp - 0x15c]
cmp eax, 0xffffffff
je 0x40d315
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.004090c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.004090c0
jmp 0x40d5ac
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x449ad0
call fcn.00408710
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.004090e0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00408e10
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.004090a0
lea ecx, [ebp - 0x1c0]
call fcn.004090c0
push 0x449ae8
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00418440
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x174]
push eax
call fcn.00415d19
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 9
push 0x449af0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00418440
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x160]
push eax
call fcn.00415d19
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.00418440
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00415d19
add esp, 0xc
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xb
push 0x449b14
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00408540
and eax, 0xff
test eax, eax
je 0x40d536
lea edx, [ebp - 0x178]
push edx
mov ecx, 0x44ce40
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.0040cdc0
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.0040db70
mov dword [ebp - 0x198], 1
lea ecx, [ebp - 0x160]
call fcn.0040cdc0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040db10
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, 0x44ce40
call fcn.004086b0
push eax
mov edx, dword [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040db40
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.004090c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.004090c0
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d189
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