Function at 0x425d60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a0a5e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4cba68]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cba68]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x140], 1
call fcn.00460a7a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x425dd3
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x140], 2
call fcn.00460a7a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x425e05
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov esi, dword [esp + 0x14c]
mov eax, dword [esi - 0xc]
test eax, eax
mov bl, 3
mov byte [esp + 0x140], bl
jl 0x425e89
push str._WINDOW_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x425e89
sub eax, esi
js 0x425e89
push 0x105
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425e60
sub eax, edx
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401dd0
mov edi, dword [esp + 0x14]
push edi
push str._WINDOW_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._SYSTEM_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x425ee9
sub eax, esi
js 0x425ee9
push 0x105
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425ec0
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401dd0
mov edi, dword [esp + 0x14]
push edi
push str._SYSTEM_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._PROGRAM_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x425fb5
sub eax, esi
js 0x425fb5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4a5956
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ProgramFilesDir
mov byte [esp + 0x14c], 4
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersion
mov byte [esp + 0x150], 5
call fcn.00403080
lea edx, [esp + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
push edx
mov byte [esp + 0x154], bl
call fcn.00430400
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 6
call fcn.00402260
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x140], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425fa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push edi
push str._PROGRAM_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._ROOT_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x42602e
sub eax, esi
js 0x42602e
mov eax, dword [esp + 0x150]
cmp dword [eax - 0xc], 0
jne 0x426023
mov esi, dword [esp + 0x20]
push 0x4a5956
mov ecx, esi
call fcn.00403080
lea ecx, [esp + 0x24]
call fcn.004016f0
lea ecx, [esp + 0x14]
call fcn.004016f0
lea ecx, [esp + 0x14c]
call fcn.004016f0
lea ecx, [esp + 0x150]
call fcn.004016f0
mov eax, esi
jmp 0x42630f
push eax
push str._ROOT_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._TEMP_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x42606d
sub eax, esi
js 0x42606d
lea ecx, [esp + 0x30]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x30]
push edx
push str._TEMP_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._SELF_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x4260cd
sub eax, esi
js 0x4260cd
lea eax, [esp + 0x18]
push eax
mov ecx, 0x4cd010
call fcn.00402b80
mov eax, dword [eax]
push eax
push str._SELF_
lea ecx, [esp + 0x154]
mov byte [esp + 0x148], 7
call fcn.004068b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call fcn.004016f0
jmp 0x426244
cmp dword [esi - 0xc], 0
jl 0x426244
push str._WINDOWS_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x42611a
sub eax, esi
js 0x42611a
push 0x105
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.00402e00
mov edi, dword [esp + 0x14]
push edi
push str._WINDOWS_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._PROGRAMFILES_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x426205
sub eax, esi
js 0x426205
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4a5956
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ProgramFilesDir
mov byte [esp + 0x14c], 8
call fcn.00403080
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersion
mov byte [esp + 0x150], 9
call fcn.00403080
lea eax, [esp + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov byte [esp + 0x154], bl
call fcn.00430400
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0xa
call fcn.00402260
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call fcn.004016f0
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jne 0x4261fd
lea ecx, [esp + 0x18]
push ecx
call fcn.00433b20
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0xb
call fcn.00402260
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call fcn.004016f0
mov edi, dword [esp + 0x14]
push edi
push str._PROGRAMFILES_
jmp 0x426238
cmp dword [esi - 0xc], 0
jl 0x426244
push str._PRODUCTROOT_
push esi
call fcn.004819a0
add esp, 8
test eax, eax
je 0x426244
sub eax, esi
js 0x426244
mov eax, dword [esp + 0x150]
cmp dword [eax - 0xc], 0
je 0x425fe2
push eax
push str._PRODUCTROOT_
lea ecx, [esp + 0x154]
call fcn.004068b0
push 0x4a5964
push 0x4a618c
lea ecx, [esp + 0x154]
call fcn.004068b0
mov esi, dword [esp + 0x14c]
add esi, 0xfffffff0
push esi
call fcn.004017c0
mov ebx, dword [esp + 0x24]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x140], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42629a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x140], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4262be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x140], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4262df
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x150]
add eax, 0xfffffff0
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42630d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004820a1
add esp, 0x130
ret 0xc