Function at 0x1009f371
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x244
mov eax, 0x1014c450
call fcn.101439bc
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x220], esi
call fcn.100989f5
and dword [ebp - 4], 0
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push dword [ebp - 0x234]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1009f57a
mov ecx, 0x80000002
cmp ebx, ecx
jne 0x1009f4be
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push dword [0x1018dd9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009f611
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [0x1018dda0]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009f611
push dword [ebp - 0x218]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
pop ecx
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [0x1018dda0]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x244]
call fcn.1009891a
push esi
mov byte [ebp - 4], 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0
push dword [ebp - 0x240]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fstp qword [ebp - 0x250]
movsd xmm1, qword [ebp - 0x250]
add esp, 0xc
comisd xmm1, xmmword [0x1015f1f8]
jae 0x1009f55c
xorps xmm0, xmm0
comisd xmm0, xmm1
jae 0x1009f55c
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x214]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [ebp - 0x234]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1009f611
lea eax, [ebp - 0x244]
push eax
call fcn.1009ee10
pop ecx
push dword [eax + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push dword [eax + 4]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
xor ebx, ebx
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], bl
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
push 0xff
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x230]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, dword [ebp - 0x228]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1009f57c
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.100988a3
lea ecx, [ebp - 0x244]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
jmp 0x1009f61f
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009f605
push dword [ebp - 0x218]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
pop ecx
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x244]
call fcn.1009891a
push dword [eax + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
push dword [eax + 4]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], bl
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.100988a3
lea ecx, [ebp - 0x230]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, edi
call fcn.10143966
ret