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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4375c4
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.00407490
mov ecx, eax
call fcn.004108c5
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14c]
push ecx
push 0x443774
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40b7bf
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 0x40bc0b
mov dword [ebp - 0x154], 0
lea ecx, [ebp - 0x168]
call fcn.00423920
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00423920
mov byte [ebp - 4], 2
push 7
push 0
push 0x443490
lea ecx, [ebp - 0x168]
call fcn.00407f10
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jge 0x40b83f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00407ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00407ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call sub.MFC42.DLL_CString::CString
jmp 0x40bc0b
lea eax, [ebp - 0x120]
push eax
push 0x44377c
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.004077a0
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00407500
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.00407710
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1b4]
push edx
lea ecx, [ebp - 0x168]
call fcn.00415f60
mov ecx, eax
call fcn.00407930
mov word [ebp - 0x15c], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b4]
call fcn.004077b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call fcn.00407590
movsx eax, word [ebp - 0x15c]
cmp eax, 0xffffffff
je 0x40b955
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.00407ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00407ef0
jmp 0x40bbec
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x443780
call fcn.00407500
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.00415f60
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00407c10
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.00407ed0
lea ecx, [ebp - 0x1c0]
call fcn.00407ef0
push 0x443798
push ecx
mov ecx, esp
mov dword [ebp - 0x1c4], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00407ea0
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x174]
push eax
call fcn.00412969
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 9
push 0x4437a0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00407ea0
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x160]
push eax
call fcn.00412969
add esp, 0xc
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0xa
push 0x4437a8
push ecx
mov ecx, esp
mov dword [ebp - 0x1cc], esp
lea edx, [ebp - 0x164]
push edx
call fcn.00407ea0
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00412969
add esp, 0xc
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0xb
push 0x4437c4
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40bb76
lea edx, [ebp - 0x178]
push edx
mov ecx, 0x4469b0
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.004077a0
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.0040c1b0
mov dword [ebp - 0x198], 1
lea ecx, [ebp - 0x160]
call fcn.004077a0
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040c150
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, 0x4469b0
call fcn.004074a0
push eax
mov edx, dword [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x4f0
call fcn.0040c180
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.00407ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00407ef0
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b7c9
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