Function at 0x4a0d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c6d1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2278
call fcn.00503a90
mov eax, dword [0x595be0]
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 - 0x223c], ecx
xor eax, eax
mov word [ebp - 0x2238], ax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2268], 0
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, dword [ebp - 0x223c]
call fcn.004a0af0
mov dword [ebp - 0x2224], eax
cmp dword [ebp - 0x2224], 0
jge 0x4a0da5
mov eax, dword [ebp - 0x2224]
jmp 0x4a1320
lea edx, [ebp - 0x2238]
push edx
lea eax, [ebp - 0x2014]
push eax
call fcn.004a0810
add esp, 8
test eax, eax
jne 0x4a0dd4
push 0x20f
mov ecx, dword [ebp - 0x223c]
call fcn.0049fce0
jmp 0x4a1320
mov ecx, dword [ebp - 0x223c]
call fcn.004a0ab0
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, dword [ebp - 0x223c]
call fcn.004a0af0
mov dword [ebp - 0x2224], eax
cmp dword [ebp - 0x2224], 0
jge 0x4a0e0b
mov eax, dword [ebp - 0x2224]
jmp 0x4a1320
movzx edx, word [ebp - 0x2238]
mov dword [ebp - 0x2234], edx
cmp dword [ebp - 0x2234], 0x13
jg 0x4a0e49
cmp dword [ebp - 0x2234], 0x13
je 0x4a106c
cmp dword [ebp - 0x2234], 8
je 0x4a0e5a
cmp dword [ebp - 0x2234], 0x11
je 0x4a10eb
jmp 0x4a12d4
cmp dword [ebp - 0x2234], 0x4008
je 0x4a0e7a
jmp 0x4a12d4
push 1
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046b450
mov dword [ebp - 0x222c], eax
jmp 0x4a12d4
lea edx, [ebp - 0x2014]
mov dword [ebp - 0x2240], edx
mov eax, dword [ebp - 0x2240]
add eax, 2
mov dword [ebp - 0x2270], eax
mov ecx, dword [ebp - 0x2240]
mov dx, word [ecx]
mov word [ebp - 0x224e], dx
add dword [ebp - 0x2240], 2
cmp word [ebp - 0x224e], 0
jne 0x4a0e95
mov eax, dword [ebp - 0x2240]
sub eax, dword [ebp - 0x2270]
sar eax, 1
mov dword [ebp - 0x227c], eax
mov ecx, dword [ebp - 0x227c]
add ecx, 2
mov dword [ebp - 0x2248], ecx
lea ecx, [ebp - 0x221c]
call fcn.004010a0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2248]
push edx
lea ecx, [ebp - 0x221c]
call fcn.004ac1e0
jmp 0x4a0f09
mov dword [ebp - 4], 0
jmp 0x4a0f19
lea ecx, [ebp - 0x221c]
call fcn.00402a70
test eax, eax
je 0x4a104b
lea ecx, [ebp - 0x221c]
call fcn.00402a70
mov dword [ebp - 0x2220], eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2248], 0
mov ecx, dword [ebp - 0x2228]
movzx edx, word [ecx]
test edx, edx
je 0x4a1006
mov eax, dword [ebp - 0x2228]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x225c], eax
mov ecx, dword [ebp - 0x2228]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4a0fc2
mov eax, dword [ebp - 0x225c]
movzx ecx, word [eax]
cmp ecx, 0x30
jne 0x4a0fc2
xor edx, edx
mov eax, dword [ebp - 0x2220]
mov word [eax], dx
mov ecx, dword [ebp - 0x2220]
add ecx, 2
mov dword [ebp - 0x2220], ecx
mov edx, dword [ebp - 0x225c]
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2228], eax
jmp 0x4a0ff2
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2228]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x2220]
add eax, 2
mov dword [ebp - 0x2220], eax
mov ecx, dword [ebp - 0x2228]
add ecx, 2
mov dword [ebp - 0x2228], ecx
mov edx, dword [ebp - 0x2248]
add edx, 1
mov dword [ebp - 0x2248], edx
jmp 0x4a0f53
xor eax, eax
mov ecx, dword [ebp - 0x2220]
mov word [ecx], ax
mov edx, dword [ebp - 0x2220]
add edx, 2
mov dword [ebp - 0x2220], edx
xor eax, eax
mov ecx, dword [ebp - 0x2220]
mov word [ecx], ax
lea ecx, [ebp - 0x221c]
call fcn.00402a70
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0049f920
mov dword [ebp - 0x222c], eax
jmp 0x4a1055
mov dword [ebp - 0x222c], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x221c]
call fcn.004ac190
jmp 0x4a12d4
call fcn.004277f0
mov dword [ebp - 0x2288], eax
lea ecx, [ebp - 0x226c]
call fcn.004010a0
mov dword [ebp - 4], 3
push 0x400
lea eax, [ebp - 0x2014]
push eax
call fcn.00429a60
add esp, 8
mov dword [ebp - 0x2284], eax
lea ecx, [ebp - 0x2280]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x2284]
push edx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2280]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046b420
mov dword [ebp - 0x222c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x226c]
call fcn.00464ae0
jmp 0x4a12d4
lea edx, [ebp - 0x2014]
mov dword [ebp - 0x2244], edx
mov eax, dword [ebp - 0x2244]
add eax, 2
mov dword [ebp - 0x2264], eax
mov ecx, dword [ebp - 0x2244]
mov dx, word [ecx]
mov word [ebp - 0x2256], dx
add dword [ebp - 0x2244], 2
cmp word [ebp - 0x2256], 0
jne 0x4a1106
mov eax, dword [ebp - 0x2244]
sub eax, dword [ebp - 0x2264]
sar eax, 1
mov dword [ebp - 0x2274], eax
mov ecx, dword [ebp - 0x2274]
mov dword [ebp - 0x2254], ecx
mov edx, dword [ebp - 0x2254]
and edx, 1
je 0x4a115c
mov eax, 0x80004005
jmp 0x4a1320
mov eax, dword [ebp - 0x2254]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x224c], eax
lea ecx, [ebp - 0x2118]
call fcn.004010a0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x224c]
push eax
lea ecx, [ebp - 0x2118]
call fcn.004ac210
jmp 0x4a119d
mov dword [ebp - 4], 4
jmp 0x4a11ad
lea ecx, [ebp - 0x2118]
call fcn.00402a70
test eax, eax
jne 0x4a11e3
mov dword [ebp - 0x2278], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2118]
call fcn.004ac190
mov eax, dword [ebp - 0x2278]
jmp 0x4a1320
mov ecx, dword [ebp - 0x224c]
push ecx
push 0
lea ecx, [ebp - 0x2118]
call fcn.00402a70
push eax
call fcn.00503b40
add esp, 0xc
mov dword [ebp - 0x2230], 0
jmp 0x4a121b
mov edx, dword [ebp - 0x2230]
add edx, 1
mov dword [ebp - 0x2230], edx
mov eax, dword [ebp - 0x2230]
cmp eax, dword [ebp - 0x2254]
jge 0x4a1292
mov eax, dword [ebp - 0x2230]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2118]
call fcn.00402a70
add eax, esi
mov dword [ebp - 0x2260], eax
mov ecx, dword [ebp - 0x2230]
and ecx, 1
mov esi, 1
sub esi, ecx
shl esi, 2
mov edx, dword [ebp - 0x2230]
movzx eax, word [ebp + edx*2 - 0x2014]
push eax
call fcn.004a08e0
add esp, 4
movzx edx, al
mov ecx, esi
shl edx, cl
mov eax, dword [ebp - 0x2260]
movzx ecx, byte [eax]
or ecx, edx
mov edx, dword [ebp - 0x2260]
mov byte [edx], cl
jmp 0x4a120c
mov eax, dword [ebp - 0x224c]
push eax
lea ecx, [ebp - 0x2118]
call fcn.00402a70
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402a70
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x222c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2118]
call fcn.004ac190
cmp dword [ebp - 0x222c], 0
je 0x4a12f8
mov dword [ebp - 0x2268], 0x204
mov edx, dword [ebp - 0x222c]
push edx
call fcn.0049f500
add esp, 4
jmp 0x4a1320
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x223c]
call fcn.004a0af0
mov dword [ebp - 0x2224], eax
cmp dword [ebp - 0x2224], 0
jge 0x4a131e
mov eax, dword [ebp - 0x2224]
jmp 0x4a1320
xor eax, eax
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.004fdc6a
mov esp, ebp
pop ebp
ret 0xc