Function at 0x1802a550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2124
call fcn.18199bf0
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2124], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x210c], eax
mov edi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2120], edi
push eax
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x2110], esi
call fcn.1802a406
test eax, eax
js 0x1802a8f8
lea edx, [ebp - 0x210c]
lea ecx, [ebp - 0x2004]
call fcn.1802a322
test eax, eax
jne 0x1802a5c8
mov eax, 0x80020009
jmp 0x1802a8f8
mov ecx, edi
call fcn.1802a3e6
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.1802a406
test eax, eax
js 0x1802a8f8
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x1802a8a7
sub eax, 9
je 0x1802a761
push 2
pop ecx
sub eax, ecx
je 0x1802a725
sub eax, 0x3ff5
jne 0x1802a8e5
lea eax, [ebp - 0x2004]
push eax
call fcn.18179019
pop ecx
push 2
pop edx
add eax, edx
xor ecx, ecx
mul edx
mov dword [ebp - 0x2108], ecx
cmp edx, ecx
ja 0x1802a909
cmp eax, 0xffffffff
ja 0x1802a909
cmp eax, 0x100
jbe 0x1802a65e
push eax
lea ecx, [ebp - 0x2108]
call fcn.1802fbfe
mov esi, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x1802a66a
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x1802a704
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x1802a6b7
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x1802a6a7
push 0x30
pop edx
cmp word [eax], dx
jne 0x1802a6a7
xor ecx, ecx
push eax
mov word [esi], cx
call ebx
mov edi, eax
jmp 0x1802a6ad
mov word [esi], cx
add edi, 2
xor ecx, ecx
add esi, 2
cmp word [edi], cx
jne 0x1802a688
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2108]
test esi, esi
jne 0x1802a6c9
push 0xd
jmp 0x1802a706
mov edi, ecx
mov ebx, esi
push ebx
call fcn.18179019
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x1802a6cd
mov eax, dword [ebp - 0x2114]
push edi
push esi
push 7
push 0
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x1802a707
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x1802a8d2
lea ecx, [ebp - 0x2108]
call fcn.1802ef44
jmp 0x1802a8d2
lea eax, [ebp - 0x2114]
push eax
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x1802a8f8
mov eax, dword [ebp - 0x2114]
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push 4
push eax
push 4
jmp 0x1802a8c5
lea eax, [ebp - 0x2004]
push eax
call fcn.18179019
mov ebx, eax
mov dword [ebp - 0x2118], ebx
pop ecx
test bl, 1
jne 0x1802a7c6
and dword [ebp - 0x2108], 0
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x211c], edi
cmp edi, 0x100
jbe 0x1802a7ab
push edi
lea ecx, [ebp - 0x2108]
call fcn.1802fbfe
mov eax, dword [ebp - 0x2108]
jmp 0x1802a7b7
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x1802a7d0
lea ecx, [ebp - 0x2108]
call fcn.1802ef44
mov eax, 0x80004005
jmp 0x1802a8f8
push edi
push 0
push eax
call fcn.181757a0
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x210c], edx
test ebx, ebx
jle 0x1802a870
mov edi, dword [ebp - 0x2118]
push 0x30
pop esi
movzx eax, word [ebp + edx*2 - 0x2004]
mov ecx, eax
mov ebx, eax
cmp cx, si
jb 0x1802a82e
cmp ecx, 0x39
jbe 0x1802a829
cmp ecx, 0x40
jbe 0x1802a82e
cmp ecx, 0x46
jbe 0x1802a824
cmp ecx, 0x60
jbe 0x1802a82e
cmp ebx, 0x66
ja 0x1802a82e
sub bl, 0x57
jmp 0x1802a830
sub bl, 0x37
jmp 0x1802a830
sub bl, 0x30
jmp 0x1802a830
xor bl, bl
mov eax, dword [ebp - 0x210c]
mov esi, edx
mov edx, dword [ebp - 0x2108]
and eax, 1
push 4
shr esi, 1
shl eax, 2
pop ecx
sub ecx, eax
shl bl, cl
or byte [esi + edx], bl
mov edx, dword [ebp - 0x210c]
inc edx
mov dword [ebp - 0x210c], edx
push 0x30
pop esi
cmp edx, edi
jl 0x1802a7f5
mov edi, dword [ebp - 0x211c]
mov esi, dword [ebp - 0x2110]
mov eax, dword [ebp - 0x2114]
push edi
push dword [ebp - 0x2108]
push 3
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x1802a8d2
lea ecx, [ebp - 0x2108]
call fcn.1802ef44
jmp 0x1802a8d2
lea eax, [ebp - 0x2004]
push eax
call fcn.18179019
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1802a8df
mov ecx, edi
call fcn.1802997b
jmp 0x1802a8f8
mov edi, dword [ebp - 0x2120]
push dword [ebp - 0x2124]
mov ecx, edi
call fcn.1802a406
test eax, eax
js 0x1802a8f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret 0xc
push 0x80070216
call fcn.18006655
int3