Function at 0x40e980
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e30c
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x4376f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x370], esi
mov dword [ebp - 0x368], ebx
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp + 0xc]
mov edi, 0xf
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
call fcn.00401b70
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 5
cmp byte [ebp + 0x28], bl
je 0x40ea58
push str.path
push esi
call fcn.00405630
lea esi, [ebp - 0x68]
mov ecx, eax
call fcn.004051a0
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00407670
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0x10
jb 0x40ea58
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004185a3
add esp, 4
mov edx, dword [ebp - 0x370]
push str.forceNativeCheck
push edx
call fcn.00405630
lea eax, [ebp - 0x30]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x36c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0xa0]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
lea esi, [ebp - 0x84]
mov byte [ecx], bl
call fcn.00401b70
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.00415180
add esp, 0x20
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x36c], esp
mov byte [ecx], bl
cmp al, bl
jne 0x40eb78
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xa0]
push eax
call fcn.00401b70
call fcn.0040f2c0
mov esi, 0x10
add esp, 0x1c
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x1c], esi
jb 0x40eaf0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x70], esi
jb 0x40eb0d
mov edx, dword [ebp - 0x84]
push edx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x38], esi
jb 0x40eb2a
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x8c], esi
jb 0x40eb4a
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
cmp dword [ebp + 0x20], esi
jb 0x40eb6d
mov edx, dword [ebp + 0xc]
push edx
call fcn.004185a3
add esp, 4
mov eax, dword [ebp - 0x370]
jmp 0x40f292
push 4
push str..
call fcn.00401980
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x384], esp
mov byte [ebp - 4], 7
push 7
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x432818
mov byte [ecx], bl
call fcn.00401980
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00415380
add esp, 0x38
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00401750
mov edi, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], edi
jb 0x40ebe1
mov eax, dword [ebp - 0x68]
push eax
call fcn.004185a3
add esp, 4
push 0x432858
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004121f0
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
mov byte [ebp - 4], 9
call fcn.00415490
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x54], edi
jb 0x40ec1e
mov edx, dword [ebp - 0x68]
push edx
call fcn.004185a3
add esp, 4
mov eax, dword [ebp - 0xbc]
mov esi, 8
cmp dword [ebp - 0xa8], esi
jae 0x40ec37
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x360]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x36c], eax
cmp eax, 0xffffffff
jne 0x40ed20
cmp dword [ebp - 0xa8], esi
jb 0x40ec6b
mov edx, dword [ebp - 0xbc]
push edx
call fcn.004185a3
add esp, 4
xor eax, eax
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], ebx
mov word [ebp - 0xbc], ax
cmp dword [ebp - 0x1c], edi
jb 0x40ec95
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004185a3
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x70], edi
jb 0x40ecb7
mov edx, dword [ebp - 0x84]
push edx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x38], edi
jb 0x40ecd4
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x8c], edi
jb 0x40ecf4
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
cmp dword [ebp + 0x20], edi
jb 0x40f290
mov edx, dword [ebp + 0xc]
push edx
jmp 0x40f288
mov dword [ebp - 0x380], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x378], ebx
mov byte [ebp - 4], 0xc
xor eax, eax
mov word [ebp - 0x68], ax
mov esi, 7
lea eax, [ebp - 0x334]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ed50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x334]
lea ecx, [ebp - 0x68]
call fcn.0040a370
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xd
or dword [ebp - 0x368], 1
push ecx
lea eax, [ebp - 0x30]
call fcn.00415490
add esp, 4
mov dword [ebp - 4], 0xe
or dword [ebp - 0x368], 2
push eax
lea edx, [ebp - 0x380]
lea ecx, [ebp - 0x68]
call fcn.0040a950
add esp, 4
cmp al, bl
je 0x40edd7
mov ecx, dword [ebp - 0x37c]
sub ecx, dword [ebp - 0x380]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 0x361], 1
jne 0x40eddd
mov byte [ebp - 0x361], bl
test byte [ebp - 0x368], 2
je 0x40ee1a
and dword [ebp - 0x368], 0xfffffffd
cmp dword [ebp - 0xe0], 8
jb 0x40ee05
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.004185a3
add esp, 4
xor edx, edx
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], dx
mov dword [ebp - 4], 0xc
test byte [ebp - 0x368], 1
je 0x40ee43
and dword [ebp - 0x368], 0xfffffffe
cmp dword [ebp - 0x54], 8
jb 0x40ee43
mov eax, dword [ebp - 0x68]
push eax
call fcn.004185a3
add esp, 4
cmp byte [ebp - 0x361], bl
je 0x40f164
mov edi, 7
xor ecx, ecx
lea eax, [ebp - 0x334]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ee70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x334]
lea ecx, [ebp - 0x68]
call fcn.0040a370
lea eax, [ebp - 0x68]
lea esi, [ebp - 0xf4]
mov byte [ebp - 4], 0xf
call fcn.00415540
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x54], 8
jb 0x40eeb6
mov edx, dword [ebp - 0x68]
push edx
call fcn.004185a3
add esp, 4
mov ecx, dword [ebp - 0xe4]
dec ecx
xor eax, eax
push ecx
xor ecx, ecx
lea esi, [ebp - 0x110]
lea edx, [ebp - 0xf4]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
call fcn.0040a1f0
mov edi, eax
lea esi, [ebp - 0xf4]
mov byte [ebp - 4], 0x12
call fcn.00401750
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xfc], 0x10
jb 0x40ef0a
mov edx, dword [ebp - 0x110]
push edx
call fcn.004185a3
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4c]
mov edi, 0xf
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
call fcn.00401b70
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0xc8], ebx
je 0x40ef51
push 1
mov eax, 0x4327e4
lea ecx, [ebp - 0xd8]
call fcn.00407760
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xf4]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00412360
add esp, 0xc
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0xd8]
mov byte [ebp - 4], 0x14
call fcn.00407670
mov esi, 0x10
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0xfc], esi
jb 0x40efa2
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.004185a3
add esp, 4
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x384], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0xd8]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00401b70
mov eax, dword [ebp - 0x370]
push eax
call fcn.0040e980
add esp, 0x24
cmp eax, 1
jne 0x40f124
cmp dword [ebp - 0xc4], esi
jb 0x40eff4
mov ecx, dword [ebp - 0xd8]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
cmp dword [ebp - 0xe0], esi
jb 0x40f01d
mov edx, dword [ebp - 0xf4]
push edx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 0xf4], bl
cmp dword [ebp - 0x380], ebx
je 0x40f05b
mov esi, dword [ebp - 0x380]
mov edi, dword [ebp - 0x37c]
mov eax, esi
call fcn.004112f0
push esi
call fcn.004185a3
mov edi, 0xf
add esp, 4
lea esi, [edi + 1]
cmp dword [ebp - 0xa8], 8
jb 0x40f073
mov eax, dword [ebp - 0xbc]
push eax
call fcn.004185a3
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], ebx
mov word [ebp - 0xbc], cx
cmp dword [ebp - 0x1c], esi
jb 0x40f09d
mov edx, dword [ebp - 0x30]
push edx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x70], esi
jb 0x40f0ba
mov eax, dword [ebp - 0x84]
push eax
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x38], esi
jb 0x40f0d7
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x8c], esi
jb 0x40f0f7
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
cmp dword [ebp + 0x20], esi
jb 0x40f11a
mov eax, dword [ebp + 0xc]
push eax
call fcn.004185a3
add esp, 4
mov eax, 1
jmp 0x40f292
cmp dword [ebp - 0xc4], esi
jb 0x40f13b
mov ecx, dword [ebp - 0xd8]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
cmp dword [ebp - 0xe0], esi
jb 0x40f164
mov edx, dword [ebp - 0xf4]
push edx
call fcn.004185a3
add esp, 4
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x380]
cmp edi, ebx
je 0x40f1aa
mov esi, edi
cmp esi, dword [ebp - 0x37c]
je 0x40f1a1
cmp dword [esi + 0x14], 8
jb 0x40f18d
mov eax, dword [esi]
push eax
call fcn.004185a3
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
add esi, 0x1c
jmp 0x40f174
push edi
call fcn.004185a3
add esp, 4
mov eax, dword [ebp - 0x36c]
lea edx, [ebp - 0x360]
push edx
push eax
mov dword [ebp - 0x380], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x378], ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ed20
cmp dword [ebp - 0xa8], 8
jb 0x40f1f0
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.004185a3
add esp, 4
xor edx, edx
mov esi, 0x10
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], ebx
mov word [ebp - 0xbc], dx
cmp dword [ebp - 0x1c], esi
jb 0x40f21f
mov eax, dword [ebp - 0x30]
push eax
call fcn.004185a3
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x70], esi
jb 0x40f241
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x38], esi
jb 0x40f25e
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004185a3
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x8c], esi
jb 0x40f27e
mov eax, dword [ebp - 0xa0]
push eax
call fcn.004185a3
add esp, 4
cmp dword [ebp + 0x20], 0x10
jb 0x40f290
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004185a3
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041836d
mov esp, ebp
pop ebp
ret