Function at 0x414d80
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44dd9b
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
mov ebx, dword [esp + 0x148]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
jne 0x414db3
xor al, al
jmp 0x414f84
push str.SYSTEMCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call fcn.004152c0
mov eax, 0x51eb851f
mov dword [esp + 0x14c], esi
mul dword [esp + 0x158]
shr edx, 5
push edx
push str.CSDdiv
lea eax, [esp + 0x28]
push str._s_d00
push eax
call fcn.004276c9
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, esi
je 0x414e45
mov ecx, 4
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
test al, al
jne 0x414e4c
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x414e45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x414f84
mov eax, dword [esp + 0x14]
push eax
call fcn.00414fa0
add esp, 4
lea ecx, [esp + 0x40]
mov ebp, eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x46413c
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0042766f
add esp, 8
cmp eax, 0xffffffff
jne 0x414f1a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414e45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x414f84
lea ecx, [esp + 0x40]
push ecx
call fcn.004167a0
lea edx, [ebp + 0x80]
add esp, 4
cmp eax, edx
jl 0x414f03
lea eax, [esp + 0x40]
push 0x464104
push eax
call fcn.0042765c
mov esi, eax
add esp, 8
test esi, esi
je 0x414f03
push 0
push ebp
push esi
call fcn.00427482
push esi
push 0x80
push 1
push ebx
call fcn.004275b4
push esi
mov edi, eax
call fcn.004271af
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp edi, 0x80
jne 0x414f07
test eax, eax
je 0x414f82
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret