Function at 0x407028
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.00415db0
mov eax, dword [0x43db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x1110], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1004]
mov edi, ecx
push eax
mov dword [ebp - 0x111c], edi
mov dword [ebp - 0x1114], ebx
mov dword [ebp - 0x1118], esi
call fcn.00406387
test eax, eax
js 0x4073bc
lea eax, [ebp - 0x1110]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0040621c
pop ecx
pop ecx
test eax, eax
jne 0x4070a3
mov eax, 0x80020009
jmp 0x4073bc
mov ecx, edi
call fcn.00406365
lea eax, [ebp - 0x1004]
push eax
mov ecx, edi
call fcn.00406387
xor edi, edi
cmp eax, edi
jl 0x4073bc
movzx eax, word [ebp - 0x1110]
sub eax, 8
je 0x407383
sub eax, 9
je 0x40729c
dec eax
dec eax
je 0x4071af
sub eax, 0x3ff5
jne 0x4073a5
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x1108], edi
call fcn.00406dab
mov esi, dword [ebp - 0x1108]
cmp esi, edi
je 0x40718a
cmp byte [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x40716a
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x407149
cmp byte [eax], 0x30
jne 0x407149
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x407165
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x407163
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x40716a
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x40712f
mov ecx, dword [ebp - 0x1114]
mov word [esi], 0
push dword [ebp - 0x1108]
push dword [ebp - 0x1118]
call fcn.00406107
mov ebx, eax
jmp 0x40718d
push 0xe
pop ebx
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x407396
lea ecx, [ebp - 0x1108]
call fcn.004065be
jmp 0x407396
lea eax, [ebp - 0x1004]
xor esi, esi
push eax
mov dword [ebp - 0x110c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x1110]
push eax
call fcn.00405cbe
add esp, 0xc
test eax, eax
js 0x407292
mov edi, dword [ebp - 0x1110]
cmp edi, 0x400
jg 0x407209
push edi
call fcn.00406659
pop ecx
test al, al
je 0x407209
mov eax, edi
call fcn.004160c0
mov eax, esp
jmp 0x40721b
push edi
lea ecx, [ebp - 0x110c]
call fcn.0040683a
mov esi, dword [ebp - 0x110c]
push 3
shr edi, 1
push edi
lea ecx, [ebp - 0x1004]
push ecx
push eax
call fcn.00405d6c
xor edi, edi
cmp eax, edi
je 0x40728e
lea ecx, [ebp - 0x1114]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1114]
push 4
mov dword [ebp - 0x110c], eax
lea eax, [ebp - 0x110c]
push eax
push 4
push edi
push dword [ebp - 0x1118]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp esi, edi
je 0x407396
push esi
mov esi, dword [esi]
call fcn.00414c11
pop ecx
test esi, esi
jne 0x407273
jmp 0x407396
push esi
mov esi, dword [esi]
call fcn.00414c11
pop ecx
cmp esi, edi
jne 0x407285
mov eax, 0x8007000e
jmp 0x4073bc
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x110c], eax
test al, 1
je 0x4072bd
mov eax, 0x80004005
jmp 0x4073bc
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x1108], edi
call fcn.00406dab
cmp dword [ebp - 0x1108], edi
jne 0x4072f5
lea eax, [ebp - 0x1104]
test eax, eax
je 0x4072b3
lea ecx, [ebp - 0x1108]
call fcn.004065be
jmp 0x4072b3
push ebx
push edi
push dword [ebp - 0x1108]
call fcn.00415380
add esp, 0xc
cmp dword [ebp - 0x110c], edi
jle 0x407346
mov ecx, dword [ebp - 0x1108]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x1004]
push eax
call fcn.004062b2
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x110c]
jl 0x40730d
mov eax, dword [ebp - 0x1114]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x1108]
push 3
push 0
push dword [ebp - 0x1118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x407396
lea ecx, [ebp - 0x1108]
call fcn.004065be
jmp 0x407396
push 1
lea eax, [ebp - 0x1004]
push eax
push esi
mov ecx, ebx
call fcn.004060d3
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x4073a5
push ebx
call fcn.00405e1d
pop ecx
jmp 0x4073bc
push dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
call fcn.00406387
cmp eax, edi
jl 0x4073bc
xor eax, eax
lea esp, [ebp - 0x112c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415106
leave
ret 0xc