Function at 0x423740
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x492873
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4b8968]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8968]
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.0045258f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4237b3
push 0x80004005
call fcn.00401090
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.0045258f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4237e5
push 0x80004005
call fcn.00401090
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 0x423869
push str._WINDOW_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423869
sub eax, esi
js 0x423869
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 0x423840
sub eax, edx
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.004020c0
mov edi, dword [esp + 0x14]
push edi
push str._WINDOW_
jmp 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._SYSTEM_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x4238c9
sub eax, esi
js 0x4238c9
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 0x4238a0
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004020c0
mov edi, dword [esp + 0x14]
push edi
push str._SYSTEM_
jmp 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._PROGRAM_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423995
sub eax, esi
js 0x423995
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4978d6
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ProgramFilesDir
mov byte [esp + 0x14c], 4
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersion
mov byte [esp + 0x150], 5
call fcn.00402f40
lea edx, [esp + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
push edx
mov byte [esp + 0x154], bl
call fcn.0042c420
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 6
call fcn.004023e0
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 0x423986
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 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._ROOT_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423a0e
sub eax, esi
js 0x423a0e
mov eax, dword [esp + 0x150]
cmp dword [eax - 0xc], 0
jne 0x423a03
mov esi, dword [esp + 0x20]
push 0x4978d6
mov ecx, esi
call fcn.00402f40
lea ecx, [esp + 0x24]
call fcn.00401a80
lea ecx, [esp + 0x14]
call fcn.00401a80
lea ecx, [esp + 0x14c]
call fcn.00401a80
lea ecx, [esp + 0x150]
call fcn.00401a80
mov eax, esi
jmp 0x423cb6
push eax
push str._ROOT_
jmp 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._TEMP_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423a4d
sub eax, esi
js 0x423a4d
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 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._SELF_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423aad
sub eax, esi
js 0x423aad
lea eax, [esp + 0x18]
push eax
mov ecx, 0x4ba0a0
call fcn.00402af0
mov eax, dword [eax]
push eax
push str._SELF_
lea ecx, [esp + 0x154]
mov byte [esp + 0x148], 7
call fcn.00406270
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call fcn.00401a80
jmp 0x423beb
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._WINDOWS_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423afa
sub eax, esi
js 0x423afa
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.00402d30
mov edi, dword [esp + 0x14]
push edi
push str._WINDOWS_
jmp 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._PROGRAMFILES_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423bac
sub eax, esi
js 0x423bac
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4978d6
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ProgramFilesDir
mov byte [esp + 0x14c], 8
call fcn.00402f40
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersion
mov byte [esp + 0x150], 9
call fcn.00402f40
lea eax, [esp + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov byte [esp + 0x154], bl
call fcn.0042c420
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0xa
call fcn.004023e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call fcn.00401a80
mov edi, dword [esp + 0x14]
push edi
push str._PROGRAMFILES_
jmp 0x423bdf
cmp dword [esi - 0xc], 0
jl 0x423beb
push str._PRODUCTROOT_
push esi
call fcn.00473b3d
add esp, 8
test eax, eax
je 0x423beb
sub eax, esi
js 0x423beb
mov eax, dword [esp + 0x150]
cmp dword [eax - 0xc], 0
je 0x4239c2
push eax
push str._PRODUCTROOT_
lea ecx, [esp + 0x154]
call fcn.00406270
push 0x4978c4
push 0x4980ac
lea ecx, [esp + 0x154]
call fcn.00406270
mov esi, dword [esp + 0x14c]
add esi, 0xfffffff0
push esi
call fcn.004019a0
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 ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423c41
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 0x423c65
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 0x423c86
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 0x423cb4
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.00473559
add esp, 0x130
ret 0xc