Function at 0x401260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
pushal
mov dword [0x402218], ebp
mov dword [ebp - 0x144], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x13c], 0x64
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x118], 3
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.004016a0
lea edx, [ebp - 0x128]
push edx
push 0x20019
push 0
push 0x40206c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401313
push 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40168d
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.Classes
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401346
push 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40168d
lea edx, [ebp - 0x128]
push edx
push 0x20019
push 0
push str.CLSID
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401379
push 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40168d
lea ecx, [ebp - 0x128]
push ecx
push 0x20019
push 0
push str.00000319_0000_0000_C000_000000000046MiscStatus
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013ac
push 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40168d
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.844849984
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4013df
push 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40168d
call fcn.00401000
mov edx, dword [0x402210]
push edx
call fcn.00401020
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
push eax
call fcn.00401160
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x148]
push ecx
push 0
mov edx, dword [ebp - 0x140]
push edx
call fcn.00401190
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp - 0x148]
jae 0x4014ca
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x13c]
push eax
call fcn.004011a0
add esp, 8
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [0x402210]
add edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x140]
add eax, dword [ebp - 0x144]
push eax
call fcn.00401100
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
add ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x124]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x144]
add edx, dword [ebp - 0x13c]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x150]
sub eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], eax
jmp 0x401432
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.004011d0
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x15c], 0
call fcn.00401010
mov eax, dword [0x402210]
push eax
call fcn.00401020
add esp, 4
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.00401160
add esp, 4
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x160]
push edx
push 0
mov eax, dword [ebp - 0x120]
push eax
call fcn.00401190
add esp, 0xc
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x160]
jae 0x4015dd
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.004011a0
add esp, 8
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [0x402210]
add eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x15c]
push ecx
call fcn.00401100
add esp, 0xc
mov edx, dword [ebp - 0x11c]
add edx, dword [ebp - 0x13c]
add edx, dword [ebp - 0x124]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x15c]
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x168]
sub ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x168], ecx
jmp 0x401546
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x120]
mov dword [ecx], edx
push 0x17000
call fcn.00401160
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401637
xor eax, eax
jmp 0x40168d
push 0x15100
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x200
push edx
call fcn.00401100
add esp, 0xc
mov eax, dword [ebp - 4]
sub eax, 0x400000
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.00401030
add esp, 0xc
mov esp, dword [0x402218]
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x14f40
mov dword [ebp - 0x134], eax
push dword [ebp - 0x134]
ret
mov esp, ebp
pop ebp
ret