Function at 0x401020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
pushal
mov dword [0x417c68], ebp
mov dword [ebp - 0x144], 0
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x40206c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40106b
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40144e
lea ecx, [ebp - 0x128]
push ecx
push 0x20019
push 0
push str.9zsi11idCLSID
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40109e
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40144e
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x402090
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x4010d1
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40144e
mov edx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x158], edx
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 eax, [ebp - 0x110]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
call fcn.004014f0
lea ecx, [ebp - 0x128]
push ecx
push 0x20019
push 0
push 0x4020b0
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40116d
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40144e
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.3yule6twqq00000319_0000_0000_C000_000000000046MiscStatus
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011a0
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x40144e
call fcn.00401000
mov edx, dword [0x417c64]
push edx
call fcn.004015a0
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
push eax
call fcn.00401720
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.00401670
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp - 0x148]
jae 0x40128b
mov edx, dword [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x13c]
push eax
call fcn.00401460
add esp, 8
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [0x417c64]
add edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x140]
add eax, dword [ebp - 0x144]
push eax
call fcn.00401490
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 0x4011f3
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.00401690
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x15c], 0
call fcn.00401010
mov eax, dword [0x417c64]
push eax
call fcn.004015a0
add esp, 4
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.00401720
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.00401670
add esp, 0xc
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x15c]
cmp edx, dword [ebp - 0x160]
jae 0x40139e
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.00401460
add esp, 8
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [0x417c64]
add eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x15c]
push ecx
call fcn.00401490
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 0x401307
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.00401690
add esp, 8
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x120]
mov dword [ecx], edx
push 0x17000
call fcn.00401720
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.xhsot6duj
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013f8
xor eax, eax
jmp 0x40144e
push 0x15100
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x200
push edx
call fcn.00401490
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.004015b0
add esp, 0xc
mov esp, dword [0x417c68]
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