Function at 0x407396
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
mov eax, 0x210c
call fcn.00415b60
push ebx
push esi
mov esi, dword [ebp + 0x70]
xor ebx, ebx
lea eax, [ebp - 0x20a4]
mov ecx, esi
mov dword [ebp + 0x64], ebx
call fcn.0040788f
cmp eax, ebx
jl 0x40768c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x20a4]
push eax
call fcn.004072b4
pop ecx
pop ecx
test eax, eax
jne 0x4073e4
mov eax, 0x80020009
jmp 0x40768c
call fcn.00407ecf
lea eax, [ebp - 0x20a4]
mov ecx, esi
call fcn.0040788f
cmp eax, ebx
jl 0x40768c
movzx eax, word [ebp + 0x64]
sub eax, 8
push edi
je 0x407641
sub eax, 9
je 0x407520
dec eax
dec eax
je 0x4074fa
sub eax, 0x3ff5
jne 0x40767a
lea eax, [ebp - 0x20a4]
push eax
call dword [0x4171f8]
inc eax
inc eax
push 2
push eax
mov dword [ebp - 0xa4], ebx
call fcn.00403ddd
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x40745d
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00403dbc
jmp 0x407469
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov edi, dword [ebp - 0xa4]
cmp edi, ebx
je 0x4074d5
lea esi, [ebp - 0x20a4]
cmp word [ebp - 0x20a4], bx
je 0x4074b7
mov ebx, dword [0x41736c]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x4074a8
cmp word [eax], 0x30
jne 0x4074a8
xor ecx, ecx
mov word [edi], cx
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4074af
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x407488
xor ebx, ebx
xor eax, eax
mov word [edi], ax
mov word [edi + 2], ax
push dword [ebp - 0xa4]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00407348
mov esi, eax
jmp 0x4074d8
push 0xe
pop esi
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0xa4], eax
je 0x40766d
lea eax, [ebp - 0xa4]
call fcn.0040738d
jmp 0x40766d
lea eax, [ebp + 0x64]
push eax
push ebx
push ebx
lea eax, [ebp - 0x20a4]
push eax
call dword [0x417234]
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x60], eax
push 4
lea eax, [ebp + 0x60]
push eax
push 4
jmp 0x40765c
lea eax, [ebp - 0x20a4]
push eax
call dword [0x4171f8]
mov dword [ebp + 0x64], eax
test al, 1
jne 0x40758a
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
push edi
mov dword [ebp - 0xa4], ebx
call fcn.00403ddd
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x407561
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00403dbc
jmp 0x40756d
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], ebx
jne 0x407594
lea eax, [ebp - 0xa0]
test eax, eax
je 0x40758a
lea eax, [ebp - 0xa4]
call fcn.0040738d
mov eax, 0x80004005
jmp 0x40768b
push edi
push ebx
push dword [ebp - 0xa4]
call fcn.0040f5f0
add esp, 0xc
xor esi, esi
cmp dword [ebp + 0x64], ebx
jle 0x40760b
movzx ecx, word [ebp + esi*2 - 0x20a4]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0xa4]
movzx edx, cx
cmp edx, 0x30
jl 0x4075f0
cmp edx, 0x39
jle 0x4075e9
cmp edx, 0x40
jle 0x4075f0
cmp edx, 0x46
jle 0x4075e4
add edx, 0xffffff9f
cmp edx, 5
ja 0x4075f0
sub cl, 0x57
jmp 0x4075ec
sub cl, 0x37
jmp 0x4075ec
sub cl, 0x30
mov dl, cl
jmp 0x4075f2
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp + 0x64]
jl 0x4075ab
xor ebx, ebx
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push edi
push dword [ebp - 0xa4]
push 3
push ebx
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0xa4], eax
je 0x40766d
lea eax, [ebp - 0xa4]
call fcn.0040738d
jmp 0x40766d
lea eax, [ebp - 0x20a4]
push eax
call dword [0x4171f8]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20a4]
push eax
push 1
mov eax, dword [ebp + 0x74]
push ebx
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x40767a
mov eax, esi
call fcn.00407860
jmp 0x40768b
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.0040788f
cmp eax, ebx
jl 0x40768b
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10