Function at 0x492a20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov esi, dword [esp + 0x414]
push edi
mov eax, dword [esi]
test eax, eax
jne 0x492a77
push 0x150
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x41c]
mov dword [esi], eax
mov edx, dword [ecx + 0x500]
test edx, edx
je 0x492a63
mov dword [eax + 0x148], 0
jmp 0x492a6d
mov dword [eax + 0x148], 2
mov eax, dword [esi]
test eax, eax
je 0x492c37
mov edi, dword [esp + 0x414]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [eax + 0x148]
cmp ecx, 3
ja case.default.0x492a99
jmp dword [ecx*4 + 0x492cb0]
push 0x4c6800
push edi
lea edx, [esp + 0x18]
push str._s_s
push edx
call ebx
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
mov edx, dword [esi]
mov dword [edx + 0x140], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x140]
cmp ecx, 0xffffffff
je 0x492c53
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
mov dword [eax + 0x148], 1
mov eax, dword [esi]
mov ecx, dword [eax + 0x14c]
test ecx, ecx
jne 0x492b0e
mov ecx, dword [eax + 0x140]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [esi]
mov dword [edx + 0x144], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x144]
test ecx, ecx
je 0x492b5f
cmp dword [eax], 0x10
jne case.default.0x492a99
add eax, 0x2c
push eax
push edi
lea eax, [esp + 0x18]
push str._s_s_
push eax
call ebx
mov edx, dword [esi]
mov ecx, dword [esp + 0x42c]
add edx, 0x14c
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00492a20
add esp, 0x1c
test eax, eax
jne 0x492c9d
jmp case.default.0x492a99
mov ecx, dword [eax + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi]
mov dword [edx + 0x148], 2
jmp case.default.0x492a99
mov eax, dword [esp + 0x41c]
lea ecx, [esp + 0x10]
add eax, 0x400
push eax
push edi
push str._s_s
push ecx
call ebx
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x10]
push edx
push eax
call ebp
mov ecx, dword [esi]
mov dword [ecx + 0x140], eax
mov eax, dword [esi]
cmp dword [eax + 0x140], 0xffffffff
je 0x492c53
mov dword [eax + 0x148], 3
mov edx, dword [esi]
cmp dword [edx], 0x10
je case.default.0x492a99
mov ebx, dword [esp + 0x41c]
mov eax, edi
lea edx, [ebx + 0x504]
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x492bdd
mov esi, dword [esi]
lea edi, [ebx + 0x904]
mov ecx, 0x50
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
push eax
mov eax, dword [eax + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x144], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x144]
test ecx, ecx
je 0x492c44
cmp dword [eax], 0x10
jne 0x492c73
mov eax, dword [esi]
test eax, eax
jne 0x492a8a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
mov edx, dword [esi]
mov eax, dword [edx + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi]
test eax, eax
je 0x492c37
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
mov ebx, dword [esp + 0x41c]
mov eax, edi
lea edx, [ebx + 0x504]
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x492c84
mov esi, dword [esi]
lea edi, [ebx + 0x904]
mov ecx, 0x50
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret