Function at 0x4102a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x446ff8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
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 0x44d9a8
push eax
call fcn.00422afe
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
add esi, 1
test eax, eax
je 0x410306
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 0x410331
sub esi, 1
jne 0x410349
call fcn.00420bb0
test al, al
je 0x410370
mov eax, 0x100
mov dword [esp + 0x14], eax
jmp 0x410349
call fcn.00420bb0
test al, al
je 0x410345
mov eax, 0x200
mov dword [esp + 0x14], eax
jmp 0x410349
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 0x410375
mov eax, 3
test eax, eax
mov ecx, eax
mov dword [esp + 0x38], ecx
jne 0x4104d5
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 0x410390
sub eax, edx
sar eax, 1
je 0x4104ab
push 0x44f018
push ebp
call fcn.00422afe
add esp, 8
test eax, eax
jne 0x4103c9
push esi
lea ecx, [esp + 0x14]
push ecx
mov edx, edi
call fcn.0041d1c0
jmp 0x41048e
push 0x44f020
push ebp
call fcn.00422afe
add esp, 8
test eax, eax
jne 0x410442
movzx eax, word [edi]
cmp ax, 0x78
jne 0x4103f6
push 0x10
push 0
add edi, 2
push edi
call fcn.004237e7
add esp, 0xc
jmp 0x41041e
cmp ax, 0x30
jne 0x410415
cmp word [edi + 2], 0x78
jne 0x410415
push 0x10
push 0
add edi, 4
push edi
call fcn.004237e7
add esp, 0xc
jmp 0x41041e
push edi
call fcn.004233b6
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 0x41048e
push 0x44dc2c
push ebp
call fcn.00422afe
add esp, 8
test eax, eax
jne 0x41048a
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410460
sub eax, edx
sar eax, 1
test al, 1
je 0x41049c
push str.Hex_string_should_be_even
push 0x4575d0
mov eax, 2
call fcn.00419220
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4104ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4104af
push esi
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
call fcn.0041d200
jmp 0x41048e
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4104be
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 0x4104fd
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