Function at 0x4d1a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689de2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
xor eax, eax
push 0x11
push 0x69ed1c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0044eb60
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004cf050
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4d1b47
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d1b3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d1f5f
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x12
push str.SeRestorePrivilege
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0044eb60
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.004cf050
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x4d1bc9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d1bbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d1f64
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0xac], eax
jb 0x4d1beb
mov esi, dword [esi]
lea eax, [ebp - 0xac]
push eax
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d1f69
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0xd0], esi
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 7
mov dword [ebp - 0xb0], eax
jb 0x4d1c27
mov edi, dword [edi]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4d1c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Cant_create_target_key.
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.0044dac0
mov byte [ebp - 4], 8
jmp 0x4d1f82
mov edi, dword [ebp - 0xb0]
mov dword [ebp - 0xd8], edi
lea eax, [ebp - 0xa1]
mov byte [ebp - 4], 9
push eax
push 0x105
lea ecx, [ebp - 0xbc]
call fcn.004cbe30
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea eax, [ebp - 0xa1]
mov byte [ebp - 4], 0xb
push eax
push 0x104
lea ecx, [ebp - 0xcc]
call fcn.004cbe30
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
sub eax, ecx
sar eax, 1
mov byte [ebp - 4], 0xc
mov dword [ebp - 0xa8], eax
je 0x4d1fa0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004deb23
mov ebx, dword [ebp - 0xb8]
add esp, 4
mov eax, dword [ebp - 0xbc]
sub ebx, eax
sar ebx, 1
je 0x4d1fa5
cmp dword [ebp - 0xa8], 0
jbe 0x4d1faa
push eax
call fcn.004deb02
push eax
push str.regbckp_
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test ebx, ebx
je 0x4d1faf
mov edx, dword [ebp - 0xbc]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1d50
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.0044eb60
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
test eax, eax
je 0x4d1db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Cant_save_key_to_disk.
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.0044dac0
push esi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x20]
jmp 0x4d1f9a
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044d8b0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 8
cmovae eax, dword [ebp - 0x70]
push eax
push edi
mov byte [ebp - 4], 0xe
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyW]
test eax, eax
je 0x4d1e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Cant_restore_key_from_disk_with_error.
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.0044dac0
push esi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x20]
jmp 0x4d1f9a
xor eax, eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], eax
je 0x4d1e4b
lea eax, [ebp - 0x40]
push eax
call fcn.004cdf30
add esp, 4
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044eb60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d1e93
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d1e89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d1fb4
push edx
push ecx
call fcn.0048af59
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4d1ecd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d1ec3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d1fb9
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00452970
lea ecx, [ebp - 0x70]
call fcn.0044d800
lea ecx, [ebp - 0xbc]
call fcn.00452970
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x11
test edi, edi
je 0x4d1f19
push edi
call ebx
test eax, eax
je 0x4d1f19
call fcn.0044e7f0
mov byte [ebp - 4], 0x12
test esi, esi
je 0x4d1f2d
push esi
call ebx
test eax, eax
je 0x4d1f2d
call fcn.0044e7f0
lea ecx, [ebp - 0x88]
call fcn.004cf0d0
lea ecx, [ebp - 0xa0]
call fcn.004cf0d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
ret
call fcn.004aae7a
call fcn.004aae7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Cant_open_source_key.
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0044dac0
mov byte [ebp - 4], 6
push esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0xc0]
push eax
call fcn.004a18e8
call fcn.00453f30
call fcn.00453f30
call fcn.00453f30
call fcn.00453f30
call fcn.004aae7a
call fcn.004aae7a
int3