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

Disassembly:
sub esp, 0x354
mov eax, dword [0x43f7ac]
xor eax, esp
mov dword [esp + 0x350], eax
mov eax, dword [esp + 0x358]
push ebx
push ebp
push esi
push edi
push 0x104
lea ecx, [esp + 0x260]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x25c]
push edx
call fcn.0040e2c0
add esp, 4
xor ebx, ebx
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x158], cl
add eax, 1
cmp cl, bl
jne 0x408f20
lea eax, [esp + 0x158]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x408f40
mov ecx, dword [str.32.dll]
mov edx, dword [0x4294ec]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x409089
lea esp, [esp]
test byte [esp + 0x18], 0x10
jne 0x40906e
cmp byte [esp + 0x44], 0x2e
je 0x40906e
xor eax, eax
jmp 0x408fa0
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x158], cl
add eax, 1
cmp cl, bl
jne 0x408fa0
lea eax, [esp + 0x44]
mov esi, eax
jmp 0x408fc0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408fc0
lea edi, [esp + 0x158]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x408fd5
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 3
mov ecx, eax
push SysReAllocStringLen
lea edx, [esp + 0x170]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40906e
push ebx
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x164]
push ecx
push esi
mov byte [esp + 0x16c], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x158], 0x4d
jne 0x40904a
cmp byte [esp + 0x159], 0x5a
je 0x40906e
lea edx, [esp + 0x158]
push str.shellfolder
push edx
mov byte [esp + 0x263], bl
call fcn.00410f20
add esp, 8
test eax, eax
jne 0x409197
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408f80
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [str.mskernel32hlp.dll], ebx
mov ebp, 0x43e5c4
je 0x409176
lea ebx, [ebx]
xor eax, eax
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x158], cl
add eax, 1
cmp cl, bl
jne 0x4090a2
mov eax, dword [ebp]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4090c0
lea edi, [esp + 0x158]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x4090d5
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 3
mov ecx, eax
push SysReAllocStringLen
lea edx, [esp + 0x170]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40916a
push ebx
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x164]
push ecx
push esi
mov byte [esp + 0x16c], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x158], 0x4d
jne 0x40914a
cmp byte [esp + 0x159], 0x5a
je 0x40916a
lea edx, [esp + 0x158]
push str.shellfolder
push edx
mov byte [esp + 0x263], bl
call fcn.00410f20
add esp, 8
test eax, eax
jne 0x4091c3
add ebp, 4
cmp dword [ebp], ebx
jne 0x4090a0
mov ecx, dword [esp + 0x10]
mov byte [ecx], bl
xor eax, eax
mov ecx, dword [esp + 0x360]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fe67
add esp, 0x354
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x36c]
push esi
lea ecx, [esp + 0x48]
push ecx
mov edi, dword [esp + 0x18]
push edi
call fcn.00410120
add esp, 0xc
mov byte [edi + esi - 1], bl
mov eax, 1
jmp 0x40917e
mov esi, dword [esp + 0x36c]
mov eax, dword [ebp]
push esi
push eax
jmp 0x4091ab