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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4986
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x513624]
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.004a1d70
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 0x406ff7
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 0x406da2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x49c]
call fcn.0040b910
push 0x4e2924
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.00405450
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 0x406fe2
nop
test byte [ebp - 0x480], 6
jne 0x406fc5
mov ecx, 0x4e292c
lea eax, [ebp - 0x454]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406e5e
test dx, dx
je 0x406e5a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406e5e
add eax, 4
add ecx, 4
test dx, dx
jne 0x406e38
xor eax, eax
jmp 0x406e63
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fc5
mov ecx, 0x4e2930
lea eax, [ebp - 0x454]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406e9c
test dx, dx
je 0x406e98
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406e9c
add eax, 4
add ecx, 4
test dx, dx
jne 0x406e76
xor eax, eax
jmp 0x406ea1
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fc5
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 0x406ed0
sub ecx, edx
lea eax, [ebp - 0x454]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0040b910
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 0x406f20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040b910
lea eax, [ebp - 0x4b4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x500]
call fcn.00441970
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x4e8]
push ecx
mov ecx, eax
call fcn.00449060
mov ecx, eax
mov eax, dword [esi + 4]
mov byte [ebp - 4], 7
push ecx
cmp dword [esi + 8], eax
je 0x406f8d
mov ecx, eax
call fcn.00441950
add dword [esi + 4], 0x18
jmp 0x406f95
push eax
mov ecx, esi
call fcn.00403340
lea ecx, [ebp - 0x4e8]
call fcn.00405450
lea ecx, [ebp - 0x500]
call fcn.00405450
lea ecx, [ebp - 0x4b4]
call fcn.00405450
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 3
call fcn.00405450
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406e20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00405450
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1d70
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 0x40729d
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 0x407050
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0040b910
push 0x4e2924
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.00405450
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 0x407292
nop dword [eax]
test byte [ebp - 0x480], 6
jne 0x407275
mov ecx, 0x4e292c
lea eax, [ebp - 0x454]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40710e
test dx, dx
je 0x40710a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40710e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4070e8
xor eax, eax
jmp 0x407113
sbb eax, eax
or eax, 1
test eax, eax
je 0x407275
mov eax, 0x4e2930
lea ecx, [ebp - 0x454]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40714c
test dx, dx
je 0x407148
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40714c
add ecx, 4
add eax, 4
test dx, dx
jne 0x407126
xor eax, eax
jmp 0x407151
sbb eax, eax
or eax, 1
test eax, eax
je 0x407275
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 0x407180
sub ecx, edx
lea eax, [ebp - 0x454]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x49c]
call fcn.0040b910
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 0x4071d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040b910
lea eax, [ebp - 0x4b4]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x4e8]
call fcn.00441970
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x500]
push ecx
mov ecx, eax
call fcn.00449060
mov ecx, eax
mov eax, dword [esi + 4]
mov byte [ebp - 4], 0xe
push ecx
cmp dword [esi + 8], eax
je 0x40723d
mov ecx, eax
call fcn.00441950
add dword [esi + 4], 0x18
jmp 0x407245
push eax
mov ecx, esi
call fcn.00403340
lea ecx, [ebp - 0x500]
call fcn.00405450
lea ecx, [ebp - 0x4e8]
call fcn.00405450
lea ecx, [ebp - 0x4b4]
call fcn.00405450
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xa
call fcn.00405450
lea eax, [ebp - 0x480]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4070d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x230]
call fcn.00405450
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.00464020
mov esp, ebp
pop ebp
ret