Function at 0x40970a
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.0043bd10
push 0xffffffffffffffff
push 0x44d5db
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46b908]
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 - 0x18], ecx
mov eax, dword [ebp + 0x2118]
mov edi, dword [ebp + 0x2110]
mov esi, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
xor ebx, ebx
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], ebx
call fcn.00409b63
test eax, eax
js 0x409a6a
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.0040965b
test eax, eax
jne 0x4097a0
mov eax, 0x80020009
jmp 0x409a6a
mov ecx, dword [ebp - 0x18]
call fcn.0040a23d
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x104]
push eax
call fcn.00409b63
test eax, eax
js 0x409a6a
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x409a37
sub eax, 9
je 0x409912
dec eax
dec eax
je 0x4098e2
sub eax, 0x3ff5
jne 0x409a56
lea eax, [ebp + 0x104]
push eax
call fcn.0041f3b9
pop ecx
mov dword [ebp], ebx
push 2
mov dword [ebp - 4], ebx
pop edx
lea ecx, [eax + 2]
mov byte [ebp - 4], 1
call fcn.004060c6
cmp eax, 0x100
jbe 0x40981c
push eax
lea ecx, [ebp]
call fcn.004051bd
jmp 0x409832
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x409835
mov esi, dword [ebp]
test esi, esi
je 0x4098c7
cmp word [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x409885
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x409877
push 0x30
pop edx
cmp word [eax], dx
jne 0x409877
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x409880
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], bx
jne 0x40984d
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp]
test esi, esi
jne 0x409894
push 0xd
jmp 0x4098c9
mov edi, ebx
mov ebx, esi
push ebx
call fcn.0041f3b9
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x409898
mov eax, dword [ebp - 0x24]
push edi
push esi
push 7
xor ebx, ebx
push ebx
push dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp]
mov edi, eax
jmp 0x4098ca
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x409a49
lea ecx, [ebp]
call fcn.004051b4
jmp 0x409a49
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x409a47
lea eax, [ebp + 0x104]
push eax
call fcn.0041f3b9
pop ecx
mov dword [ebp - 0x28], eax
test al, 1
je 0x409930
mov eax, 0x80004005
jmp 0x409a6a
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp], ebx
xor edx, edx
mov dword [ebp - 4], 3
inc edx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004060c6
cmp eax, 0x100
jbe 0x409964
push eax
lea ecx, [ebp]
call fcn.004051bd
jmp 0x40997d
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x409980
mov eax, dword [ebp]
test eax, eax
jne 0x409995
lea eax, [ebp + 4]
test eax, eax
je 0x409926
lea ecx, [ebp]
call fcn.004051b4
jmp 0x409926
push esi
push ebx
push eax
call fcn.0041fa30
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jle 0x409a0e
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
jl 0x4099ed
cmp eax, 0x39
jle 0x4099e8
cmp eax, 0x40
jle 0x4099ed
cmp eax, 0x46
jle 0x4099e3
add eax, 0xffffff9f
cmp eax, 5
ja 0x4099ed
sub dl, 0x57
jmp 0x4099ef
sub dl, 0x37
jmp 0x4099ef
sub dl, 0x30
jmp 0x4099ef
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 0x4099ac
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
push esi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x409a49
lea ecx, [ebp]
call fcn.004051b4
jmp 0x409a49
push ecx
lea eax, [ebp + 0x104]
push eax
push esi
mov ecx, edi
call fcn.0040789d
mov edi, eax
test edi, edi
je 0x409a56
mov ecx, edi
call fcn.00409b55
jmp 0x409a6a
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
call fcn.00409b63
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.0041f3aa
add ebp, 0x2108
leave
ret 0xc