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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e57d
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b59f4]
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 0x408910
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408910
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00406970
mov dword [esp + 0x210], ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.0040df70
add esp, 8
mov byte [esp + 0x210], 2
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x408961
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406020
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 0x408983
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 0x4089a2
sub eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00406970
mov byte [esp + 0x22c], 3
mov byte [esp + 0x22c], 2
mov edi, dword [esp + 0x50]
mov ecx, edi
call fcn.00408560
cmp al, bl
jne 0x408a17
mov dword [esp + 0x210], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jb 0x4089ff
add eax, 1
push eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00406020
add esp, 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jmp 0x408e1d
push str.169841
push fcn.004215e0
push 1
push 2
sub esp, 0x1c
mov ecx, esp
mov eax, esi
lea edx, [eax + 1]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x5c], esp
mov byte [ecx + 4], bl
mov dword [esp + 0x3c], edx
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408a44
sub eax, dword [esp + 0x3c]
push eax
push esi
call fcn.00406970
mov byte [esp + 0x23c], 4
mov byte [esp + 0x23c], 2
mov ecx, edi
call fcn.00408670
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4089d7
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.00406970
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0040c8c0
mov byte [esp + 0x210], 6
lea ecx, [edi + 0xc]
push eax
push ecx
lea ebx, [esp + 0x44]
call fcn.0040c760
mov byte [esp + 0x210], 5
lea ecx, [esp + 0x48]
push ecx
call fcn.004015c0
mov byte [esp + 0x210], 2
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x408b01
mov edx, dword [esp + 0x18]
add eax, 1
push eax
push edx
call fcn.00406020
add esp, 8
lea eax, [esp + 0xbc]
push eax
xor ebx, ebx
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 0x408b6d
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x80]
cmp eax, 0x10
jb 0x408b54
mov ecx, dword [esp + 0x6c]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov eax, 1
jmp 0x408e1f
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 0x408bb0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x8c]
call fcn.00406970
push 1
push 0x49bc08
lea ecx, [esp + 0x8c]
call fcn.00406f40
lea eax, [esp + 0xe8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408be6
sub eax, edx
push eax
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x8c]
call fcn.00406f40
cmp dword [esp + 0x9c], 0x10
mov edi, dword [esp + 0x88]
push str.169841
push fcn.004215e0
push 1
push 1
jae 0x408c2c
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 0x408c47
sub eax, esi
push eax
push edi
call fcn.00406970
mov byte [esp + 0x23c], 9
mov byte [esp + 0x23c], 8
mov esi, dword [esp + 0x60]
mov ecx, esi
call fcn.00408670
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x408de1
lea eax, [esp + 0xe8]
lea edi, [esp + 0xa0]
call fcn.0040eb30
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x408cab
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xec]
push 0x104
push eax
call fcn.004719b7
mov edi, 0xf
lea eax, [esp + 0xf4]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408ce0
sub eax, ecx
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406970
mov byte [esp + 0x210], 0xa
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040c8c0
mov byte [esp + 0x210], 0xb
push eax
lea eax, [esi + 0xc]
push eax
lea ebx, [esp + 0x44]
call fcn.0040c760
mov byte [esp + 0x210], 0xa
lea edx, [esp + 0x48]
push edx
call fcn.004015c0
mov byte [esp + 0x210], 8
mov eax, dword [esp + 0x2c]
cmp eax, 0x10
jb 0x408d63
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406020
add esp, 8
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xbc]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x408d93
mov esi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x408ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x408de1
mov byte [esp + 0x210], 7
lea ecx, [esp + 0x84]
call fcn.00406bf0
mov byte [esp + 0x210], 2
lea ecx, [esp + 0xa0]
call fcn.00406bf0
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.00406bf0
mov eax, 1
jmp 0x408e1f
mov byte [esp + 0x210], 7
lea ecx, [esp + 0x84]
call fcn.00406bf0
mov byte [esp + 0x210], 2
lea ecx, [esp + 0xa0]
call fcn.00406bf0
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.00406bf0
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.0046fe25
mov esp, ebp
pop ebp
ret 4