Function at 0x41e370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x43d680], 1
je 0x41e3a5
xor eax, eax
jmp 0x41e599
xor eax, eax
jne 0x41e395
cmp dword [ebp + 8], 0
jne 0x41e3bd
xor eax, eax
cmp dword [ebp + 8], 0
setne al
jmp 0x41e599
xor ecx, ecx
jne 0x41e3a9
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x41e3dc
mov ecx, dword [ebp + 8]
movzx eax, word [ecx]
neg eax
sbb eax, eax
neg eax
jmp 0x41e599
xor edx, edx
jne 0x41e3c1
xor eax, eax
jne 0x41e3a9
cmp dword [ebp + 0xc], 0
jne 0x41e3f8
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
jmp 0x41e599
xor ecx, ecx
jne 0x41e3e4
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x41e417
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
neg eax
sbb eax, eax
neg eax
jmp 0x41e599
xor edx, edx
jne 0x41e3fc
xor eax, eax
jne 0x41e3e4
mov dword [ebp - 0x14], 0
call fcn.0041d850
push eax
lea ecx, [ebp - 0x18]
call fcn.00403e80
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43342c
mov edx, dword [ebp + 8]
push edx
push 0x433430
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004042d0
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004042d0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004042d0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004042d0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403f50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00403f30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00403f30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00403f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00403f30
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
lea ecx, [ebp - 0x18]
call fcn.004043c0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0
jne 0x41e542
xor edx, edx
cmp dword [ebp - 0x14], 0
setne dl
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403f30
mov eax, dword [ebp - 0x30]
jmp 0x41e599
xor eax, eax
jne 0x41e51c
mov dword [ebp - 0x10], 4
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp + 0x10]
push edx
push 4
push 0
push 0x433434
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0
je 0x41e57b
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp dword [ebp - 0x1c], 0
sete dl
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403f30
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret