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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
call fcn.008456c2
add esp, 4
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x70]
add ecx, 4
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x18], 0x10
jb 0x81910a
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x74], ecx
jmp 0x819113
mov edx, dword [ebp - 0x48]
add edx, 4
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x70]
add eax, 0x3c
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00818590
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x81920d
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 4
mov edx, dword [ebp - 0x70]
add edx, 0x20
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 0x10
jb 0x819170
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x78], edx
jmp 0x819179
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x8191f4
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], 4
mov edx, dword [ebp - 0x70]
add edx, 0x20
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x18], 0x10
jb 0x8191cb
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x7c], edx
jmp 0x8191d4
mov eax, dword [ebp - 0x50]
add eax, 4
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 4
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x3c], 0
je 0x81920b
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 8]
jmp 0x81930f
jmp 0x819286
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x819286
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x70]
add ecx, 4
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x18], 0x10
jb 0x819239
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x80], ecx
jmp 0x819242
mov edx, dword [ebp - 0x54]
add edx, 4
mov dword [ebp - 0x80], edx
push 0
lea eax, [ebp - 0x40]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00818590
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x40], 0
je 0x819278
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x44], 0
sete al
jmp 0x81930f
cmp dword [ebp - 0x2c], 0x3ff3d380
jae 0x8192a0
push 0x29a
mov ecx, dword [ebp - 0x70]
call fcn.00819320
xor eax, eax
jmp 0x81930f
mov eax, dword [ebp + 8]
imul eax, eax, 0x18
imul eax, eax, 0x3c
imul eax, eax, 0x3c
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, edx
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0xc], 0
jl 0x8192fb
jg 0x8192e9
cmp dword [ebp - 0x10], 0
jb 0x8192fb
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jl 0x81930c
jg 0x8192fb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jbe 0x81930c
push 0x29a
mov ecx, dword [ebp - 0x70]
call fcn.00819320
xor eax, eax
jmp 0x81930f
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret 8