Function at 0x485e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f26f1
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x513f40]
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 0x485e4c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov al, byte [0x5167d7]
mov byte [ebp - 0x2ec], al
push 0x103
push 0
lea ecx, [ebp - 0x2eb]
push ecx
call fcn.004ae190
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.004830f0
add esp, 8
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x485eaf
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x1e4], edx
push 0x2e
lea eax, [ebp - 0x2ec]
push eax
call fcn.004830f0
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x485edd
mov ecx, dword [ebp - 0x1e0]
cmp ecx, dword [ebp - 0x1e4]
jae 0x485ef4
push 0
lea edx, [ebp - 0x2ec]
push edx
call fcn.00483060
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp + 0xc], 0
je 0x485f29
mov eax, dword [ebp + 0xc]
push eax
push 0x5174d0
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.004b13f4
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.00483060
add esp, 8
mov dword [ebp - 0x1e0], eax
push 0x5174c8
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.004b2b40
add esp, 8
lea ecx, [ebp - 0x2ec]
push ecx
push 0x52ea90
call fcn.004b2b40
add esp, 8
mov dl, byte [0x5167d7]
mov byte [ebp - 0x1dc], dl
push 0x103
push 0
lea eax, [ebp - 0x1db]
push eax
call fcn.004ae190
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 0x485fa7
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 0x486156
push 0
push 0x5174c0
lea ecx, [ebp - 0x2c]
call fcn.00486610
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.00486570
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.00487d70
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, 0x52eb98
call fcn.00487bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004551d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004551d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004551d0
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x52ea90
lea ecx, [ebp - 0x80]
call fcn.00486570
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.004a34b0
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 0x52eb98
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00487d70
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.00487c10
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.00455a80
push eax
push 0x52ea90
call fcn.004b2b40
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.00455940
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.004551d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.004551d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004551d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad663
mov esp, ebp
pop ebp
ret