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

Disassembly:
push ebp
lea ebp, [esp - 0xac4]
sub esp, 0xac4
push 0xfffffffffffffffe
push 0x48a820
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xac0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xacc]
mov dword [ebp - 0x30], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp], ebx
push 0x24c
push ebx
lea ecx, [ebp + 4]
push ecx
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push esi
call fcn.00406e10
add esp, 4
test eax, eax
jne 0x438e6b
push esi
push 0x104
lea edx, [ebp + 0x688]
push edx
call fcn.0043efc3
add esp, 0xc
lea eax, [ebp + 0x688]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.004364b0
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x438e6b
xor esi, esi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x30]
cmp esi, dword [ecx + 4]
jge 0x438d21
lea edx, [ebp + 0x8a4]
push edx
push 0
push edi
mov eax, dword [esi*4 + 0x48f478]
push eax
push 0
call ebx
test eax, eax
jne 0x438d0a
lea ecx, [ebp + 0x8a4]
push ecx
push str.szTempPah:__s
call fcn.00404c20
lea edx, [ebp + 0x688]
push edx
lea eax, [ebp + 0x8a4]
push eax
call fcn.0043ec25
add esp, 0x10
test eax, eax
jne 0x438d1e
jmp 0x438e64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x485f14
call fcn.00404c20
add esp, 8
inc esi
jmp 0x438cb5
lea ecx, [ebp + 0x46c]
push ecx
push 0
push edi
push 0x1c
push 0
call ebx
test eax, eax
jne 0x438dec
lea edx, [ebp + 0x46c]
push edx
push str._s_temp
lea edx, [ebp + 0x8a4]
call fcn.004047d0
lea eax, [ebp + 0x8a4]
push eax
push str.szTempPah:__s
call fcn.00404c20
lea ecx, [ebp + 0x688]
push ecx
lea edx, [ebp + 0x8a4]
push edx
call fcn.0043ec25
add esp, 0x18
test eax, eax
je 0x438e64
lea eax, [ebp + 0x46c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp + 0x688]
push ecx
lea edx, [ebp + 0x46c]
push edx
call fcn.0043ec25
add esp, 8
test eax, eax
je 0x438e64
lea eax, [ebp + 0x46c]
push eax
push str._s_temp
lea edx, [ebp + 0x8a4]
call fcn.004047d0
lea ecx, [ebp + 0x8a4]
push ecx
push str.szTempPah:__s
call fcn.00404c20
lea edx, [ebp + 0x688]
push edx
lea eax, [ebp + 0x8a4]
push eax
call fcn.0043ec25
add esp, 0x18
test eax, eax
je 0x438e64
lea ecx, [ebp + 0x688]
push ecx
push str._s.
lea edx, [ebp + 0x250]
call fcn.004047d0
add esp, 8
lea edx, [ebp]
push edx
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x438e37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindFirstFile_error:__d
call fcn.00404c20
add esp, 8
jmp 0x438e6b
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
cmp word [ebp + 0x2c], 0x2e
je 0x438e59
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp + 0xad0]
ja 0x438e6b
mov esi, dword [ebp - 0x20]
lea ecx, [ebp]
push ecx
push esi
call ebx
test eax, eax
jne 0x438e40
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00438ea4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xac0]
xor ecx, ebp
call fcn.0043e4c7
add ebp, 0xac4
mov esp, ebp
pop ebp
ret 8