Function at 0x1000204c
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x100078c8
call fcn.100075c0
sub esp, 0x928
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x740], edi
jne 0x10002072
xor eax, eax
jmp 0x100023c7
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], edi
call fcn.100025a7
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esi + 0x528]
push eax
lea eax, [ebp - 0x6dc]
push str._s.txt
push eax
mov dword [ebp - 4], edi
call ebx
add esp, 0xc
lea eax, [ebp - 0x5d8]
push eax
lea eax, [ebp - 0x6dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x100023b8
push 0x104
lea eax, [ebp - 0x36c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5ac]
push eax
lea eax, [esi + 0x528]
push eax
lea eax, [ebp - 0x36c]
push 0x100090d4
push eax
call ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 0x18
test eax, eax
jne 0x1000232b
mov eax, dword [ebp - 0x58]
lea ecx, [esi + 0x768]
cdq
cmp edx, dword [ecx + 4]
jl 0x1000232b
jg 0x10002128
cmp eax, dword [ecx]
jbe 0x1000232b
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x18]
jle 0x10002133
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.10004331
mov eax, dword [ebp - 0x34]
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x1000232b
push 1
push 0x10009208
push dword [ebp - 0x24]
lea ecx, [ebp - 0x50]
push eax
call fcn.10002676
cmp eax, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jle 0x10002322
mov edi, 0x12c
lea eax, [ebp - 0x268]
push edi
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10002840
lea eax, [ebp - 0x268]
push 0x10009204
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x1000220d
mov edi, dword [ebp - 0x58]
push 0x258
push eax
lea eax, [ebp - 0x934]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x498]
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x934]
push str._s_t_s_t_s_t_d_t_d_t_d_tie_r_n
push eax
call ebx
add esp, 0x20
mov ecx, esi
push 0
push eax
lea eax, [ebp - 0x934]
push eax
call fcn.1000139b
and dword [ebp - 0x14], 0
jmp 0x10002311
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp ecx, eax
jne 0x10002243
push 0x64
push eax
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x268]
push 0x5a
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
jmp 0x1000230e
cmp ecx, 1
jne 0x1000226a
push edi
push eax
lea eax, [ebp - 0x498]
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x268]
push 0x122
push eax
lea eax, [ebp - 0x498]
jmp 0x10002234
cmp ecx, 2
jne 0x1000228f
push 0x64
push eax
lea eax, [ebp - 0xd8]
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x268]
push 0x5a
push eax
lea eax, [ebp - 0xd8]
jmp 0x10002234
cmp ecx, 4
je 0x100022f5
cmp ecx, 6
je 0x100022f5
cmp ecx, 5
jne 0x100022c7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x268]
push 0x100091e8
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.10004633
add esp, 0x14
mov dword [ebp - 0x38], eax
jmp 0x1000230e
cmp ecx, 7
jne 0x1000230e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x268]
push 0x100091e8
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.10004633
add esp, 0x14
mov dword [ebp - 0x2c], eax
jmp 0x1000230e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x268]
push 0x100091e8
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x3c]
jl 0x1000217f
xor edi, edi
push dword [ebp - 0x30]
call fcn.1000758e
pop ecx
lea eax, [ebp - 0x5d8]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100020be
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], edi
je 0x100023b8
push 1
push edi
push 0x10009614
mov ecx, esi
call fcn.1000139b
mov eax, dword [ebp - 0x18]
cmp byte [esi + 0x14], 0
cdq
lea edi, [esi + 0x14]
mov dword [esi + 0x768], eax
mov dword [esi + 0x76c], edx
je 0x100023b8
push 0x14
lea eax, [ebp - 0x64]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
push dword [esi + 0x76c]
push dword [esi + 0x768]
push str._I64d
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x64]
push edi
push eax
push 0x100091e4
push str.CKTime
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.100025da
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret