Function at 0x47e160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f19c3
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x300], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x284]
call fcn.0043e280
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x308], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x308]
add ecx, 4
call fcn.00411920
push eax
mov ecx, dword [ebp - 0x300]
call fcn.0047df50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.00424a60
cmp dword [ebp - 0x10], 0
je 0x47e446
cmp dword [ebp + 0xc], 0
je 0x47e446
mov dword [ebp - 0x3c], 0
push str.SELECT__FROM
lea ecx, [ebp - 0x34]
call fcn.0043f220
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041fd60
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00410bd0
push eax
lea ecx, [ebp - 0x30]
call fcn.00411920
push eax
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x300]
call fcn.0047df20
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x3c], 0
je 0x47e26a
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x300]
call fcn.0047dea0
cmp dword [ebp - 0x38], 0
je 0x47e286
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x300]
call fcn.0047de80
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x38], 5
jne 0x47e437
movzx edx, byte [ebp + 0x10]
test edx, edx
jne 0x47e437
lea eax, [ebp - 0x244]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x47e437
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x285]
call fcn.0040b800
push eax
lea edx, [ebp - 0x244]
push edx
lea ecx, [ebp - 0x264]
call fcn.00414c40
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x260]
call fcn.00410d00
push 0x5054a4
lea ecx, [ebp - 0x260]
call fcn.00410d00
lea ecx, [ebp - 0x2a9]
call fcn.0040b800
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.00414c40
mov byte [ebp - 4], 3
push 1
push 0
push 0
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00482950
add esp, 0x14
mov byte [ebp - 0x286], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a8]
call fcn.00414a10
movzx ecx, byte [ebp - 0x286]
test ecx, ecx
je 0x47e428
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x2cc]
call fcn.00424980
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x310]
add ecx, 4
call fcn.00411920
push eax
mov ecx, dword [ebp - 0x300]
call fcn.0047df50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2cc]
call fcn.00424a60
cmp dword [ebp - 0x10], 0
je 0x47e428
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2f4], edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x2f0]
call fcn.0043f620
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x318], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2fc]
push ecx
mov ecx, dword [ebp - 0x300]
add ecx, 0x28
call fcn.0043f2a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f0]
call fcn.0043e160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00424a60
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 0xc