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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40363b
mov eax, dword fs:[0]
push eax
mov eax, 0x14c4
call fcn.00403070
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14b8], ebx
mov dword [ebp - 0x14b4], ebx
push 0x401530
push 0x208
lea eax, [ebp - 0xc40]
push eax
mov dword [ebp - 4], ebx
call fcn.00401d45
push 0x103
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, 0x104
test eax, eax
je 0x40247d
push 0x401520
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.00401d80
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.00401d0b
push 0x401508
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.00401d80
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0xa38]
push eax
call fcn.00401d0b
push 0x4014f4
push esi
lea eax, [ebp - 0xa38]
push eax
call fcn.00401d80
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14b8], eax
cmp eax, ebx
je 0x40247d
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0xc40]
push eax
push 0x64
push dword [ebp - 0x14b8]
call edi
push esi
lea eax, [ebp - 0x1258]
push eax
push 0x74
push dword [ebp - 0x14b8]
call edi
lea eax, [ebp - 0x14bc]
push eax
push ebx
push 0x400
push 0x401824
call sub.SHELL32.dll_SHGetKnownFolderPath
cmp eax, ebx
jl 0x402717
cmp dword [ebp - 0x14bc], ebx
je 0x402717
push dword [ebp - 0x14bc]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00401d0b
mov edi, 0x401464
push edi
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00401d80
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0xe48]
push eax
call fcn.00401d0b
lea eax, [ebp - 0xc40]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00401d80
push 0x4014e8
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00401d80
push 0x40147c
push esi
lea eax, [ebp - 0xe48]
push eax
call fcn.00401d80
lea eax, [ebp - 0x14a8]
push eax
lea eax, [ebp - 0xe48]
push eax
mov byte [ebp - 0x14a9], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14b0], eax
cmp eax, 0xffffffff
je 0x4025a1
push dword [ebp - 0x14bc]
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00401d0b
push edi
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.00401d80
lea eax, [ebp - 0x147c]
push eax
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.00401d80
lea eax, [ebp - 0x628]
push eax
call fcn.00402224
mov byte [ebp - 0x14a9], al
cmp al, bl
jne 0x4025a1
lea eax, [ebp - 0x14a8]
push eax
push dword [ebp - 0x14b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40253f
push dword [ebp - 0x14b0]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x14a9], bl
jne 0x402717
lea eax, [ebp - 0x14b4]
push eax
push 0x4017a0
push 1
push ebx
push 0x4017b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402717
mov eax, dword [ebp - 0x14b4]
mov ecx, dword [eax]
lea edx, [ebp - 0x830]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14b4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1258]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14b4]
mov ecx, dword [eax]
push 0x4014e4
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14b4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x830]
push edx
push eax
call dword [ecx + 0x44]
mov dword [ebp - 0x14b0], ebx
push 0x4013ac
push dword [ebp - 0x14b4]
lea eax, [ebp - 0x14b0]
push eax
mov byte [ebp - 4], 1
call fcn.00401a6d
cmp dword [ebp - 0x14b0], ebx
je 0x4026c2
xor eax, eax
push esi
mov word [ebp - 0x14d0], ax
lea eax, [ebp - 0x1050]
push eax
push 0x44c1
push dword [ebp - 0x14b8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x14d0]
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.00401b39
cmp eax, ebx
jl 0x4026c2
mov eax, dword [ebp - 0x14b0]
mov ecx, dword [eax]
lea edx, [ebp - 0x14d0]
push edx
push 0x4017d0
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14b0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp word [ebp - 0x14d0], bx
je 0x4026c2
lea eax, [ebp - 0x14d0]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
push dword [ebp - 0x14b4]
lea ecx, [ebp - 0x14c0]
call fcn.00401c81
mov eax, dword [ebp - 0x14c0]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4026f6
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14c0]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x402704
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14b0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402717
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14b4]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40272b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402feb
leave
ret