Function at 0x486aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3891
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x513f3c]
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 0x486adc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov al, byte [0x51680f]
mov byte [ebp - 0x2ec], al
push 0x103
push 0
lea ecx, [ebp - 0x2eb]
push ecx
call fcn.004af0d0
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.00483d80
add esp, 8
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x486b3f
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x1e4], edx
push 0x2e
lea eax, [ebp - 0x2ec]
push eax
call fcn.00483d80
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x486b6d
mov ecx, dword [ebp - 0x1e0]
cmp ecx, dword [ebp - 0x1e4]
jae 0x486b84
push 0
lea edx, [ebp - 0x2ec]
push edx
call fcn.00483cf0
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp + 0xc], 0
je 0x486bb9
mov eax, dword [ebp + 0xc]
push eax
push 0x5174d8
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.004b1fd4
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.00483cf0
add esp, 8
mov dword [ebp - 0x1e0], eax
push 0x5174d0
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.004b3720
add esp, 8
lea ecx, [ebp - 0x2ec]
push ecx
push 0x52ee70
call fcn.004b3720
add esp, 8
mov dl, byte [0x51680f]
mov byte [ebp - 0x1dc], dl
push 0x103
push 0
lea eax, [ebp - 0x1db]
push eax
call fcn.004af0d0
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 0x486c37
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 0x486de6
push 0
push 0x5174c8
lea ecx, [ebp - 0x2c]
call fcn.004872a0
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.00487200
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.00488a00
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, 0x52ef78
call fcn.00488880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00456530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00456530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00456530
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x52ee70
lea ecx, [ebp - 0x80]
call fcn.00487200
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.004a41b0
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 0x52ef78
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00488a00
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.004888a0
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.00456d00
push eax
push 0x52ee70
call fcn.004b3720
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.004423e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.00456530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.00456530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00456530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae0b3
mov esp, ebp
pop ebp
ret