Function at 0x10001be2
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x100063c8
call fcn.100060f0
sub esp, 0x928
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x63c], edi
jne 0x10001c08
xor eax, eax
jmp 0x10001f5d
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], edi
call fcn.100020f9
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 0x10001f4e
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 0x100080a8
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 0x10001ec1
mov eax, dword [ebp - 0x58]
lea ecx, [esi + 0x660]
cdq
cmp edx, dword [ecx + 4]
jl 0x10001ec1
jg 0x10001cbe
cmp eax, dword [ecx]
jbe 0x10001ec1
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x18]
jle 0x10001cc9
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.100031d8
mov eax, dword [ebp - 0x34]
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x10001ec1
push 1
push 0x100081b0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x50]
push eax
call fcn.100021c8
cmp eax, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jle 0x10001eb8
mov edi, 0x12c
lea eax, [ebp - 0x268]
push edi
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10002387
lea eax, [ebp - 0x268]
push 0x100081ac
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10001da3
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.1000134a
and dword [ebp - 0x14], 0
jmp 0x10001ea7
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp ecx, eax
jne 0x10001dd9
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 0x10001ea4
cmp ecx, 1
jne 0x10001e00
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 0x10001dca
cmp ecx, 2
jne 0x10001e25
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 0x10001dca
cmp ecx, 4
je 0x10001e8b
cmp ecx, 6
je 0x10001e8b
cmp ecx, 5
jne 0x10001e5d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x268]
push 0x10008190
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.100034da
add esp, 0x14
mov dword [ebp - 0x38], eax
jmp 0x10001ea4
cmp ecx, 7
jne 0x10001ea4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x268]
push 0x10008190
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.100034da
add esp, 0x14
mov dword [ebp - 0x2c], eax
jmp 0x10001ea4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x268]
push 0x10008190
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 0x10001d15
xor edi, edi
push dword [ebp - 0x30]
call fcn.100060b7
pop ecx
lea eax, [ebp - 0x5d8]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001c54
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], edi
je 0x10001f4e
push 1
push edi
push 0x10008484
mov ecx, esi
call fcn.1000134a
mov eax, dword [ebp - 0x18]
cmp byte [esi + 0x14], 0
cdq
lea edi, [esi + 0x14]
mov dword [esi + 0x660], eax
mov dword [esi + 0x664], edx
je 0x10001f4e
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 + 0x664]
push dword [esi + 0x660]
push str._I64d
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x64]
push edi
push eax
push 0x1000818c
push str.CKTime
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1000212c
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret