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

Disassembly:
push 0xffffffffffffffff
push 0x57c161
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5ecfcc]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
call fcn.0042fcf0
call fcn.0042eb90
test al, al
jne 0x4314ce
call fcn.0042ed00
call fcn.005322b0
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4314ea
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x44c], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x38], 1
mov byte [esp + 0x1c], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
push str.OptionImageCache
lea ecx, [esp + 0x1c]
push 0x5eed38
push ecx
mov byte [esp + 0x458], 1
call fcn.00403710
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push 0x2001f
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x38], ebx
call edi
cmp eax, ebx
jne 0x43156b
mov esi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x18]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431590
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [esp + 0x17], bl
je 0x4315d2
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.Enabled
push esi
mov dword [esp + 0x30], 4
call ebp
cmp eax, ebx
jne 0x4315d2
cmp dword [esp + 0x24], 4
jne 0x4315d2
cmp dword [esp + 0x28], ebx
setne cl
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
call fcn.00425260
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004029a0
push str.OptionLibIndex
lea eax, [esp + 0x1c]
push 0x5eed38
push eax
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x431637
xor eax, eax
cmp esi, ebx
je 0x431629
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x18]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43165c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x431725
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.SaveInBrowserFolderFirst
mov edi, 4
push esi
mov dword [esp + 0x30], edi
call ebp
cmp eax, ebx
jne 0x43169c
cmp dword [esp + 0x1c], edi
jne 0x43169c
cmp dword [esp + 0x28], ebx
setne cl
mov byte [esp + 0x34], cl
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.ReadFromBrowserFolderFirst
push esi
mov dword [esp + 0x30], edi
call ebp
cmp eax, ebx
jne 0x4316cd
cmp dword [esp + 0x1c], edi
jne 0x4316cd
cmp dword [esp + 0x28], ebx
setne dl
mov byte [esp + 0x38], dl
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x58c2a0
push esi
mov dword [esp + 0x54], 0x400
call ebp
test eax, eax
jne 0x431710
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4316f8
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
call fcn.00403070
cmp esi, ebx
je 0x431721
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x20]
cmp dword [edi - 0xc], ebx
je 0x43175e
push edi
call fcn.00430e60
add esp, 4
test al, al
jne 0x431755
push edi
call fcn.004313a0
add esp, 4
test al, al
jne 0x431755
lea ecx, [esp + 0x20]
call fcn.004029a0
mov edi, dword [esp + 0x20]
cmp dword [edi - 0xc], ebx
jne 0x4318c6
call dword [sym.imp.GsUI.dll_getAppDataPath]
cmp eax, ebx
jne 0x43176c
xor ecx, ecx
jmp 0x43177a
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x431771
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00403070
push 0x16
push str.AcmeCADSeeImageCache
lea ecx, [esp + 0x28]
call fcn.00403470
mov edi, dword [esp + 0x20]
push edi
call fcn.00430e60
add esp, 4
test al, al
jne 0x431807
push edi
call fcn.004313a0
add esp, 4
test al, al
jne 0x431807
mov ecx, dword [0x5f2a94]
mov edx, dword [ecx]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00430ba0
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x450], 2
call fcn.00403590
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x44c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
push str.OptionLibIndex
lea ecx, [esp + 0x1c]
push 0x5eed38
push ecx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x431862
xor eax, eax
cmp esi, ebx
je 0x431854
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x18]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431887
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x4318c6
xor eax, eax
cmp edi, ebx
setne al
cmp eax, ebx
je 0x4318b1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push 0x58c2a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x4318c2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x40], esp
mov ebp, esp
push edi
call fcn.00402a50
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.0042e1b0
add esp, 0xc
cmp esi, ebx
je 0x4318fc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431920
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.0055953b
add esp, 0x43c
ret