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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d8f5
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4541e0]
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]
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0
mov dword [ebp - 0x2bc], esi
push 0x4440b0
mov dword [ebp - 0x2bc], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x40dea6
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x40de7a
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40e0c2
mov edx, dword [ebp - 0x2bc]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dec6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401530
push 0x23
push str.MicrosoftEdgeWebViewApplication_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040e140
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402d70
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x40e129
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push 0x440308
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x5c]
call fcn.0040d4e0
push dword [ebp - 0x2bc]
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x250
lea eax, [ebp - 0x2b8]
push 0
push eax
call fcn.0041d260
add esp, 0xc
lea ecx, [ebp - 0x2b8]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dfb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e08b
test byte [ebp - 0x2b8], 0x10
je 0x40e06e
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dfe0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00401530
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push 0x44030c
push eax
call fcn.0040e7b0
add esp, 0x18
cmp eax, 4
je 0x40e0df
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x40e06e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e064
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e12e
push ecx
push edx
call fcn.0041ac6f
add esp, 8
lea eax, [ebp - 0x2b8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40dfb0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x5c]
call fcn.00402d70
lea ecx, [ebp - 0x40]
call fcn.00402d70
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.0041b2d9
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x30]
mov eax, SysReAllocString
mov edi, dword [ebp - 0x18]
sub eax, edx
cmp eax, edi
jb 0x40e133
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push edi
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push edx
push ecx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
push dword [ebp - 0x44]
call fcn.0040d4e0
lea ecx, [ebp - 0x28]
call fcn.00402d70
jmp 0x40e0b2
call fcn.00407b00
call fcn.004203af
call fcn.00407b00
int3