Function at 0x4a0333
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c4825
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.004333d8
mov eax, dword [0x6fe1c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1130], ecx
mov dword [ebp - 0x1124], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x112c], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1128], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1138], eax
xor ebx, ebx
mov dword [ebp - 0x111c], ebx
lea eax, [ebp - 0x1014]
push eax
call fcn.004a0be0
test eax, eax
js 0x4a083e
lea edx, [ebp - 0x111c]
lea ecx, [ebp - 0x1014]
call fcn.004a00f8
test eax, eax
jne 0x4a03cb
mov eax, 0x80020009
jmp 0x4a083e
mov ecx, dword [ebp - 0x1130]
call fcn.0049da20
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x1130]
call fcn.004a0be0
test eax, eax
js 0x4a083e
movzx eax, word [ebp - 0x111c]
sub eax, 8
je 0x4a07ef
sub eax, 9
je 0x4a0698
dec eax
sub eax, 1
je 0x4a0564
sub eax, 0x3ff5
jne 0x4a0827
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0427
sub ecx, edx
add ecx, 2
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
xor edx, edx
inc edx
call fcn.0048db84
cmp eax, 0x100
jbe 0x4a045d
push eax
lea ecx, [ebp - 0x1118]
call fcn.0048dba3
jmp 0x4a0469
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov dword [ebp - 4], ebx
jmp 0x4a0485
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x4a053b
lea edi, [ebp - 0x1014]
cmp byte [ebp - 0x1014], 0
je 0x4a04e3
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x4a04c2
cmp byte [eax], 0x30
jne 0x4a04c2
mov byte [esi], bl
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x4a04dd
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4a04dc
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x4a04e3
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x4a04a2
mov word [esi], 0
mov edx, dword [ebp - 0x1118]
test edx, edx
jne 0x4a04f6
push 0xd
jmp 0x4a053d
mov esi, ebx
mov edi, edx
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x1124], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0505
sub ecx, dword [ebp - 0x1124]
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x4a04fa
push esi
push edx
push 7
push ebx
push dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x4a053e
push 0xe
pop edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x4a081a
lea ecx, [ebp - 0x1118]
call fcn.0048dbf0
jmp 0x4a081a
mov esi, ebx
mov dword [ebp - 0x1120], esi
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1014]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a057c
sub edx, ecx
inc edx
mov dword [ebp - 0x111c], edx
push ecx
lea ecx, [ebp - 0x111c]
call fcn.004a0166
test eax, eax
js 0x4a0675
mov edi, dword [ebp - 0x111c]
cmp edi, 0x400
jg 0x4a05c6
push edi
call fcn.004a01c9
test al, al
je 0x4a05c6
mov eax, edi
call fcn.004333c5
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4a05d8
push edi
lea ecx, [ebp - 0x1120]
call fcn.004a0288
mov esi, dword [ebp - 0x1120]
push 3
shr edi, 1
push edi
lea edx, [ebp - 0x1014]
mov ecx, eax
call fcn.004a0196
test eax, eax
je 0x4a0675
lea ecx, [ebp - 0x1124]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
jns 0x4a0628
or dword [ebp - 4], 0xffffffff
jmp 0x4a061d
push esi
mov esi, dword [esi]
mov dword [ebp - 0x1120], esi
call fcn.004030a8
pop ecx
test esi, esi
jne 0x4a060e
mov eax, edi
jmp 0x4a083e
mov eax, dword [ebp - 0x1124]
mov dword [ebp - 0x111c], eax
push 4
lea eax, [ebp - 0x111c]
push eax
push 4
push ebx
push dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4a066b
push esi
mov esi, dword [esi]
mov dword [ebp - 0x1120], esi
call fcn.004030a8
pop ecx
test esi, esi
je 0x4a081a
jmp 0x4a065c
or dword [ebp - 4], 0xffffffff
jmp 0x4a068a
push esi
mov esi, dword [esi]
mov dword [ebp - 0x1120], esi
call fcn.004030a8
pop ecx
test esi, esi
jne 0x4a067b
mov eax, 0x8007000e
jmp 0x4a083e
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a06a1
sub ecx, edx
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 0x1134], ecx
test cl, 1
jne 0x4a0746
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1118], ebx
push 4
pop edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1118]
call fcn.0049c8bc
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x1120]
jmp 0x4a071a
mov eax, dword [ebp - 0x111c]
cmp dword [ebp - 0x1118], 0
jne 0x4a0750
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x4a0746
lea ecx, [ebp - 0x1118]
call fcn.0048dbf0
mov eax, 0x80004005
jmp 0x4a083e
push eax
push ebx
push dword [ebp - 0x1118]
call fcn.00436326
add esp, 0xc
mov edx, ebx
mov dword [ebp - 0x1124], edx
test esi, esi
jle 0x4a07ab
mov ebx, dword [ebp - 0x1120]
mov edi, edx
shr edi, 1
mov esi, dword [ebp - 0x1118]
mov cl, byte [ebp + edx - 0x1014]
call fcn.004a02b3
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov edx, dword [ebp - 0x1124]
inc edx
mov dword [ebp - 0x1124], edx
cmp edx, ebx
jl 0x4a0772
xor ebx, ebx
push dword [ebp - 0x111c]
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x4a081a
lea ecx, [ebp - 0x1118]
call fcn.0048dbf0
jmp 0x4a081a
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a07f8
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x4a0827
mov ecx, edi
call fcn.0049d0f4
jmp 0x4a083e
push dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x1130]
call fcn.004a0be0
test eax, eax
js 0x4a083e
xor eax, eax
lea esp, [ebp - 0x1148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040548e
leave
ret 0xc