Function at 0x407a93
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20a0]
mov eax, 0x2120
call fcn.004164e0
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp + 0x209c], eax
mov eax, dword [ebp + 0x20a8]
push ebx
push esi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x20ac]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ebx
call fcn.004073a6
cmp eax, ebx
jl 0x407d73
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.00407d8d
test eax, eax
pop ecx
pop ecx
jne 0x407b09
mov eax, 0x80020009
jmp 0x407d73
call fcn.004080c0
lea eax, [ebp + 0x9c]
mov ecx, esi
call fcn.004073a6
cmp eax, ebx
jl 0x407d73
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x407d2c
sub eax, 9
je 0x407c2c
dec eax
dec eax
je 0x407c00
sub eax, 0x3ff5
jne 0x407d62
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push 2
push eax
mov dword [ebp - 0x68], ebx
call fcn.00406f40
cmp eax, 0x100
pop ecx
pop ecx
jbe 0x407b7b
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00407e72
jmp 0x407b81
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x407be4
cmp word [ebp + 0x9c], bx
lea esi, [ebp + 0x9c]
je 0x407bcb
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x407bbc
cmp word [eax], 0x30
jne 0x407bbc
and word [edi], 0
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x407bc3
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x407b9d
xor ebx, ebx
mov word [edi], bx
mov word [edi + 2], bx
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call fcn.00407e1f
mov esi, eax
jmp 0x407be7
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x407d55
lea eax, [ebp - 0x68]
call fcn.00407e69
jmp 0x407d55
call dword [section..data]
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
jmp 0x407d47
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x6c], eax
je 0x407c4a
mov eax, 0x80004005
jmp 0x407d73
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
push edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x68], ebx
call fcn.00406f40
cmp eax, 0x100
pop ecx
pop ecx
jbe 0x407c74
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00407e72
jmp 0x407c7a
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], ebx
jne 0x407c90
lea eax, [ebp - 0x64]
test eax, eax
je 0x407c40
lea eax, [ebp - 0x68]
call fcn.00407e69
jmp 0x407c40
push edi
push ebx
push dword [ebp - 0x68]
call fcn.00411200
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jle 0x407d02
movzx ecx, word [ebp + esi*2 + 0x9c]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x68]
movzx edx, cx
cmp edx, 0x30
jl 0x407ce6
cmp edx, 0x39
jle 0x407cdf
cmp edx, 0x40
jle 0x407ce6
cmp edx, 0x46
jle 0x407cda
add edx, 0xffffff9f
cmp edx, 5
ja 0x407ce6
sub cl, 0x57
jmp 0x407ce2
sub cl, 0x37
jmp 0x407ce2
sub cl, 0x30
mov dl, cl
jmp 0x407ce8
xor dl, dl
mov edi, esi
and edi, 1
shl edi, 2
push 4
pop ecx
sub ecx, edi
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x6c]
jl 0x407ca4
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
push edi
push dword [ebp - 0x68]
push 3
push ebx
push dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x407d55
lea eax, [ebp - 0x68]
call fcn.00407e69
jmp 0x407d55
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
push dword [ebp - 0x74]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x407d62
mov eax, esi
call fcn.004080b1
jmp 0x407d73
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
call fcn.004073a6
cmp eax, ebx
jl 0x407d73
xor eax, eax
mov ecx, dword [ebp + 0x209c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410457
add ebp, 0x20a0
leave
ret 8