Function at 0x453980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f286
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0x6e6190
mov eax, dword [0x6fc954]
mov dword [ebp - 4], 0
cmp eax, 0xfffffffe
jle 0x4539cb
call fcn.004541c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
or esi, 0xffffffff
test eax, eax
je 0x453a66
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x453a5d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x453a5d
mov ecx, 2
mul ecx
cmovb eax, esi
push eax
call fcn.00524f92
add esp, 4
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x453a54
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00420fa0
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
mov dword [eax], edx
call fcn.00401a70
push edi
call fcn.00524f9b
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x453a83
lea eax, [ebp - 0x10]
push eax
call fcn.0044a030
add esp, 4
test al, al
jne 0x453d87
lea eax, [ebp - 0x14]
push str.USERPROFILE
push eax
call fcn.00426190
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.004533f0
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x453acb
cmp eax, 0xffffffff
je 0x453ada
mov eax, dword [ebp - 0x18]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453ada
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x453afd
cmp eax, 0xffffffff
je 0x453b0c
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453b0c
push 4
push 1
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x453b29
lea eax, [ebp - 0x10]
push eax
call fcn.0044a030
add esp, 4
test al, al
jne 0x453d87
lea eax, [ebp - 0x24]
push str.HOMEPATH
push eax
call fcn.00426190
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call fcn.004533f0
mov edi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push str.HOMEDRIVE
push eax
call fcn.00426190
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.004533f0
add esp, 0x20
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
mov eax, dword [eax]
test eax, eax
je 0x453b84
cmp eax, 0xffffffff
je 0x453b84
mov eax, dword [ebp - 0x14]
lock inc dword [eax]
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 2
call fcn.00406870
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
test eax, eax
je 0x453bb9
cmp eax, 0xffffffff
je 0x453bc8
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x453bc8
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x453be7
cmp eax, 0xffffffff
je 0x453bf6
mov eax, dword [ebp - 0x18]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453bf6
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x453c15
cmp eax, 0xffffffff
je 0x453c24
mov eax, dword [ebp - 0x1c]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453c24
push 4
push 1
push dword [ebp - 0x1c]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x453c43
cmp eax, 0xffffffff
je 0x453c52
mov eax, dword [ebp - 0x20]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453c52
push 4
push 2
push dword [ebp - 0x20]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x453c75
cmp eax, 0xffffffff
je 0x453c84
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453c84
push 4
push 1
push dword [ebp - 0x24]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x453ca1
lea eax, [ebp - 0x10]
push eax
call fcn.0044a030
add esp, 4
test al, al
jne 0x453d87
lea eax, [ebp - 0x20]
push str.HOME
push eax
call fcn.00426190
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.004533f0
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x453ce9
cmp eax, 0xffffffff
je 0x453cf8
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453cf8
push 4
push 2
push dword [ebp - 0x24]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x453d1b
cmp eax, 0xffffffff
je 0x453d2a
mov eax, dword [ebp - 0x20]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453d2a
push 4
push 1
push dword [ebp - 0x20]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x453d43
lea eax, [ebp - 0x10]
push eax
call fcn.0044a030
add esp, 4
test al, al
jne 0x453d87
lea eax, [ebp - 0x24]
push eax
call fcn.00455da0
mov edx, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x453d78
cmp eax, 0xffffffff
je 0x453d87
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x453d87
push 4
push 2
push dword [ebp - 0x24]
call fcn.00403d20
add esp, 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00424630
mov eax, dword [ebp - 0x10]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x453db4
cmp eax, 0xffffffff
je 0x453dc3
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], esi
dec esi
setne cl
test cl, cl
jne 0x453dc3
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret