Function at 0x40ff9a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x4c4], edx
mov edi, ecx
mov dword [ebp - 0x4b4], eax
mov eax, dword [0x414064]
cmp eax, 0x414064
je 0x40fff4
test dword [eax + 0x1c], 0x20000000
je 0x40fff4
push dword [eax + 0x14]
mov edx, 0x403f74
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.00408a5f
push 1
push 0x8b
push 0x403e70
lea ecx, [ebp - 0x4e8]
call fcn.0040facc
or dword [ebp - 0x4bc], 0xffffffff
xor eax, eax
or dword [ebp - 0x4b0], 0xffffffff
mov esi, eax
mov dword [ebp - 0x4f8], eax
mov ebx, eax
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], eax
mov eax, 0x9b
mov dword [ebp - 0x4f4], 0x4040b8
test edi, edi
jne 0x410066
mov dword [ebp - 0x4e8], 0x80070057
mov word [ebp - 0x4e2], ax
jmp 0x41028e
mov word [ebp - 0x4e4], ax
mov eax, dword [ebp - 0x4c4]
test eax, eax
jne 0x41007e
mov eax, 0x9c
jmp 0x410050
mov ecx, 0x9c
mov word [ebp - 0x4e4], cx
mov ecx, dword [ebp - 0x4b8]
test ecx, ecx
jne 0x41009b
mov eax, 0x9d
jmp 0x410050
mov edx, 0x9d
mov word [ebp - 0x4e4], dx
mov edx, dword [ebp - 0x4b4]
test edx, edx
jne 0x4100b8
mov eax, 0x9e
jmp 0x410050
xor edx, edx
mov dword [ebp - 0x4e8], edx
mov edx, 0x9e
mov word [ebp - 0x4e4], dx
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov edx, dword [ebp - 0x4b4]
mov dword [ecx], eax
push 0x250
push eax
mov dword [edx], eax
lea eax, [ebp - 0x258]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
push 0x250
push eax
lea eax, [ebp - 0x4a8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4f4]
push 0x403f6c
push edi
push 0x403e84
push eax
call fcn.00411a78
add esp, 0x10
mov dword [ebp - 0x4e8], eax
test eax, eax
mov eax, 0xaa
js 0x41005a
mov word [ebp - 0x4e4], ax
lea eax, [ebp - 0x4a8]
push eax
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4bc], eax
cmp eax, 0xffffffff
je 0x410166
xor eax, eax
mov dword [ebp - 0x4c0], 1
push 0x403f6c
push edi
lea eax, [ebp - 0x4f4]
push 0x403e94
push eax
call fcn.00411a78
add esp, 0x10
mov dword [ebp - 0x4e8], eax
test eax, eax
mov eax, 0xb5
js 0x41005a
mov word [ebp - 0x4e4], ax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov dword [ebp - 0x4b0], edx
cmp edx, 0xffffffff
je 0x41026e
lea edi, [ebp - 0x22c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, word [ebp - 0x4f8]
jne 0x4101c7
sub edi, ecx
sar edi, 1
movzx eax, word [ebp + edi*2 - 0x236]
sub eax, 0x30
cmp eax, ebx
jbe 0x4101eb
mov ebx, eax
mov eax, dword [ebp - 0x4ac]
inc eax
mov dword [ebp - 0x4ac], eax
cmp ebx, 7
ja 0x410267
cmp eax, 7
ja 0x410267
lea eax, [ebp - 0x258]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x410242
xor eax, eax
mov dword [ebp - 0x4e8], eax
mov eax, 0xd8
mov word [ebp - 0x4e4], ax
cmp esi, 0x12
je 0x41025f
mov edx, dword [ebp - 0x4b0]
jmp 0x4101da
test esi, esi
jle 0x41024f
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x4e8], esi
mov eax, 0xd8
jmp 0x41005a
mov eax, dword [ebp - 0x4ac]
jmp 0x410270
push 7
pop eax
push eax
pop ebx
jmp 0x410270
mov eax, esi
mov edx, dword [ebp - 0x4c4]
mov ecx, dword [ebp - 0x4c0]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x4b4]
mov dword [eax], ebx
push dword [ebp - 0x4bc]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
push dword [ebp - 0x4b0]
call esi
mov esi, dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4f4]
call fcn.00411683
lea ecx, [ebp - 0x4e8]
call fcn.0040fbc2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004129cd
mov esp, ebp
pop ebp
ret 8