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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4af9b9
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edi, [eax + 1]
jmp 0x408a10
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408a10
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00406230
mov dword [esp + 0x210], ebx
push str.GFXFileManager.dll
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.0040e110
add esp, 0xc
mov byte [esp + 0x210], 2
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x408a66
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406140
add esp, 8
cmp dword [esp + 0x80], 0x10
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jae 0x408a88
lea ecx, [esp + 0x6c]
sub esp, 0x1c
mov edi, esp
mov eax, ecx
lea edx, [eax + 1]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x4c], esp
mov byte [edi + 4], bl
mov dword [esp + 0x2c], edx
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408aa7
sub eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00406230
mov byte [esp + 0x22c], 3
mov byte [esp + 0x22c], 2
mov ecx, dword [esp + 0x50]
call fcn.00408670
cmp al, bl
jne 0x408b1a
mov dword [esp + 0x210], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jb 0x408b02
add eax, 1
push eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00406140
add esp, 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jmp 0x408f5b
push str.169841
push fcn.00406b10
push 1
push 2
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x5c], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408b43
sub eax, edi
push eax
push esi
call fcn.00406230
mov byte [esp + 0x23c], 4
mov byte [esp + 0x23c], 2
mov edi, dword [esp + 0x60]
mov ecx, edi
call fcn.00408780
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x408bbc
mov dword [esp + 0x210], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jb 0x408b02
mov ecx, dword [esp + 0x6c]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jmp 0x408f5b
push 0x13
push str.WINDOWS_FILE_SYSTEM
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00406230
mov byte [esp + 0x210], 5
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
call fcn.0040ca00
mov byte [esp + 0x210], 6
push eax
lea edx, [esp + 0x40]
lea ecx, [edi + 0xc]
push edx
call fcn.0040c870
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x48]
call fcn.00401620
mov byte [esp + 0x210], 2
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x408c40
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406140
add esp, 8
lea ecx, [esp + 0xbc]
push ecx
mov edi, 0xf
push str..pk2
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x408caa
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jb 0x408c91
mov edx, dword [esp + 0x6c]
add eax, 1
push eax
push edx
call fcn.00406140
add esp, 8
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov eax, 1
jmp 0x408f5d
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov byte [esp + 0x210], 7
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x210], 8
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408cf0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x8c]
call fcn.00406230
push 1
push 0x4c4e7c
lea ecx, [esp + 0x8c]
call fcn.00408480
lea eax, [esp + 0xe8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408d26
sub eax, edx
push eax
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x8c]
call fcn.00408480
cmp dword [esp + 0x9c], 0x10
mov edi, dword [esp + 0x88]
push str.169841
push fcn.00406b10
push 1
push 1
jae 0x408d6c
lea edi, [esp + 0x98]
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x3c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408d87
sub eax, esi
push eax
push edi
call fcn.00406230
mov byte [esp + 0x23c], 9
mov byte [esp + 0x23c], 8
mov esi, dword [esp + 0x60]
mov ecx, esi
call fcn.00408780
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x408f1f
lea eax, [esp + 0xe8]
lea edi, [esp + 0xa0]
call fcn.0040ec80
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x408deb
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xec]
push 0x104
push ecx
call fcn.0047fd11
lea eax, [esp + 0xf4]
add esp, 0xc
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edi, [eax + 1]
jmp 0x408e20
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408e20
sub eax, edi
push eax
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406230
mov byte [esp + 0x210], 0xa
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040ca00
mov byte [esp + 0x210], 0xb
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esi + 0xc]
call fcn.0040c870
mov byte [esp + 0x210], 0xa
lea ecx, [esp + 0x48]
call fcn.00401620
mov byte [esp + 0x210], 8
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x408ea1
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406140
add esp, 8
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xbc]
push ecx
push edx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x408ed1
mov esi, dword [esp + 0x38]
jmp 0x408ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x408f1f
mov byte [esp + 0x210], 7
lea ecx, [esp + 0x84]
call fcn.00406db0
mov byte [esp + 0x210], 2
lea ecx, [esp + 0xa0]
call fcn.00406db0
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.00406db0
mov eax, 1
jmp 0x408f5d
mov byte [esp + 0x210], 7
lea ecx, [esp + 0x84]
call fcn.00406db0
mov byte [esp + 0x210], 2
lea ecx, [esp + 0xa0]
call fcn.00406db0
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.00406db0
xor eax, eax
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0047e4dd
mov esp, ebp
pop ebp
ret 4