Function at 0x401292
Capabilities:
Enumerate files on windows

Disassembly:
push 0x290
mov eax, 0x40f728
call fcn.0040f5c7
mov esi, ecx
mov dword [ebp - 0x280], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], eax
cmp byte [ebp + 0x10], bl
mov ecx, str._sharedMicrosoft.WindowsDesktop.App
mov dword [ebp - 4], eax
mov eax, str._sharedMicrosoft.NETCore.App
cmove ecx, eax
add edx, edx
sub edx, ecx
add edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4012f0
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
or ecx, 0xffffffff
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], ecx
cmp edi, ecx
je 0x40162f
push 0x2e
pop esi
mov dword [ebp - 0x284], 1
lea eax, [ebp - 0x234]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x234]
add eax, 0xffffffcf
cmp ax, 8
ja 0x4014ad
test dword [ebp - 0x260], 0x10
je 0x4014ad
push 0xa
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00406816
add esp, 0xc
cmp eax, 6
jne 0x4014ad
mov ecx, dword [ebp - 0x264]
mov ax, word [ecx]
add ecx, 2
mov dword [ebp - 0x264], ecx
cmp ax, si
jne 0x4014ad
movzx eax, word [ecx]
push 0x30
pop edx
cmp ax, dx
jb 0x4014ad
push 0x39
pop edx
cmp ax, dx
ja 0x4014ad
push 0xa
lea eax, [ebp - 0x264]
push eax
push ecx
call fcn.00406816
add esp, 0xc
mov esi, eax
push 0x2e
test esi, esi
js 0x4014ac
mov edx, dword [ebp - 0x264]
pop eax
mov cx, word [edx]
add edx, 2
mov dword [ebp - 0x264], edx
cmp cx, ax
jne 0x4014aa
movzx eax, word [edx]
push 0x30
pop ecx
cmp ax, cx
jb 0x4014aa
push 0x39
pop ecx
cmp ax, cx
ja 0x4014aa
push 0xa
lea eax, [ebp - 0x264]
push eax
push edx
call fcn.00406816
add esp, 0xc
cmp eax, 2
jl 0x4014aa
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x29c], esi
cmp word [eax], 0x2d
jne 0x401451
cmp word [eax + 2], 0x70
jne 0x401451
mov byte [ebp - 0x294], 1
jmp 0x401459
xor eax, eax
mov byte [ebp - 0x294], al
lea eax, [ebp - 0x234]
push eax
call fcn.00406a5b
pop ecx
mov dword [ebp - 0x290], eax
cmp ebx, dword [ebp - 0x274]
je 0x401491
mov edi, ebx
lea esi, [ebp - 0x29c]
add ebx, 0x10
mov dword [ebp - 0x278], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x26c]
jmp 0x4014aa
lea eax, [ebp - 0x29c]
push eax
push ebx
lea ecx, [ebp - 0x27c]
call fcn.00402b9e
mov ebx, dword [ebp - 0x278]
push 0x2e
pop esi
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401333
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x27c]
sub ebx, esi
sar ebx, 4
test ebx, ebx
je 0x40162f
or edx, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov edi, edx
mov dword [ebp - 0x264], edi
mov eax, edx
test ebx, ebx
jle 0x401628
mov edi, esi
cmp byte [ebp + 0x10], 0
mov ecx, dword [edi]
je 0x401511
mov edx, dword [ebp - 0x270]
push 0xffffffffffffffff
cmp ecx, dword [edx]
pop edx
je 0x40152e
cmp ecx, eax
cmovae ecx, eax
add edi, 0x10
mov eax, ecx
mov ecx, dword [ebp - 0x26c]
inc ecx
mov dword [ebp - 0x26c], ecx
cmp ecx, ebx
jl 0x4014fc
mov ecx, eax
xor eax, eax
mov edi, esi
cmp dword [edi], ecx
jne 0x401572
cmp byte [ebp + 0x10], 0
mov edx, dword [edi + 4]
je 0x401554
mov esi, dword [ebp - 0x270]
cmp edx, dword [esi + 4]
mov esi, dword [ebp - 0x27c]
je 0x401619
cmp edx, dword [ebp - 0x264]
jle 0x40156c
mov dword [ebp - 0x264], edx
mov edx, eax
mov dword [ebp - 0x268], edx
jmp 0x401572
mov edx, dword [ebp - 0x268]
inc eax
add edi, 0x10
cmp eax, ebx
jl 0x401532
mov edi, dword [ebp - 0x264]
mov eax, edx
add eax, eax
cmp byte [esi + eax*8 + 8], 0
je 0x4015b3
xor eax, eax
mov edx, eax
test ebx, ebx
jle 0x4015ad
lea eax, [esi + 8]
cmp dword [eax - 8], ecx
jne 0x4015a5
cmp dword [eax - 4], edi
jne 0x4015a5
cmp byte [eax], 0
je 0x4015b3
inc edx
add eax, 0x10
cmp edx, ebx
jl 0x401596
mov edx, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x280]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x288]
jne 0x4015bc
shl edx, 4
sub ecx, edi
sar ecx, 1
add esi, edx
mov edx, dword [ebp - 0x280]
push ecx
push dword [esi + 0xc]
lea eax, [ecx - 1]
mov ecx, dword [ebp - 0x28c]
push eax
call fcn.004010ee
mov edi, dword [ebp - 0x270]
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ebx, ebx
jle 0x401637
mov esi, dword [ebp - 0x27c]
add esi, 0xc
push dword [esi]
call fcn.00406adf
lea esi, [esi + 0x10]
pop ecx
sub ebx, 1
jne 0x401607
jmp 0x401637
mov edi, edx
mov edx, eax
mov dword [ebp - 0x268], edx
jmp 0x401580
mov ecx, edx
jmp 0x401580
xor eax, eax
mov byte [ebp - 0x284], al
lea ecx, [ebp - 0x27c]
call fcn.004025f3
mov al, byte [ebp - 0x284]
call fcn.0040f585
ret