Function at 0x426f36
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00442670
push 0xffffffffffffffff
push 0x446272
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp + 0x2104], 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 - 0x20], ecx
mov eax, dword [ebp + 0x2118]
xor ebx, ebx
mov esi, dword [ebp + 0x2110]
mov edi, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call fcn.00427589
test eax, eax
js 0x4272c6
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.00426e67
test eax, eax
jne 0x426fcc
mov eax, 0x80020009
jmp 0x4272c6
mov ecx, dword [ebp - 0x20]
call fcn.00427c20
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x104]
push eax
call fcn.00427589
test eax, eax
js 0x4272c6
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x42727b
sub eax, 9
je 0x427156
push 2
pop edi
sub eax, edi
je 0x427124
sub eax, 0x3ff5
jne 0x4272b2
lea eax, [ebp + 0x104]
push eax
call fcn.0043419e
pop ecx
add eax, edi
mov dword [ebp], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x427055
cmp eax, 0xffffffff
ja 0x427055
cmp eax, 0x100
jbe 0x42704d
push eax
lea ecx, [ebp]
call fcn.00402db2
jmp 0x427070
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x427073
push 0x80070216
call fcn.00401672
mov eax, 0x427065
ret
mov esi, dword [ebp]
test esi, esi
je 0x427109
cmp word [ebp + 0x104], 0
lea eax, [ebp + 0x104]
mov dword [ebp - 0x14], eax
je 0x4270c7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov eax, dword [ebp - 0x14]
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x4270bb
push 0x30
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 0x14]
jne 0x4270bb
xor eax, eax
push ecx
mov word [esi], ax
call dword [sym.imp.USER32.dll_CharNextW]
jmp 0x4270c0
mov word [esi], dx
add eax, edi
add esi, edi
cmp word [eax], bx
jmp 0x427089
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp]
test esi, esi
jne 0x4270d6
push 0xd
jmp 0x42710b
mov edi, ebx
mov ebx, esi
push ebx
call fcn.0043419e
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x4270da
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp]
mov edi, eax
jmp 0x42710c
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x4272a5
lea ecx, [ebp]
call fcn.00402da9
jmp 0x4272a5
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x4272c6
mov eax, dword [ebp - 0x24]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push dword [ebp - 0x1c]
jmp 0x42729b
lea eax, [ebp + 0x104]
push eax
call fcn.0043419e
mov dword [ebp - 0x28], eax
pop ecx
test al, 1
je 0x427174
mov eax, 0x80004005
jmp 0x4272c6
cdq
sub eax, edx
mov dword [ebp], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
ja 0x427055
cmp esi, 0x100
jbe 0x4271a8
push esi
lea ecx, [ebp]
call fcn.00402db2
jmp 0x4271c1
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x4271c4
mov eax, dword [ebp]
test eax, eax
jne 0x4271d9
lea eax, [ebp + 4]
test eax, eax
je 0x42716a
lea ecx, [ebp]
call fcn.00402da9
jmp 0x42716a
push esi
push ebx
push eax
call fcn.0042fde0
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jle 0x427252
push 0x30
pop ecx
mov esi, ebx
mov eax, esi
cdq
sub eax, edx
movzx edx, word [ebp + esi*2 + 0x104]
sar eax, 1
add eax, dword [ebp]
mov dword [ebp - 0x28], eax
mov eax, edx
cmp eax, ecx
jb 0x427231
cmp eax, 0x39
jbe 0x42722c
cmp eax, 0x40
jbe 0x427231
cmp eax, 0x46
jbe 0x427227
add eax, 0xffffff9f
cmp eax, 5
ja 0x427231
sub dl, 0x57
jmp 0x427233
sub dl, 0x37
jmp 0x427233
sub dl, 0x30
jmp 0x427233
mov dl, bl
mov eax, esi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x28]
shl dl, cl
push 0x30
pop ecx
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x4271f0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4272a5
lea ecx, [ebp]
call fcn.00402da9
jmp 0x4272a5
lea eax, [ebp + 0x104]
push eax
call fcn.0043419e
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp + 0x104]
push eax
push 1
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x4272b2
mov ecx, edi
call fcn.0042757b
jmp 0x4272c6
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
call fcn.00427589
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2104]
xor ecx, ebp
call fcn.0042e8fb
lea esp, [ebp + 0x2108]
pop ebp
ret 0xc