Function at 0x401370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
pushal
mov dword [0x4455dc], ebp
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x44306c
push reloc.comctl32.dll_MenuHelp
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x128]
push ecx
push 0x20019
push 0
push str.ClassesCLSID00000315_0000_0000_C000_000000000046Conversion
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013d8
xor eax, eax
jmp 0x401788
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x138], 0x402204
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.v04cxezk2unsriltr]
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 0x4014e6
cmp dword [ebp - 0x12c], 0
jne 0x4014ed
xor eax, eax
jmp 0x401788
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00401220
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 [ebp - 0x148]
cmp ecx, dword [ebp - 0x14c]
jae 0x4015be
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x140]
push eax
call fcn.00401250
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.00401310
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 0x401526
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00401280
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x170], 0x441bfc
mov eax, dword [ebp - 0x170]
push eax
call fcn.00401000
add esp, 4
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.00401220
add esp, 4
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x164]
push edx
push 0
mov eax, dword [ebp - 0x120]
push eax
call fcn.00401170
add esp, 0xc
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x160]
cmp edx, dword [ebp - 0x164]
jae 0x4016d8
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.00401250
add esp, 8
mov dword [ebp - 0x174], eax
mov edx, dword [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x170]
add eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
add ecx, dword [ebp - 0x160]
push ecx
call fcn.00401310
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 - 0x160]
add eax, dword [ebp - 0x140]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x16c]
sub ecx, dword [ebp - 0x174]
mov dword [ebp - 0x16c], ecx
jmp 0x401640
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.00401280
add esp, 8
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x120]
mov dword [ecx], edx
push 0x41000
call fcn.00401220
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push str.k1ry2c9ug
push reloc.comctl32.dll_MenuHelp
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x401732
xor eax, eax
jmp 0x401788
push 0x3e600
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x300
push edx
call fcn.00401310
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 [0x4455dc]
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