Function at 0x41f760
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x54c
push ebx
mov ebx, dword [esp + 0x55c]
push ebp
mov ebp, dword [esp + 0x564]
push esi
mov esi, dword [esp + 0x55c]
push edi
push esi
xor edi, edi
lea eax, [esp + 0x360]
push str._s_
mov dword [ebp], edi
push eax
mov dword [esp + 0x20], edi
mov dword [ebx], edi
call fcn.00463a12
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x41f7d5
push esi
call fcn.0041fe30
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x7d6
pop ebx
add esp, 0x54c
ret
lea eax, [esp + 0x48]
push 0x4884a8
push eax
call fcn.004192c0
add esp, 8
test al, al
jne 0x41f976
lea ecx, [esp + 0x48]
push 0x4884ac
push ecx
call fcn.004192c0
add esp, 8
test al, al
jne 0x41f976
mov edx, dword [esp + 0x564]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00419550
add esp, 8
test al, al
je 0x41f976
mov eax, dword [esp + 0x570]
cmp eax, 3
jne 0x41f852
lea ecx, [esp + 0x48]
push 0x4884b0
push ecx
call fcn.00419ff0
lea edx, [esp + 0x50]
add esp, 8
cmp eax, edx
je 0x41f976
jmp 0x41f856
test eax, eax
je 0x41f8c6
lea eax, [esp + 0x48]
push eax
push esi
lea ecx, [esp + 0x164]
push 0x4884b4
push ecx
call fcn.00463a12
lea edx, [esp + 0x23]
push edx
lea eax, [esp + 0x170]
push eax
call fcn.0042f320
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x41f99a
mov al, byte [esp + 0x13]
test al, al
je 0x41f8c6
lea ecx, [esp + 0x15c]
push ecx
call fcn.0041db00
mov ecx, dword [esp + 0x574]
add esp, 4
dec ecx
je 0x41f8bd
dec ecx
jne 0x41f8c6
cmp eax, 2
jne 0x41f976
jmp 0x41f8c6
cmp eax, 1
jne 0x41f976
cmp dword [ebp], edi
jl 0x41f900
mov edx, dword [str.gen_fs.c]
push 0xdb3
push edx
lea eax, [edi*4 + 0xc8]
push 1
push eax
mov eax, dword [ebx]
push eax
call sym.cns.exe_gen__mem_realloc
add esp, 0x14
cmp eax, 0x3e8
jbe 0x41f9bb
add edi, 0x32
mov dword [esp + 0x14], edi
mov dword [ebx], eax
lea ecx, [esp + 0x48]
test ecx, ecx
je 0x41f918
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x41f91a
xor ecx, ecx
mov edx, dword [str.gen_fs.c]
push 0xdb4
push edx
inc ecx
push 1
push ecx
call sym.cns.exe_gen__mem_malloc
mov ecx, dword [ebp]
mov edx, dword [ebx]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [ecx + eax*4]
add esp, 0x10
test edx, edx
je 0x41f9fc
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov edi, dword [esp + 0x14]
inc eax
mov dword [ebp], eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41fa22
mov esi, dword [esp + 0x560]
jmp 0x41f7d5
mov edx, dword [str.gen_fs.c]
push 0xd9e
push edx
call fcn.0041cc10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
mov eax, dword [str.gen_fs.c]
push 0xdb3
push eax
push 0x4884bc
call fcn.0041cad0
mov ecx, dword [ebp]
mov edx, dword [ebx]
push ecx
push edx
call fcn.00419bf0
add esp, 0x14
pop edi
mov dword [ebx], 0
pop esi
mov dword [ebp], 0
pop ebp
mov eax, 0x7d1
pop ebx
add esp, 0x54c
ret
mov eax, dword [str.gen_fs.c]
push 0xdb7
push eax
push str._list__num_list____NULL
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x54c
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx]
test eax, eax
je 0x41fa94
mov ecx, dword [ebp]
test ecx, ecx
jle 0x41fa94
mov edx, dword [str.gen_fs.c]
push 0xdbf
push edx
push 1
shl ecx, 2
push ecx
push eax
call sym.cns.exe_gen__mem_realloc
add esp, 0x14
test eax, eax
mov dword [ebx], eax
jne 0x41fa80
mov edx, dword [str.gen_fs.c]
push 0xdc0
push edx
push str.list___NULL
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x7d1
pop ebx
add esp, 0x54c
ret
mov ecx, dword [ebp]
push 0x41fab0
push 4
push ecx
push eax
call fcn.00463eec
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54c
ret