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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x28
call fcn.0040a7ca
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
add ebx, 4
push ebx
push 8
call fcn.0040a7ca
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 8
call fcn.0040a7ca
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 8
call fcn.0040a7ca
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 0x14
push ebx
push 0x210
call fcn.0040a7ca
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4282e7
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
add ebx, 4
push ebx
push 0x24
call fcn.0040a7ca
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4282ef
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
jg 0x4017d6
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 4
mov ebx, 0xc8
call fcn.0040b3f0
add esp, 0x34
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], 0
jne 0x401c0f
mov ebx, dword [0x44bbdf]
call fcn.00401646
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40181c
mov ebx, dword [0x44bbdf]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 4]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401830
mov eax, 0x4282b0
jmp 0x401fd6
mov eax, dword [ebp - 0xc]
push eax
push 0x250
call fcn.0040a7ca
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x208
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x1c
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
nop
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040ac80
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4019d9
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4019d7
imul eax, dword [edi]
jmp 0x4019cc
mov ecx, eax
cmp ecx, 0x208
jle 0x4019e6
mov ecx, 0x208
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x208
push ebx
push edi
push 1
mov eax, 2
call fcn.0040ac80
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401a24
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401a22
imul eax, dword [edi]
jmp 0x401a17
mov ecx, eax
cmp ecx, 0x1c
jle 0x401a2e
mov ecx, 0x1c
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x1c
call fcn.0040a7d0
add esp, 4
pop eax
test eax, eax
je 0x401b3d
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
push dword [ebp + 0x10]
push 0x80000301
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 2
mov ebx, 0xc4
call fcn.0040b410
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401b38
mov ebx, dword [ebp - 0xc]
add ebx, 0x20
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x1c]
call fcn.0040204a
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
nop
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x401b38
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4282df]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x4282df]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040113f
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0x910
call fcn.0040b430
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401b15
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401b33
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a7ca
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401fd6
jmp 0x401830
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
nop
cmp dword [ebp - 4], 0
jle 0x401c05
push 0x44bbdf
push 4
mov eax, 2
call fcn.0040ac80
add esp, 8
mov eax, dword [ebp - 4]
dec eax
jl 0x401c03
mov dword [ebp - 0x1c], eax
mov ebx, dword [0x44bbdf]
mov dword [ebp - 0x24], ebx
call fcn.0040165f
mov dword [ebp - 0x28], ecx
sub ecx, dword [ebp - 0x1c]
jle 0x401c03
cmp ecx, 1
jle 0x401b99
mov ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x401c03
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edi], 1
add edi, 4
mov eax, ecx
sub eax, dword [ebp - 0x20]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x401bc7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x24]
add edi, 8
mov eax, dword [ebp - 0x1c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x20]
shl eax, 2
mov esi, edi
add esi, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
sub edi, dword [ebp - 0x24]
push edi
push dword [ebp - 0x24]
call fcn.0040a7dc
add esp, 8
mov dword [0x44bbdf], eax
mov eax, dword [ebp - 0x20]
jmp 0x401c05
xor eax, eax
mov eax, 0x4282b0
jmp 0x401fd6
mov eax, dword [ebp - 0xc]
push eax
push 0x250
call fcn.0040a7ca
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x208
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x1c
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x401ce5
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop
nop
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040ac80
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401dc2
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401dc0
imul eax, dword [edi]
jmp 0x401db5
mov ecx, eax
cmp ecx, 0x208
jle 0x401dcf
mov ecx, 0x208
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x208
push ebx
push edi
push 1
mov eax, 2
call fcn.0040ac80
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401e0d
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401e0b
imul eax, dword [edi]
jmp 0x401e00
mov ecx, eax
cmp ecx, 0x1c
jle 0x401e17
mov ecx, 0x1c
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x1c
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401e43
mov eax, 0x4282b0
jmp 0x401fd6
push 0x44bbdf
push 4
mov eax, 2
call fcn.0040ac80
add esp, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ebx, dword [0x44bbdf]
mov dword [ebp - 0x20], ebx
call fcn.0040165f
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x20]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x401e8a
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x20]
call fcn.0040a7dc
add esp, 8
mov dword [0x44bbdf], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x24]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
push dword [ebp + 0x10]
push 0x80000301
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 2
mov ebx, 0xc4
call fcn.0040b410
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401fa4
mov ebx, dword [ebp - 0xc]
add ebx, 0x20
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x1c]
call fcn.0040204a
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
nop
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x401fa4
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4282df]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x4282df]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040113f
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0x910
call fcn.0040b430
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401f81
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401f9f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040a7ca
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401fd6
push 1
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0040167f
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401fce
push ebx
call fcn.0040a7d0
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x401fd6
push eax
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040a7d0
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040a7d0
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040a7d0
add esp, 4
pop ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040a7d0
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040a7d0
add esp, 4
pop ebx
call fcn.0040a7d0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402043
push ebx
call fcn.0040a7d0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10