Function at 0x431140
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x57c118
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call fcn.0042f680
push str.OptionImageCache
lea eax, [esp + 0x20]
push 0x5eed38
push eax
call fcn.00403710
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x3c], ebx
call edi
cmp eax, ebx
jne 0x4311d2
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
cmp eax, ebx
mov eax, dword [esp + 0x1c]
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 0x4311f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [esp + 0x17], bl
je 0x43124e
call fcn.00424e70
test eax, eax
je 0x43121a
call fcn.00424e70
mov ecx, eax
call fcn.00424ea0
jmp 0x43121c
xor al, al
push 4
xor ecx, ecx
lea edx, [esp + 0x20]
push edx
cmp al, bl
push 4
setne cl
push ebx
push str.Enabled
push esi
mov dword [esp + 0x34], ecx
call ebp
cmp esi, ebx
je 0x43124a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
push str.OptionLibIndex
lea eax, [esp + 0x20]
push 0x5eed38
push eax
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x3c], ebx
call edi
cmp eax, ebx
jne 0x4312a5
xor eax, eax
cmp esi, ebx
je 0x431297
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
cmp eax, ebx
mov eax, dword [esp + 0x1c]
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 0x4312ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x431381
call fcn.0042a610
test eax, eax
je 0x4312e7
call fcn.0042a610
mov al, byte [eax + 0x14]
jmp 0x4312e9
xor al, al
push 4
xor ecx, ecx
lea edx, [esp + 0x20]
push edx
cmp al, bl
push 4
setne cl
push ebx
push str.SaveInBrowserFolderFirst
push esi
mov dword [esp + 0x34], ecx
call ebp
call fcn.0042a610
test eax, eax
je 0x431319
call fcn.0042a610
mov al, byte [eax + 0x15]
jmp 0x43131b
mov al, 1
push 4
xor ecx, ecx
lea edx, [esp + 0x20]
push edx
cmp al, bl
push 4
setne cl
push ebx
push str.ReadFromBrowserFolderFirst
push esi
mov dword [esp + 0x34], ecx
call ebp
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
call fcn.004309c0
mov edi, dword [eax]
cmp edi, ebx
je 0x431361
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push 0x58c2a0
push esi
call ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431381
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x43138c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret