Function at 0x500ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d1b1
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x58df2c]
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 0x500afc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov al, byte [0x5907f7]
mov byte [ebp - 0x2ec], al
push 0x103
push 0
lea ecx, [ebp - 0x2eb]
push ecx
call fcn.00528860
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.004fdda0
add esp, 8
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x500b5f
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x1e4], edx
push 0x2e
lea eax, [ebp - 0x2ec]
push eax
call fcn.004fdda0
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x500b8d
mov ecx, dword [ebp - 0x1e0]
cmp ecx, dword [ebp - 0x1e4]
jae 0x500ba4
push 0
lea edx, [ebp - 0x2ec]
push edx
call fcn.004fdd10
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp + 0xc], 0
je 0x500bd9
mov eax, dword [ebp + 0xc]
push eax
push 0x5914a0
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.0052b764
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.004fdd10
add esp, 8
mov dword [ebp - 0x1e0], eax
push 0x591498
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.0052ceb0
add esp, 8
lea ecx, [ebp - 0x2ec]
push ecx
push 0x5a8de0
call fcn.0052ceb0
add esp, 8
mov dl, byte [0x5907f7]
mov byte [ebp - 0x1dc], dl
push 0x103
push 0
lea eax, [ebp - 0x1db]
push eax
call fcn.00528860
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 0x500c57
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 0x500e06
push 0
push 0x591490
lea ecx, [ebp - 0x2c]
call fcn.005012c0
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.00501220
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.00502a20
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, 0x5a8ee8
call fcn.005028a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004d0540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004d0540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004d0540
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x5a8de0
lea ecx, [ebp - 0x80]
call fcn.00501220
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.0051d940
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 0x5a8ee8
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00502a20
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.005028c0
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.004d0d10
push eax
push 0x5a8de0
call fcn.0052ceb0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.004bc3e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.004d0540
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.004d0540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004d0540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527843
mov esp, ebp
pop ebp
ret