Function at 0x492e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff6f1
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x520f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x492e4c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov al, byte [0x5237d7]
mov byte [ebp - 0x2ec], al
push 0x103
push 0
lea ecx, [ebp - 0x2eb]
push ecx
call fcn.004bb190
add esp, 0xc
push 0x104
lea edx, [ebp - 0x2ec]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x2ec]
push ecx
call fcn.004900f0
add esp, 8
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x492eaf
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x1e4], edx
push 0x2e
lea eax, [ebp - 0x2ec]
push eax
call fcn.004900f0
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x492edd
mov ecx, dword [ebp - 0x1e0]
cmp ecx, dword [ebp - 0x1e4]
jae 0x492ef4
push 0
lea edx, [ebp - 0x2ec]
push edx
call fcn.00490060
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp + 0xc], 0
je 0x492f29
mov eax, dword [ebp + 0xc]
push eax
push 0x5244d0
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.004be3f4
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.00490060
add esp, 8
mov dword [ebp - 0x1e0], eax
push 0x5244c8
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.004bfb40
add esp, 8
lea ecx, [ebp - 0x2ec]
push ecx
push 0x53ba90
call fcn.004bfb40
add esp, 8
mov dl, byte [0x5237d7]
mov byte [ebp - 0x1dc], dl
push 0x103
push 0
lea eax, [ebp - 0x1db]
push eax
call fcn.004bb190
add esp, 0xc
push 0
push 5
lea ecx, [ebp - 0x1dc]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x492fa7
push 0
push 5
lea edx, [ebp - 0x1dc]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
movsx eax, byte [ebp - 0x1dc]
test eax, eax
je 0x493156
push 0
push 0x5244c0
lea ecx, [ebp - 0x2c]
call fcn.00493610
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea edx, [ebp - 0x1dc]
push edx
lea ecx, [ebp - 0x48]
call fcn.00493570
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2f4]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00494d70
add esp, 0xc
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2fc]
push ecx
mov ecx, 0x53bb98
call fcn.00494bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004621d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004621d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004621d0
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x53ba90
lea ecx, [ebp - 0x80]
call fcn.00493570
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 0x304], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x304]
call fcn.004b04b0
mov dword [ebp - 0x308], eax
mov edx, dword [ebp - 0x308]
mov dword [ebp - 0x30c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
push eax
push 0x53bb98
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00494d70
add esp, 0xc
mov dword [ebp - 0x310], eax
mov edx, dword [ebp - 0x310]
mov dword [ebp - 0x314], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x314]
call fcn.00494c10
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x31c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x31c]
call fcn.00462a80
push eax
push 0x53ba90
call fcn.004bfb40
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.00462940
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.004621d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.004621d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004621d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba663
mov esp, ebp
pop ebp
ret