Function at 0x40a4d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x5c0]
push eax
mov dword [ebp - 0x5d8], esi
call fcn.00452c50
add esp, 8
or ebx, 0xffffffff
test esi, esi
je 0x40aaba
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00462e00
mov esi, dword [ebp - 0x5c0]
lea ecx, [ebp - 0x108]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40a559
mov al, byte [ecx + esi]
test al, al
je 0x40a559
mov byte [ecx], al
inc ecx
dec edx
jne 0x40a540
jmp 0x40a55d
test edx, edx
jne 0x40a55e
dec ecx
push 0x491810
push 0x104
lea eax, [ebp - 0x108]
push eax
mov byte [ecx], 0
call fcn.004086c0
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, dword [0x4adbb8]
mov esi, eax
mov ecx, 0x4adbb8
mov dword [ebp - 0x5b8], esi
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c4], eax
cmp esi, 0xffffffff
je 0x40aa80
push 0
lea ecx, [ebp - 0x5e8]
call fcn.0042daf0
lea edi, [ebp - 0x584]
shr edi, 0x10
mov dword [ebp - 0x5bc], edi
nop
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x5b4], esi
lea eax, [ebp - 0x584]
test edi, edi
jne 0x40a87a
movzx edi, ax
push 0
push edi
call fcn.00403750
add esp, 8
test eax, eax
je 0x40a619
push edi
push eax
lea ecx, [ebp - 0x5b4]
call fcn.00405c50
mov esi, dword [ebp - 0x5b4]
mov edi, dword [ebp - 0x5bc]
mov ecx, dword [0x4af2c0]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xf
idiv ecx
cmp edx, 7
jne 0x40a640
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0x491814
push esi
call fcn.0046236e
add esp, 8
test eax, eax
je 0x40a8fa
push 0x491818
push esi
call fcn.0046236e
add esp, 8
test eax, eax
je 0x40a8fa
push 0
lea ecx, [ebp - 0x5d4]
call fcn.0042daf0
mov eax, 1
sub eax, dword [esi - 4]
or eax, dword [esi - 8]
jge 0x40a699
push 0
lea ecx, [ebp - 0x5b4]
call fcn.00407d40
mov esi, dword [ebp - 0x5b4]
push esi
lea ecx, [ebp - 0x608]
call fcn.0042dab0
lea eax, [ebp - 0x608]
push eax
push str.name
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x608]
call fcn.0042dd80
push dword [ebp - 0x5a8]
push dword [ebp - 0x5ac]
call fcn.004043a0
add esp, 8
lea ecx, [ebp - 0x5f8]
push eax
call fcn.0042da70
lea eax, [ebp - 0x5f8]
push eax
push str.creationTime
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x5f8]
call fcn.0042dd80
push dword [ebp - 0x5a0]
push dword [ebp - 0x5a4]
call fcn.004043a0
add esp, 8
lea ecx, [ebp - 0x628]
push eax
call fcn.0042da70
lea eax, [ebp - 0x628]
push eax
push str.lastAccessTime
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x628]
call fcn.0042dd80
push dword [ebp - 0x598]
push dword [ebp - 0x59c]
call fcn.004043a0
add esp, 8
lea ecx, [ebp - 0x648]
push eax
call fcn.0042da70
lea eax, [ebp - 0x648]
push eax
push str.lastWriteTime
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x648]
call fcn.0042dd80
push dword [ebp - 0x590]
lea ecx, [ebp - 0x668]
call fcn.0042da70
lea eax, [ebp - 0x668]
push eax
push str.fileSize
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x668]
call fcn.0042dd80
mov eax, dword [ebp - 0x5c0]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x40a809
push 0
lea ecx, [ebp - 0x5c0]
call fcn.00407d40
mov eax, dword [ebp - 0x5c0]
push eax
lea ecx, [ebp - 0x618]
call fcn.0042dab0
lea eax, [ebp - 0x618]
push eax
push str.parentFolderName
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x618]
call fcn.0042dd80
test byte [ebp - 0x5b0], 0x10
je 0x40a8a7
push 1
lea ecx, [ebp - 0x658]
call fcn.0042dbf0
lea eax, [ebp - 0x658]
push eax
push str.isFolder
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x658]
jmp 0x40a8d8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a880
sub eax, edx
push eax
lea eax, [ebp - 0x584]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.00408620
mov esi, dword [ebp - 0x5b4]
jmp 0x40a61f
push 0
lea ecx, [ebp - 0x638]
call fcn.0042dbf0
lea eax, [ebp - 0x638]
push eax
push str.isFolder
lea ecx, [ebp - 0x5d4]
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x638]
call fcn.0042dd80
lea eax, [ebp - 0x5d4]
push eax
lea ecx, [ebp - 0x5e8]
call fcn.0042e5f0
lea ecx, [ebp - 0x5d4]
call fcn.0042dd80
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a913
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x5b8]
lea eax, [ebp - 0x5b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a5d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x470]
call fcn.0042fdd0
sub esp, 0x18
mov eax, esp
lea ecx, [ebp - 0x5e8]
push ecx
push eax
lea ecx, [ebp - 0x470]
call fcn.00433150
lea eax, [ebp - 0x5b8]
push eax
call fcn.00452d60
add esp, 0x1c
lea ecx, [ebp - 0x5c4]
push eax
call fcn.00402970
mov edx, dword [ebp - 0x5b8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a993
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040d030
test al, al
jne 0x40aa28
xor ecx, ecx
mov dword [ebp - 0x5b4], ecx
lea esi, [ebp - 0x450]
mov edi, edi
xor eax, eax
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5b8], esi
mov edi, edi
mov esi, dword [0x4af2c0]
lea ebx, [eax + 1]
mov eax, esi
cdq
inc ecx
idiv ecx
mov eax, esi
mov ecx, esi
sub ecx, dword [ebp - 0x5b4]
mov esi, dword [ebp - 0x5b8]
mov edi, edx
cdq
imul edi, ecx
idiv ebx
add edi, eax
sub edi, dword [ebp - 0x5bc]
push edi
push 0x490f88
call fcn.004628cc
mov ecx, dword [ebp - 0x5b4]
mov eax, ebx
add esi, 4
add esp, 8
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5b8], esi
cmp eax, 0xa
jl 0x40a9c0
inc ecx
mov dword [ebp - 0x5b4], ecx
cmp ecx, 0x15
jl 0x40a9b0
or ebx, 0xffffffff
cmp dword [ebp - 0x458], 0x10
mov dword [ebp - method.Json::FastWriter.virtual_0], vtable.Json::FastWriter.0
jb 0x40aa49
push dword [ebp - 0x46c]
call fcn.00460a34
add esp, 4
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x458], 0xf
mov dword [ebp - 0x45c], 0
mov byte [ebp - 0x46c], 0
call fcn.0042ff20
lea ecx, [ebp - 0x5e8]
call fcn.0042dd80
mov eax, dword [ebp - 0x5c4]
push ecx
lea edi, [eax - 0x10]
mov esi, esp
push edi
call fcn.00403ee0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00452960
mov ecx, dword [ebp - 0x5d8]
add esp, 4
mov dword [ecx], eax
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aaba
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5c0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40aad7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00461234
mov esp, ebp
pop ebp
ret 0xc