Function at 0x4a3420
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
mov dword [esp + 4], ecx
push ebx
push ebp
push esi
push edi
test edx, edx
je 0x4a3700
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4a3700
cmp edi, 0xfffffffe
je 0x4a3700
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x4f898c]
push 0
mov eax, dword [eax + 0xb0]
or eax, 0x20006
push eax
push 0
push 0x4e3371
push 0
push dword [esp + 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x4a3705
dec edi
cmp edi, 6
ja case.0x4a3491.5
jmp dword [edi*4 + 0x4a3734]
mov edx, dword [esp + 0x30]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a34a1
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push dword [esp + 0x3c]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3705
mov edx, dword [esp + 0x30]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a34e0
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push 2
jmp 0x4a34b1
mov ebx, dword [esp + 0x30]
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a3500
sub esi, ecx
lea eax, [esi + 2]
push eax
call fcn.004c4e35
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a352f
push dword [esp + 0x24]
mov esi, 0xe
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3705
push esi
push ebx
push edi
call fcn.004cc440
add esp, 0xc
mov word [esi + edi], 0
test esi, esi
je 0x4a3550
cmp byte [esi + edi - 1], 0xa
jne 0x4a3550
dec esi
mov byte [esi + edi], 0
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x4a3568
cmp cl, 0xa
jne 0x4a3560
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4a3558
lea eax, [esi + 2]
neg esi
sbb esi, esi
and esi, eax
push esi
push edi
push 7
push 0
push dword [esp + 0x3c]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call fcn.004c4247
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3705
mov esi, dword [esp + 0x30]
mov al, byte [esi]
test al, al
je 0x4a362b
mov ecx, esi
nop
cmp al, 0x20
je 0x4a35b8
cmp al, 9
jne 0x4a35be
mov al, byte [ecx + 1]
inc ecx
jmp 0x4a35b0
test al, al
je 0x4a3610
cmp al, 0x2d
je 0x4a35ca
cmp al, 0x2b
jne 0x4a35d1
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4a3610
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x4a35e0
cmp al, 0x58
jne 0x4a3610
movsx eax, byte [ecx + 2]
push eax
call fcn.004c4410
add esp, 4
test eax, eax
je 0x4a3610
push 0x10
push 0
push esi
call fcn.004c4c8d
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 4
jmp 0x4a34b1
push esi
call fcn.004c4db1
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 4
jmp 0x4a34b1
xor eax, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 4
jmp 0x4a34b1
mov ebx, dword [esp + 0x30]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4a3646
sub ebx, ecx
test bl, 1
jne case.0x4a3491.5
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
mov dword [esp + 0x14], esi
call fcn.004c4e35
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x4a351b
xor ebp, ebp
xor edx, edx
test ebx, ebx
jle 0x4a36e1
cmp ebp, esi
jge 0x4a36e1
xor ecx, ecx
lea esi, [ecx + 0x10]
nop dword [eax]
mov eax, dword [esp + 0x30]
mov edi, ecx
mov cl, byte [edx + eax]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4a36a8
movsx eax, cl
sub eax, 0x30
jmp 0x4a36c4
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x4a36b7
movsx eax, cl
sub eax, 0x37
jmp 0x4a36c4
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x4a36ea
movsx eax, cl
sub eax, 0x57
mov ecx, esi
inc edx
imul ecx, eax
add ecx, edi
sub esi, 0xf
jns 0x4a3690
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov byte [edi + ebp], cl
inc ebp
cmp edx, ebx
jl 0x4a3684
push ebp
push edi
push 3
jmp 0x4a3575
push dword [esp + 0x20]
call fcn.004c4247
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x57
mov ecx, dword [esp + 0x14]
test esi, esi
push esi
setne al
movzx eax, al
push eax
call fcn.0044d680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
push dword [esp + 0x24]
mov esi, 0x57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3705