Function at 0x4f4e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5616f1
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x582f40]
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 0x4f4e4c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov al, byte [0x5857d7]
mov byte [ebp - 0x2ec], al
push 0x103
push 0
lea ecx, [ebp - 0x2eb]
push ecx
call fcn.0051d190
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.004f20f0
add esp, 8
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x4f4eaf
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x1e4], edx
push 0x2e
lea eax, [ebp - 0x2ec]
push eax
call fcn.004f20f0
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x4f4edd
mov ecx, dword [ebp - 0x1e0]
cmp ecx, dword [ebp - 0x1e4]
jae 0x4f4ef4
push 0
lea edx, [ebp - 0x2ec]
push edx
call fcn.004f2060
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp + 0xc], 0
je 0x4f4f29
mov eax, dword [ebp + 0xc]
push eax
push 0x5864d0
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.005203f4
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.004f2060
add esp, 8
mov dword [ebp - 0x1e0], eax
push 0x5864c8
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.00521b40
add esp, 8
lea ecx, [ebp - 0x2ec]
push ecx
push 0x59da90
call fcn.00521b40
add esp, 8
mov dl, byte [0x5857d7]
mov byte [ebp - 0x1dc], dl
push 0x103
push 0
lea eax, [ebp - 0x1db]
push eax
call fcn.0051d190
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 0x4f4fa7
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 0x4f5156
push 0
push 0x5864c0
lea ecx, [ebp - 0x2c]
call fcn.004f5610
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.004f5570
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.004f6d70
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, 0x59db98
call fcn.004f6bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004c41d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004c41d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004c41d0
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x59da90
lea ecx, [ebp - 0x80]
call fcn.004f5570
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.005124b0
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 0x59db98
lea ecx, [ebp - 0xb8]
push ecx
call fcn.004f6d70
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.004f6c10
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.004c4a80
push eax
push 0x59da90
call fcn.00521b40
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.004c4940
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.004c41d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.004c41d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004c41d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051c663
mov esp, ebp
pop ebp
ret