Function at 0x4101a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4474a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
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 0x44d9c0
push eax
call fcn.00422dfe
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
add esi, 1
test eax, eax
je 0x410206
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 0x410231
sub esi, 1
jne 0x410249
call fcn.00420b10
test al, al
je 0x410270
mov eax, 0x100
mov dword [esp + 0x14], eax
jmp 0x410249
call fcn.00420b10
test al, al
je 0x410245
mov eax, 0x200
mov dword [esp + 0x14], eax
jmp 0x410249
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 0x410275
mov eax, 3
test eax, eax
mov ecx, eax
mov dword [esp + 0x38], ecx
jne 0x4103d5
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 0x410290
sub eax, edx
sar eax, 1
je 0x4103ab
push 0x44f030
push ebp
call fcn.00422dfe
add esp, 8
test eax, eax
jne 0x4102c9
push esi
lea ecx, [esp + 0x14]
push ecx
mov edx, edi
call fcn.0041d040
jmp 0x41038e
push 0x44f038
push ebp
call fcn.00422dfe
add esp, 8
test eax, eax
jne 0x410342
movzx eax, word [edi]
cmp ax, 0x78
jne 0x4102f6
push 0x10
push 0
add edi, 2
push edi
call fcn.004242f6
add esp, 0xc
jmp 0x41031e
cmp ax, 0x30
jne 0x410315
cmp word [edi + 2], 0x78
jne 0x410315
push 0x10
push 0
add edi, 4
push edi
call fcn.004242f6
add esp, 0xc
jmp 0x41031e
push edi
call fcn.00423f29
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 0x41038e
push 0x44dc44
push ebp
call fcn.00422dfe
add esp, 8
test eax, eax
jne 0x41038a
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410360
sub eax, edx
sar eax, 1
test al, 1
je 0x41039c
push str.Hex_string_should_be_even
push 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4103ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4103af
push esi
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
call fcn.0041d080
jmp 0x41038e
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4103be
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 0x4103fd
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