Function at 0x48ede0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ea86
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0x71f078
mov eax, dword [0x737a0c]
mov dword [ebp - 4], 0
cmp eax, 0xfffffffe
jle 0x48ee2b
call fcn.0048f620
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 0x48eec6
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 0x48eebd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48eebd
mov ecx, 2
mul ecx
cmovb eax, esi
push eax
call fcn.005536f9
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 0x48eeb4
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00435080
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.00406190
push edi
call fcn.005533c3
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 0x48eee3
lea eax, [ebp - 0x10]
push eax
call fcn.004523c0
add esp, 4
test al, al
jne 0x48f1e7
lea eax, [ebp - 0x14]
push str.USERPROFILE
push eax
call fcn.0046a470
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.0048e850
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 0x48ef2b
cmp eax, 0xffffffff
je 0x48ef3a
mov eax, dword [ebp - 0x18]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48ef3a
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x48ef5d
cmp eax, 0xffffffff
je 0x48ef6c
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48ef6c
push 4
push 1
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x48ef89
lea eax, [ebp - 0x10]
push eax
call fcn.004523c0
add esp, 4
test al, al
jne 0x48f1e7
lea eax, [ebp - 0x24]
push str.HOMEPATH
push eax
call fcn.0046a470
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
call fcn.0048e850
mov edi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push str.HOMEDRIVE
push eax
call fcn.0046a470
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0048e850
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 0x48efe4
cmp eax, 0xffffffff
je 0x48efe4
mov eax, dword [ebp - 0x14]
lock inc dword [eax]
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 2
call fcn.00427d70
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 0x48f019
cmp eax, 0xffffffff
je 0x48f028
mov eax, esi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x48f028
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x48f047
cmp eax, 0xffffffff
je 0x48f056
mov eax, dword [ebp - 0x18]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f056
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x48f075
cmp eax, 0xffffffff
je 0x48f084
mov eax, dword [ebp - 0x1c]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f084
push 4
push 1
push dword [ebp - 0x1c]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x48f0a3
cmp eax, 0xffffffff
je 0x48f0b2
mov eax, dword [ebp - 0x20]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f0b2
push 4
push 2
push dword [ebp - 0x20]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x48f0d5
cmp eax, 0xffffffff
je 0x48f0e4
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f0e4
push 4
push 1
push dword [ebp - 0x24]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x48f101
lea eax, [ebp - 0x10]
push eax
call fcn.004523c0
add esp, 4
test al, al
jne 0x48f1e7
lea eax, [ebp - 0x20]
push str.HOME
push eax
call fcn.0046a470
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.0048e850
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 0x48f149
cmp eax, 0xffffffff
je 0x48f158
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f158
push 4
push 2
push dword [ebp - 0x24]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x48f17b
cmp eax, 0xffffffff
je 0x48f18a
mov eax, dword [ebp - 0x20]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f18a
push 4
push 1
push dword [ebp - 0x20]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x48f1a3
lea eax, [ebp - 0x10]
push eax
call fcn.004523c0
add esp, 4
test al, al
jne 0x48f1e7
lea eax, [ebp - 0x24]
push eax
call fcn.00491200
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 0x48f1d8
cmp eax, 0xffffffff
je 0x48f1e7
mov eax, dword [ebp - 0x24]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x48f1e7
push 4
push 2
push dword [ebp - 0x24]
call fcn.00425140
add esp, 0xc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004388a0
mov eax, dword [ebp - 0x10]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x48f214
cmp eax, 0xffffffff
je 0x48f223
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], esi
dec esi
setne cl
test cl, cl
jne 0x48f223
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
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