Function at 0x407d1a
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.0044c280
push 0xffffffffffffffff
push 0x482d6d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a6074]
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 - 0x1c], 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 - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00408389
test eax, eax
js 0x408085
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.00407c68
test eax, eax
jne 0x407db0
mov eax, 0x80020009
jmp 0x408085
mov ecx, dword [ebp - 0x1c]
call fcn.00408a20
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x104]
push eax
call fcn.00408389
test eax, eax
js 0x408085
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x408052
sub eax, 9
je 0x407f38
push 2
pop edi
sub eax, edi
je 0x407efe
sub eax, 0x3ff5
jne 0x408071
lea eax, [ebp + 0x104]
push eax
call fcn.0045631c
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 0x4080aa
jb 0x407e29
cmp eax, 0xffffffff
ja 0x4080aa
cmp eax, 0x100
jbe 0x407e3b
push eax
lea ecx, [ebp]
call fcn.0040774a
jmp 0x407e51
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x407e54
mov esi, dword [ebp]
test esi, esi
je 0x407ee3
cmp word [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x407ea1
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x407e93
push 0x30
pop edx
cmp word [eax], dx
jne 0x407e93
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x407e99
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x407e6c
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp]
test esi, esi
jne 0x407eb0
push 0xd
jmp 0x407ee5
mov edi, ebx
mov ebx, esi
push ebx
call fcn.0045631c
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x407eb4
mov eax, dword [ebp - 0x20]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp]
mov edi, eax
jmp 0x407ee6
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x408064
lea ecx, [ebp]
call fcn.00407735
jmp 0x408064
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 0x408085
mov eax, dword [ebp - 0x24]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push dword [ebp - 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x408062
lea eax, [ebp + 0x104]
push eax
call fcn.0045631c
mov dword [ebp - 0x28], eax
pop ecx
test al, 1
je 0x407f56
mov eax, 0x80004005
jmp 0x408085
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, 0x100
jbe 0x407f9a
push esi
lea ecx, [ebp]
call fcn.0040774a
mov eax, dword [ebp]
jmp 0x407fa0
lea eax, [ebp + 4]
mov dword [ebp], eax
test eax, eax
jne 0x407fae
lea ecx, [ebp]
call fcn.00407735
jmp 0x407f4c
push esi
push ebx
push eax
call fcn.0044cd20
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jle 0x408029
mov esi, ebx
movzx ecx, word [ebp + esi*2 + 0x104]
mov eax, esi
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
add eax, dword [ebp]
mov dword [ebp - 0x28], eax
mov eax, ecx
push 0x30
pop ecx
cmp ax, cx
jb 0x40800b
cmp eax, 0x39
jbe 0x408006
cmp eax, 0x40
jbe 0x40800b
cmp eax, 0x46
jbe 0x408001
cmp eax, 0x60
jbe 0x40800b
cmp edx, 0x66
ja 0x40800b
sub dl, 0x57
jmp 0x40800d
sub dl, 0x37
jmp 0x40800d
sub dl, 0x30
jmp 0x40800d
mov dl, bl
mov eax, esi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x28]
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x407fc2
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x408064
lea ecx, [ebp]
call fcn.00407735
jmp 0x408064
push ecx
lea eax, [ebp + 0x104]
mov ecx, esi
push eax
push edi
call fcn.00407cc8
mov edi, eax
test edi, edi
je 0x408071
mov ecx, edi
call fcn.0040837b
jmp 0x408085
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
call fcn.00408389
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.0044b0c6
add ebp, 0x2108
leave
ret 0xc
push 0x80070216
call fcn.00401d06
int3