Function at 0x4068e0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce9e6
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x50b624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x4d0], esi
mov dword [ebp - 0x484], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x484], 1
call fcn.0049be60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
js 0x406c07
xor eax, eax
mov dword [ebp - 0x48c], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x488], 7
mov word [ebp - 0x49c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4069b2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x49c]
call fcn.0040a7f0
push 0x4db904
lea eax, [ebp - 0x49c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402df0
add esp, 0xc
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 3
call fcn.00405200
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x480]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x406bf2
nop
test byte [ebp - 0x480], 6
jne 0x406bd5
mov ecx, 0x4db90c
lea eax, [ebp - 0x454]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406a6e
test dx, dx
je 0x406a6a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406a6e
add eax, 4
add ecx, 4
test dx, dx
jne 0x406a48
xor eax, eax
jmp 0x406a73
sbb eax, eax
or eax, 1
test eax, eax
je 0x406bd5
mov ecx, 0x4db910
lea eax, [ebp - 0x454]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406aac
test dx, dx
je 0x406aa8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406aac
add eax, 4
add ecx, 4
test dx, dx
jne 0x406a86
xor eax, eax
jmp 0x406ab1
sbb eax, eax
or eax, 1
test eax, eax
je 0x406bd5
xor eax, eax
mov dword [ebp - 0x4bc], 0
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x4b8], 7
mov word [ebp - 0x4cc], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ae0
sub ecx, edx
lea eax, [ebp - 0x454]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0040a7f0
xor eax, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 7
lea edx, [ecx + 2]
mov word [ebp - 0x4b4], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040a7f0
lea eax, [ebp - 0x4b4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x500]
call fcn.0043bc20
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x4e8]
push ecx
mov ecx, eax
call fcn.00443310
mov ecx, eax
mov eax, dword [esi + 4]
mov byte [ebp - 4], 7
push ecx
cmp dword [esi + 8], eax
je 0x406b9d
mov ecx, eax
call fcn.0043bc00
add dword [esi + 4], 0x18
jmp 0x406ba5
push eax
mov ecx, esi
call fcn.00403190
lea ecx, [ebp - 0x4e8]
call fcn.00405200
lea ecx, [ebp - 0x500]
call fcn.00405200
lea ecx, [ebp - 0x4b4]
call fcn.00405200
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.00405200
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406a30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00405200
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049be60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406ead
xor eax, eax
mov dword [ebp - 0x4bc], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4b8], 7
mov word [ebp - 0x4cc], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0040a7f0
push 0x4db904
lea eax, [ebp - 0x4cc]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402df0
add esp, 0xc
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 0xa
call fcn.00405200
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x480]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x406ea2
nop dword [eax]
test byte [ebp - 0x480], 6
jne 0x406e85
mov ecx, 0x4db90c
lea eax, [ebp - 0x454]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406d1e
test dx, dx
je 0x406d1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406d1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x406cf8
xor eax, eax
jmp 0x406d23
sbb eax, eax
or eax, 1
test eax, eax
je 0x406e85
mov eax, 0x4db910
lea ecx, [ebp - 0x454]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x406d5c
test dx, dx
je 0x406d58
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x406d5c
add ecx, 4
add eax, 4
test dx, dx
jne 0x406d36
xor eax, eax
jmp 0x406d61
sbb eax, eax
or eax, 1
test eax, eax
je 0x406e85
xor eax, eax
mov dword [ebp - 0x48c], 0
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x488], 7
mov word [ebp - 0x49c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d90
sub ecx, edx
lea eax, [ebp - 0x454]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x49c]
call fcn.0040a7f0
xor eax, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 7
lea edx, [ecx + 2]
mov word [ebp - 0x4b4], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406de0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040a7f0
lea eax, [ebp - 0x4b4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x4e8]
call fcn.0043bc20
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x500]
push ecx
mov ecx, eax
call fcn.00443310
mov ecx, eax
mov eax, dword [esi + 4]
mov byte [ebp - 4], 0xe
push ecx
cmp dword [esi + 8], eax
je 0x406e4d
mov ecx, eax
call fcn.0043bc00
add dword [esi + 4], 0x18
jmp 0x406e55
push eax
mov ecx, esi
call fcn.00403190
lea ecx, [ebp - 0x500]
call fcn.00405200
lea ecx, [ebp - 0x4e8]
call fcn.00405200
lea ecx, [ebp - 0x4b4]
call fcn.00405200
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xa
call fcn.00405200
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406ce0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x230]
call fcn.00405200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e450
mov esp, ebp
pop ebp
ret