Function at 0x41309d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.0042fc60
mov eax, dword [0x44a2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2120], eax
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2110], eax
mov edi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x211c], edi
push eax
mov dword [ebp - 0x210c], ebx
mov dword [ebp - 0x2114], esi
call fcn.00412f4b
test eax, eax
js 0x413448
lea edx, [ebp - 0x2110]
lea ecx, [ebp - 0x2004]
call fcn.00412e60
test eax, eax
jne 0x413115
mov eax, 0x80020009
jmp 0x413448
mov ecx, edi
call fcn.00412f22
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.00412f4b
test eax, eax
js 0x413448
movzx eax, word [ebp - 0x2110]
sub eax, 8
je 0x4133e8
sub eax, 9
je 0x413295
dec eax
dec eax
je 0x413256
sub eax, 0x3ff5
jne 0x413432
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413169
sub ecx, edx
mov dword [ebp - 0x2108], esi
sar ecx, 1
xor eax, eax
add ecx, 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x41345b
cmp ecx, 0xffffffff
ja 0x41345b
cmp ecx, 0x100
jbe 0x4131b6
push ecx
lea ecx, [ebp - 0x2108]
call fcn.00414361
mov esi, dword [ebp - 0x2108]
jmp 0x4131c2
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x413235
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x413214
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x4131fe
push 0x30
pop edx
cmp word [eax], dx
jne 0x4131fe
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x413207
mov word [esi], cx
add esi, 2
add edi, 2
xor eax, eax
cmp word [edi], ax
jne 0x4131dc
mov ebx, dword [ebp - 0x210c]
xor eax, eax
mov ecx, ebx
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2114]
call fcn.00412820
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x413238
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x41341f
lea ecx, [ebp - 0x2108]
call fcn.00414358
jmp 0x41341f
lea eax, [ebp - 0x210c]
push eax
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x413448
mov eax, dword [ebp - 0x210c]
mov dword [ebp - 0x2114], eax
lea eax, [ebp - 0x2114]
push 4
push eax
push 4
xor eax, eax
push eax
jmp 0x413414
lea ebx, [ebp - 0x2004]
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x4132a0
sub ebx, ecx
sar ebx, 1
test bl, 1
je 0x4132be
mov eax, 0x80004005
jmp 0x413448
mov eax, ebx
xor ecx, ecx
cdq
sub eax, edx
mov dword [ebp - 0x2108], ecx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2118], esi
cmp ecx, ecx
ja 0x41345b
cmp esi, 0xffffffff
ja 0x41345b
cmp esi, 0x100
jbe 0x413304
push esi
lea ecx, [ebp - 0x2108]
call fcn.00414361
mov eax, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x413310
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x41332b
lea eax, [ebp - 0x2104]
test eax, eax
je 0x4132b4
lea ecx, [ebp - 0x2108]
call fcn.00414358
jmp 0x4132b4
push esi
push ecx
push eax
call fcn.004230a0
xor ecx, ecx
add esp, 0xc
mov edi, ecx
test ebx, ebx
jle 0x4133ad
mov eax, edi
cdq
sub eax, edx
movzx edx, word [ebp + edi*2 - 0x2004]
sar eax, 1
add eax, dword [ebp - 0x2108]
mov dword [ebp - 0x2110], eax
mov eax, edx
cmp eax, 0x30
jl 0x413386
cmp eax, 0x39
jle 0x413381
cmp eax, 0x40
jle 0x413386
cmp eax, 0x46
jle 0x41337c
add eax, 0xffffff9f
cmp eax, 5
ja 0x413386
sub dl, 0x57
jmp 0x413388
sub dl, 0x37
jmp 0x413388
sub dl, 0x30
jmp 0x413388
mov dl, cl
mov eax, edi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x2110]
shl dl, cl
push 0
pop ecx
or byte [eax], dl
inc edi
cmp edi, ebx
jl 0x41333e
mov esi, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x210c]
push esi
push dword [ebp - 0x2108]
push 3
push ecx
push dword [ebp - 0x2114]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x41341f
lea ecx, [ebp - 0x2108]
call fcn.00414358
jmp 0x41341f
lea ecx, [ebp - 0x2004]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4133f3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push edi
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x41342c
mov ecx, edi
call fcn.0041241b
jmp 0x413448
mov edi, dword [ebp - 0x211c]
push dword [ebp - 0x2120]
mov ecx, edi
call fcn.00412f4b
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e398
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.004094e3
int3