Function at 0x41e1d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44cd68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x462408]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov edi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x3c]
push 0x453e5c
push eax
call fcn.00436262
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
add esi, 1
test eax, eax
je 0x41e236
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
sub esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
je 0x41e261
sub esi, 1
jne 0x41e279
call fcn.0042eab0
test al, al
je 0x41e2a0
mov eax, 0x100
mov dword [esp + 0x14], eax
jmp 0x41e279
call fcn.0042eab0
test al, al
je 0x41e275
mov eax, 0x200
mov dword [esp + 0x14], eax
jmp 0x41e279
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
or eax, 0xf003f
push eax
mov eax, dword [esp + 0x3c]
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x41e2a5
mov eax, 3
test eax, eax
mov ecx, eax
mov dword [esp + 0x38], ecx
jne 0x41e405
mov esi, dword [esp + 0x34]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e2c0
sub eax, edx
sar eax, 1
je 0x41e3db
push 0x457278
push ebp
call fcn.00436262
add esp, 8
test eax, eax
jne 0x41e2f9
push esi
lea ecx, [esp + 0x14]
push ecx
mov edx, edi
call fcn.0042abb0
jmp 0x41e3be
push 0x457280
push ebp
call fcn.00436262
add esp, 8
test eax, eax
jne 0x41e372
movzx eax, word [edi]
cmp ax, 0x78
jne 0x41e326
push 0x10
push 0
add edi, 2
push edi
call fcn.00436c5a
add esp, 0xc
jmp 0x41e34e
cmp ax, 0x30
jne 0x41e345
cmp word [edi + 2], 0x78
jne 0x41e345
push 0x10
push 0
add edi, 4
push edi
call fcn.00436c5a
add esp, 0xc
jmp 0x41e34e
push edi
call fcn.00437017
add esp, 4
push 4
lea edx, [esp + 0x40]
push edx
push 4
push 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
jmp 0x41e3be
push 0x45597c
push ebp
call fcn.00436262
add esp, 8
test eax, eax
jne 0x41e3ba
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e390
sub eax, edx
sar eax, 1
test al, 1
je 0x41e3cc
push str.Hex_string_should_be_even
push 0x463650
mov eax, 2
call fcn.0042a920
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41e3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41e3df
push esi
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
call fcn.0042acd0
jmp 0x41e3be
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41e3ee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0x14
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41e42d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0x14
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0x14