Function at 0x457c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549a31
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0x6f6ba0
mov eax, dword [0x8891a8]
mov dword [ebp - 4], 0
cmp eax, 0xfffffffe
jle 0x457c7b
call fcn.004584e0
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]
test eax, eax
je 0x457d18
mov edi, dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call edi
test eax, eax
jne 0x457d0f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x457d0f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00521324
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x457d06
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00457730
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov dword [eax], edx
call fcn.004011e0
push esi
call fcn.0052132d
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
cmp dword [eax + 4], 0
je 0x457d38
lea eax, [ebp - 0x10]
push eax
call fcn.00411950
add esp, 4
test al, al
jne 0x458059
lea eax, [ebp - 0x24]
push str.USERPROFILE
push eax
call fcn.00418f70
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call fcn.004575f0
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 - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x457d82
cmp eax, 0xffffffff
je 0x457d91
mov eax, dword [ebp - 0x20]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457d91
push 4
push 2
push dword [ebp - 0x20]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x457db6
cmp eax, 0xffffffff
je 0x457dc5
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457dc5
push 4
push 1
push dword [ebp - 0x24]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x457de2
lea eax, [ebp - 0x10]
push eax
call fcn.00411950
add esp, 4
test al, al
jne 0x458059
lea eax, [ebp - 0x34]
push str.HOMEPATH
push eax
call fcn.00418f70
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
call fcn.004575f0
mov edi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push str.HOMEDRIVE
push eax
call fcn.00418f70
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.004575f0
add esp, 0x20
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 6
mov eax, dword [ecx]
test eax, eax
je 0x457e40
cmp eax, 0xffffffff
je 0x457e40
mov eax, 1
lock xadd dword [ecx], eax
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x48], 2
call fcn.00403e30
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x457e7d
cmp eax, 0xffffffff
je 0x457e8c
mov eax, dword [ebp - 0x4c]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457e8c
push 4
push 2
push dword [ebp - 0x18]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
test eax, eax
je 0x457ead
cmp eax, 0xffffffff
je 0x457ebc
mov eax, dword [ebp - 0x28]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457ebc
push 4
push 2
push dword [ebp - 0x28]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x457edd
cmp eax, 0xffffffff
je 0x457eec
mov eax, dword [ebp - 0x2c]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457eec
push 4
push 1
push dword [ebp - 0x2c]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
test eax, eax
je 0x457f0d
cmp eax, 0xffffffff
je 0x457f1c
mov eax, dword [ebp - 0x30]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457f1c
push 4
push 2
push dword [ebp - 0x30]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x457f41
cmp eax, 0xffffffff
je 0x457f50
mov eax, dword [ebp - 0x34]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457f50
push 4
push 1
push dword [ebp - 0x34]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x457f6d
lea eax, [ebp - 0x10]
push eax
call fcn.00411950
add esp, 4
test al, al
jne 0x458059
lea eax, [ebp - 0x3c]
push str.HOME
push eax
call fcn.00418f70
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
call fcn.004575f0
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 - 0x38]
mov eax, dword [eax]
test eax, eax
je 0x457fb7
cmp eax, 0xffffffff
je 0x457fc6
mov eax, dword [ebp - 0x38]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457fc6
push 4
push 2
push dword [ebp - 0x38]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x457feb
cmp eax, 0xffffffff
je 0x457ffa
mov eax, dword [ebp - 0x3c]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x457ffa
push 4
push 1
push dword [ebp - 0x3c]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x458013
lea eax, [ebp - 0x10]
push eax
call fcn.00411950
add esp, 4
test al, al
jne 0x458059
lea eax, [ebp - 0x40]
push eax
call fcn.0045a170
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 - 0x40]
mov eax, dword [eax]
test eax, eax
je 0x45804a
cmp eax, 0xffffffff
je 0x458059
mov eax, dword [ebp - 0x40]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x458059
push 4
push 2
push dword [ebp - 0x40]
call fcn.004016c0
add esp, 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00447090
mov eax, dword [ebp - 0x10]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x458088
cmp eax, 0xffffffff
je 0x458097
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], esi
cmp esi, 1
setne cl
test cl, cl
jne 0x458097
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
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