Function at 0x40f010
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d77b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x457b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x494], eax
mov eax, dword [ebp + 0x14]
push str._s_
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x210]
push 0x200
push eax
mov dword [ebp - 0x484], ebx
call fcn.00410010
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00410750
add esp, 0x18
cmp dword [ebp - 0x214], 7
lea ecx, [ebp - 0x478]
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x48c], eax
cmp eax, 0xffffffff
je 0x40f34d
nop
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.00410890
add esp, 8
cmp byte [ebp - 0x498], 0
mov byte [ebp - 4], 1
jne 0x40f14c
push ebx
push str.ERROR:_file_folder_name_containing_invalid_UTF_16_found_in_folder__s
push str.filesystem
push 0
call fcn.0040d410
add esp, 0x10
mov byte [ebp - 4], 0
cmp byte [ebp - 0x498], 0
je 0x40f2e5
mov ecx, dword [ebp - 0x49c]
cmp ecx, 0xf
jbe 0x40f2e5
mov edx, dword [ebp - 0x4b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f13d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3a5
push ecx
push edx
call fcn.00411509
add esp, 8
jmp 0x40f2e5
cmp dword [ebp - 0x49c], 0xf
lea eax, [ebp - 0x4b0]
mov ebx, 0xe57a42bd
mov edi, 0xd6bf94d5
cmova eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4d0], eax
mov eax, dword [ebp - 0x474]
mul ebx
mov eax, dword [ebp - 0x474]
mov esi, edx
mul edi
push dword [ebp - 0x490]
mov edi, eax
mov dword [ebp - 0x488], edx
mov eax, dword [ebp - 0x470]
mul ebx
push dword [ebp + 0x10]
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x470]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0x47c], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x488]
mov edi, 0xd6bf94d5
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x47c]
adc eax, eax
add ecx, ebx
mov ebx, 0xe57a42bd
adc edx, eax
mov eax, dword [ebp - 0x464]
shrd ecx, edx, 0x17
shr edx, 0x17
add ecx, 0x49ef6f00
mov dword [ebp - 0x4c8], ecx
adc edx, 0xfffffffd
mov dword [ebp - 0x47c], edx
mov dword [ebp - 0x4c4], edx
mul ebx
mov eax, dword [ebp - 0x464]
mov esi, edx
mul edi
mov edi, eax
mov dword [ebp - 0x47c], edx
mov eax, dword [ebp - 0x460]
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x460]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0x488], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 0x47c]
adc ecx, 0
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0x488]
adc eax, eax
add ecx, ebx
adc edx, eax
mov eax, dword [ebp - 0x478]
shrd ecx, edx, 0x17
shr edx, 0x17
add ecx, 0x49ef6f00
mov dword [ebp - 0x4c0], ecx
adc edx, 0xfffffffd
shr eax, 4
and eax, 1
mov dword [ebp - 0x47c], edx
push eax
mov dword [ebp - 0x4bc], edx
lea eax, [ebp - 0x4d0]
push eax
call dword [ebp - 0x494]
add esp, 0x10
test eax, eax
jne 0x40f302
mov byte [ebp - 4], al
cmp byte [ebp - 0x498], al
je 0x40f2df
mov edx, dword [ebp - 0x49c]
cmp edx, 0xf
jbe 0x40f2df
mov eax, dword [ebp - 0x4b0]
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x40f2d5
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x40f3a5
push edx
push eax
call fcn.00411509
add esp, 8
mov ebx, dword [ebp - 0x484]
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f0c0
jmp 0x40f341
cmp byte [ebp - 0x498], 0
je 0x40f341
mov ecx, dword [ebp - 0x49c]
cmp ecx, 0xf
jbe 0x40f341
mov edx, dword [ebp - 0x4b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f337
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3a5
push ecx
push edx
call fcn.00411509
add esp, 8
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x214]
cmp ecx, 7
jbe 0x40f389
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f37f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3aa
push ecx
push edx
call fcn.00411509
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411457
mov esp, ebp
pop ebp
ret
call fcn.004185a1
call fcn.004185a1
int3