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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e1bc
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 0x40f508
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 0x40f508
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 0x40f628
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xa0]
push eax
call fcn.00401b70
call fcn.0040fd70
mov esi, 0x10
add esp, 0x1c
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x1c], esi
jb 0x40f5a0
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 0x40f5bd
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 0x40f5da
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 0x40f5fa
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 0x40f61d
mov edx, dword [ebp + 0xc]
push edx
call fcn.004185a3
add esp, 4
mov eax, dword [ebp - 0x370]
jmp 0x40fd42
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 0x40f691
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 0x40f6ce
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 0x40f6e7
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 0x40f7d0
cmp dword [ebp - 0xa8], esi
jb 0x40f71b
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 0x40f745
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 0x40f767
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 0x40f784
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 0x40f7a4
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 0x40fd40
mov edx, dword [ebp + 0xc]
push edx
jmp 0x40fd38
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 0x40f800
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 0x40f887
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 0x40f88d
mov byte [ebp - 0x361], bl
test byte [ebp - 0x368], 2
je 0x40f8ca
and dword [ebp - 0x368], 0xfffffffd
cmp dword [ebp - 0xe0], 8
jb 0x40f8b5
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 0x40f8f3
and dword [ebp - 0x368], 0xfffffffe
cmp dword [ebp - 0x54], 8
jb 0x40f8f3
mov eax, dword [ebp - 0x68]
push eax
call fcn.004185a3
add esp, 4
cmp byte [ebp - 0x361], bl
je 0x40fc14
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 0x40f920
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 0x40f966
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 0x40f9ba
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 0x40fa01
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 0x40fa52
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.0040f430
add esp, 0x24
cmp eax, 1
jne 0x40fbd4
cmp dword [ebp - 0xc4], esi
jb 0x40faa4
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 0x40facd
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 0x40fb0b
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 0x40fb23
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 0x40fb4d
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 0x40fb6a
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 0x40fb87
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 0x40fba7
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 0x40fbca
mov eax, dword [ebp + 0xc]
push eax
call fcn.004185a3
add esp, 4
mov eax, 1
jmp 0x40fd42
cmp dword [ebp - 0xc4], esi
jb 0x40fbeb
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 0x40fc14
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 0x40fc5a
mov esi, edi
cmp esi, dword [ebp - 0x37c]
je 0x40fc51
cmp dword [esi + 0x14], 8
jb 0x40fc3d
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 0x40fc24
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 0x40f7d0
cmp dword [ebp - 0xa8], 8
jb 0x40fca0
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 0x40fccf
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 0x40fcf1
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 0x40fd0e
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 0x40fd2e
mov eax, dword [ebp - 0xa0]
push eax
call fcn.004185a3
add esp, 4
cmp dword [ebp + 0x20], 0x10
jb 0x40fd40
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