Function at 0x40cd20
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44fb04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
mov eax, dword [ecx + 0xadc]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x24], ecx
je 0x40d2ab
mov edx, dword [ecx + 0xae0]
sub edx, eax
sar edx, 2
je 0x40d2ab
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x40cd7f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x40cd9a
mov eax, dword [0x45c050]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00425f80
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x38]
mov dword [esp + 0x1e0], 0
call fcn.004066f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1e0], 1
call fcn.004385a0
mov eax, dword [0x45c050]
mov dword [esp + 0x38], 0x4545a0
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.LNG01292
mov byte [esp + 0x1ec], 2
call fcn.00425b80
lea edx, [esp + 0x28]
mov ecx, 0x460650
push edx
call fcn.00429000
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0xc4]
cmp ecx, eax
mov byte [esp + 0x1e0], 3
je 0x40ce72
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x40ce3d
mov edx, dword [0x45c054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40ce44
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40ce57
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0xcc]
call fcn.00403580
jmp 0x40ce72
lea ecx, [esp + 0xc4]
call fcn.00425890
mov edi, dword [edi]
mov dword [esp + 0xc4], edi
add edi, 0xfffffff4
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x45c054]
mov byte [esp + 0x1e0], 2
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40cea9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40cea9
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x40cf03
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x40cecc
mov edx, dword [0x45c054]
add eax, 0xfffffff4
cmp eax, edx
jne 0x40ced3
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x40cee6
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0xd0]
call fcn.00403580
jmp 0x40cf03
lea ecx, [esp + 0xc8]
call fcn.00425890
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc8], eax
add eax, 0xfffffff4
push eax
call esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x40]
push ecx
push edx
push 0x460688
mov edi, eax
call fcn.00403e10
mov eax, dword [0x460690]
push 0
push 0x442930
push edi
push 0xcb
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x40d286
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x40cf5b
push eax
mov dword [esp + 0x24], ecx
call esi
jmp 0x40cf6e
mov eax, dword [0x45c050]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00425f80
mov ecx, dword [esp + 0xd0]
mov byte [esp + 0x1e0], 4
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x40cf90
push eax
mov dword [esp + 0x14], ecx
call esi
jmp 0x40cfa4
mov edx, dword [0x45c050]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00425f80
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1e0], 5
mov ebp, dword [eax - 8]
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
lea ecx, [ebp + 1]
jg 0x40cfe1
cmp ecx, dword [eax - 4]
jle 0x40d024
cmp ecx, ebp
jge 0x40cfe7
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00425830
test eax, eax
je 0x40d024
mov edi, dword [esp + 0x10]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebp
call fcn.004258d0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esp + 0xd4]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40d077
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x45c050]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x1f4], 7
call fcn.00425750
mov ebp, dword [esp + 0x34]
mov ecx, ebp
lea eax, [ebp + 0xaec]
push eax
call fcn.00408b90
test eax, eax
je 0x40d242
mov eax, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], esp
mov ecx, esp
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x40d0e6
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff4
push ecx
call esi
jmp 0x40d0f8
mov edx, dword [0x45c050]
mov dword [ecx], edx
mov eax, dword [esp + 0x20]
push eax
call fcn.00425f80
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x1ec], 8
call fcn.00425750
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x1f0], 7
call fcn.0042c2b0
add esp, 0x10
lea edx, [esp + 0x14]
push 0x45c6d8
lea eax, [esp + 0x2c]
mov bl, 9
push edx
push eax
mov byte [esp + 0x1ec], bl
call fcn.004261b0
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x1ec], 0xa
call fcn.004261b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e4], 0xb
call fcn.00425e90
mov eax, dword [esp + 0x24]
mov edx, dword [0x45c054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d1a4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d1a4
mov edx, dword [esp + 0x24]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1e0], bl
call fcn.00429590
push 0x45c6d0
lea ecx, [esp + 0x18]
call fcn.00426f20
push 0x45c6d0
lea ecx, [esp + 0x18]
call fcn.00426e40
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40d22a
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax - 8]
lea ecx, [eax + 1]
inc eax
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403630
mov edx, dword [esp + 0x34]
push eax
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.0040a750
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e0], 7
call fcn.00429590
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e0], 6
call fcn.00429590
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1e0], 5
call fcn.00429590
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e0], 4
call fcn.00429590
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e0], 2
call fcn.00429590
lea ecx, [esp + 0x38]
mov byte [esp + 0x1e0], 0
call fcn.00412b50
lea ecx, [esp + 0x18]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.00429590
mov ecx, dword [esp + 0x1d8]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1d4
ret 0x10