Function at 0x40882f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [edi], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp byte [esi + 4], 0
jne 0x4088a5
cmp byte [esi + 5], 0
je 0x408868
push dword [esi + 0x3ef]
call sub.KERNEL32.dll_FindClose
mov byte [esi + 5], 0
cmp byte [esi + 7], 0
jne 0x408875
xor eax, eax
jmp 0x408b3b
lea edx, [ebp - 0x148]
push edx
lea ecx, [esi + 7]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [esi + 0x3ef], eax
cmp dword [esi + 0x3ef], 0xffffffff
jne 0x40889b
xor eax, eax
jmp 0x408b3b
mov dl, 1
mov byte [esi + 5], dl
mov byte [esi + 4], dl
jmp 0x4088d5
lea eax, [ebp - 0x148]
push eax
push dword [esi + 0x3ef]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4088d5
push dword [esi + 0x3ef]
call sub.KERNEL32.dll_FindClose
xor ecx, ecx
mov byte [esi + 5], cl
mov byte [esi + 4], cl
xor eax, eax
jmp 0x408b3b
push dword [ebp + 0x10]
lea edx, [ebp - 0x11c]
push edx
push edi
call fcn.0049b180
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov byte [edi + eax - 1], 0
test byte [ebp - 0x148], 2
je 0x4088ff
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test ebx, ebx
je 0x408b39
mov word [ebx], 2
xor ecx, ecx
mov word [ebx + 2], 0
mov dword [ebx + 8], ecx
xor eax, eax
mov dword [ebx + 0xc], eax
mov word [ebx + 0x10], 2
mov word [ebx + 6], 1
mov edx, dword [ebp - 0x12c]
mov ecx, edx
neg edx
add edx, dword [ebp - 0x128]
mov dword [ebx + 0x12], edx
mov word [ebx + 4], 0x8000
test byte [ebp - 0x148], 0x10
je 0x408950
mov word [ebx + 4], 0x4000
mov dword [ebx + 0x16], 0x12ceec50
mov dword [ebx + 0x1a], 0x12ceec50
mov dword [ebx + 0x1e], 0x12ceec50
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
test eax, eax
je 0x408a01
lea ecx, [ebp - 0x17c]
push ecx
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_FileTimeToSystemTime
test eax, eax
je 0x408a01
movzx edx, word [ebp - 0x170]
mov dword [ebp - 0x16c], edx
movzx ecx, word [ebp - 0x172]
mov dword [ebp - 0x168], ecx
movzx eax, word [ebp - 0x174]
mov dword [ebp - 0x164], eax
movzx edx, word [ebp - 0x176]
mov dword [ebp - 0x160], edx
movzx ecx, word [ebp - 0x17a]
dec ecx
mov dword [ebp - 0x15c], ecx
movzx eax, word [ebp - 0x17c]
add eax, 0xfffff894
mov dword [ebp - 0x158], eax
lea edx, [ebp - 0x16c]
push edx
call fcn.004abc8c
pop ecx
mov esi, eax
mov dword [ebx + 0x1a], esi
inc esi
jne 0x408a01
mov dword [ebx + 0x1a], 0x12ceec50
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x144]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
test eax, eax
je 0x408a9d
lea ecx, [ebp - 0x17c]
push ecx
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_FileTimeToSystemTime
test eax, eax
je 0x408a9d
movzx edx, word [ebp - 0x170]
mov dword [ebp - 0x16c], edx
movzx ecx, word [ebp - 0x172]
mov dword [ebp - 0x168], ecx
movzx eax, word [ebp - 0x174]
mov dword [ebp - 0x164], eax
movzx edx, word [ebp - 0x176]
mov dword [ebp - 0x160], edx
movzx ecx, word [ebp - 0x17a]
dec ecx
mov dword [ebp - 0x15c], ecx
movzx eax, word [ebp - 0x17c]
add eax, 0xfffff894
mov dword [ebp - 0x158], eax
lea edx, [ebp - 0x16c]
push edx
call fcn.004abc8c
pop ecx
mov esi, eax
mov dword [ebx + 0x1e], esi
inc esi
jne 0x408a9d
mov dword [ebx + 0x1e], 0x12ceec50
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
test eax, eax
je 0x408b39
lea ecx, [ebp - 0x17c]
push ecx
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_FileTimeToSystemTime
test eax, eax
je 0x408b39
movzx edx, word [ebp - 0x170]
mov dword [ebp - 0x16c], edx
movzx ecx, word [ebp - 0x172]
mov dword [ebp - 0x168], ecx
movzx eax, word [ebp - 0x174]
mov dword [ebp - 0x164], eax
movzx edx, word [ebp - 0x176]
mov dword [ebp - 0x160], edx
movzx ecx, word [ebp - 0x17a]
dec ecx
mov dword [ebp - 0x15c], ecx
movzx eax, word [ebp - 0x17c]
add eax, 0xfffff894
mov dword [ebp - 0x158], eax
lea edx, [ebp - 0x16c]
push edx
call fcn.004abc8c
pop ecx
mov esi, eax
mov dword [ebx + 0x16], esi
inc esi
jne 0x408b39
mov dword [ebx + 0x16], 0x12ceec50
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret