Function at 0x4113f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6319d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046d4f0
test eax, eax
je 0x411496
push 0
push str.PROGBAR_DATA::Update_n
push 0x642b88
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x642a88], eax
mov eax, 0x642b88
add esp, 0xc
mov dword [0x642a8c], ecx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411454
mov edi, 0x642a88
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411463
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x642a88
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [ebx + 0xc]
xor edi, edi
cmp eax, dword [ebx + 4]
jae 0x41157e
mov edx, dword [ebx + 8]
add edx, eax
push str.SoftwareCnxtProgBar
lea ecx, [ebp - 0x18]
mov dword [ebx + 0xc], edx
call fcn.00403380
mov eax, dword [ebx + 0xc]
imul eax, eax, 0x64
xor edx, edx
div dword [ebx + 4]
mov dword [ebp - 4], edi
mov esi, 0xf003f
mov dword [ebp - 0x10], eax
call fcn.0046d4f0
test eax, eax
je 0x411507
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
push eax
push ecx
push edx
push str.nProgBarCnt_d__nProgBarMaxCnt_d__nRegValue_d_n
push 0x642988
call fcn.00599ee3
add esp, 0x14
push 0x642988
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0049cb90
test eax, eax
je 0x411515
mov esi, 0xf013f
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411558
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push eax
mov eax, dword [ebp - 0x14]
push str.ProgBarCnt
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41154e
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41157e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0046d4f0
test eax, eax
je 0x411604
push edi
push str.PROGBAR_DATA::Update_:_bStatus___d_n
push 0x642888
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x642888
mov dword [0x642788], ecx
add esp, 0xc
mov dword [0x64278c], edx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4115c0
mov edi, 0x642788
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4115d1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x642788
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret