Function at 0x405ac3
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.0044d420
push 0xffffffffffffffff
push 0x4652c7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x487590]
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.00406168
test eax, eax
js 0x405e23
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.004059b9
test eax, eax
jne 0x405b59
mov eax, 0x80020009
jmp 0x405e23
mov ecx, dword [ebp - 0x18]
call fcn.0040683f
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x104]
push eax
call fcn.00406168
test eax, eax
js 0x405e23
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x405df0
sub eax, 9
je 0x405ccb
dec eax
dec eax
je 0x405c9b
sub eax, 0x3ff5
jne 0x405e0f
lea eax, [ebp + 0x104]
push eax
call fcn.00437bfc
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.00405aa1
cmp eax, 0x100
jbe 0x405bd5
push eax
lea ecx, [ebp]
call fcn.00405440
jmp 0x405beb
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x405bee
mov esi, dword [ebp]
test esi, esi
je 0x405c80
cmp word [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x405c3e
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x405c30
push 0x30
pop edx
cmp word [eax], dx
jne 0x405c30
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x405c39
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], bx
jne 0x405c06
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp]
test esi, esi
jne 0x405c4d
push 0xd
jmp 0x405c82
mov edi, ebx
mov ebx, esi
push ebx
call fcn.00437bfc
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x405c51
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 0x405c83
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x405e02
lea ecx, [ebp]
call fcn.0040542b
jmp 0x405e02
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 0x405e00
lea eax, [ebp + 0x104]
push eax
call fcn.00437bfc
pop ecx
mov dword [ebp - 0x28], eax
test al, 1
je 0x405ce9
mov eax, 0x80004005
jmp 0x405e23
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.00405aa1
cmp eax, 0x100
jbe 0x405d1d
push eax
lea ecx, [ebp]
call fcn.00405440
jmp 0x405d36
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x405d39
mov eax, dword [ebp]
test eax, eax
jne 0x405d4e
lea eax, [ebp + 4]
test eax, eax
je 0x405cdf
lea ecx, [ebp]
call fcn.0040542b
jmp 0x405cdf
push esi
push ebx
push eax
call fcn.00438850
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jle 0x405dc7
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 0x405da6
cmp eax, 0x39
jle 0x405da1
cmp eax, 0x40
jle 0x405da6
cmp eax, 0x46
jle 0x405d9c
add eax, 0xffffff9f
cmp eax, 5
ja 0x405da6
sub dl, 0x57
jmp 0x405da8
sub dl, 0x37
jmp 0x405da8
sub dl, 0x30
jmp 0x405da8
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 0x405d65
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 0x405e02
lea ecx, [ebp]
call fcn.0040542b
jmp 0x405e02
push ecx
lea eax, [ebp + 0x104]
push eax
push esi
mov ecx, edi
call fcn.00405a4f
mov edi, eax
test edi, edi
je 0x405e0f
mov ecx, edi
call fcn.0040615a
jmp 0x405e23
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
call fcn.00406168
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.00437bed
add ebp, 0x2108
leave
ret 0xc