Function at 0x40b600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x6f4
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x6fc], eax
push 0x104
lea ecx, [ebp - 0x664]
push ecx
lea ecx, [eax + 0x18c]
call fcn.0042e9d9
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40b669
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x6f4], edi
lea eax, [ebp - 0x664]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x6ec]
call fcn.004058d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6f8]
mov eax, dword [ebp - 0x6ec]
push 0x5adca8
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x6d8], esi
call fcn.004058d0
xor ebx, ebx
mov byte [ebp - 4], 2
test esi, esi
jle 0x40b77d
mov edi, esi
test ebx, ebx
js 0x40b817
mov eax, dword [ebp - 0x6ec]
cmp ebx, dword [eax - 0xc]
jg 0x40b817
mov ax, word [eax + ebx*2]
lea ecx, [ebp - 0x6f0]
mov word [ebp - 0x6f0], ax
lea edx, [ecx + 2]
xor eax, eax
mov word [ebp - 0x6ee], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b700
sub ecx, edx
lea eax, [ebp - 0x6f0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6f8]
call fcn.00405780
mov eax, dword [ebp - 0x6f8]
mov edx, 0x5aea0c
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x40b756
test si, si
je 0x40b752
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40b756
add ecx, 4
add edx, 4
test si, si
jne 0x40b730
xor ecx, ecx
jmp 0x40b75b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x40b76e
push dword [eax - 0xc]
lea ecx, [ebp - 0x6f4]
push eax
call fcn.00408fb0
inc ebx
cmp ebx, edi
jl 0x40b6c5
mov edi, dword [ebp - 0x6f4]
xor eax, eax
push 0x38
push eax
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4a]
push eax
call fcn.0054cbf0
add esp, 0xc
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40b7ae
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6e0], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push eax
push edi
call fcn.0040c0b0
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b7d2
sub ecx, edx
lea eax, [ebp - 0x4c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6e0]
call fcn.00405780
mov esi, dword [ebp - 0x6e0]
mov edx, 7
mov eax, dword [esi - 0xc]
cmp eax, edx
cmovl edx, eax
mov dword [ebp - 0x6d8], edx
lea ebx, [eax + 1]
mov dword [ebp - 0x6dc], ebx
test ebx, ebx
jns 0x40b821
push 0x80070057
call fcn.00405730
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40b84a
push ebx
lea ecx, [ebp - 0x6e0]
call fcn.00405660
mov esi, dword [ebp - 0x6e0]
mov edx, dword [ebp - 0x6d8]
mov eax, ebx
lea ebx, [esi + edx*2]
sub eax, edx
add eax, eax
push eax
push ebx
push eax
lea eax, [ebx + 2]
push eax
call fcn.0054b128
push eax
call fcn.00405340
mov eax, 0x2d
add esp, 0x14
mov word [ebx], ax
mov eax, dword [ebp - 0x6dc]
cmp eax, dword [esi - 8]
jg 0x40b817
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, 0xf
mov eax, dword [esi - 0xc]
cmp eax, edx
cmovl edx, eax
mov dword [ebp - 0x6d8], edx
lea ebx, [eax + 1]
mov dword [ebp - 0x6dc], ebx
test ebx, ebx
jns 0x40b8ae
push 0x80070057
call fcn.00405730
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40b8d7
push ebx
lea ecx, [ebp - 0x6e0]
call fcn.00405660
mov esi, dword [ebp - 0x6e0]
mov edx, dword [ebp - 0x6d8]
mov eax, ebx
lea ebx, [esi + edx*2]
sub eax, edx
add eax, eax
push eax
push ebx
push eax
lea eax, [ebx + 2]
push eax
call fcn.0054b128
push eax
call fcn.00405340
mov eax, 0x2d
add esp, 0x14
mov word [ebx], ax
mov eax, dword [ebp - 0x6dc]
cmp eax, dword [esi - 8]
jg 0x40b817
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, 0x17
mov eax, dword [esi - 0xc]
cmp eax, edx
cmovl edx, eax
mov dword [ebp - 0x6d8], edx
lea ebx, [eax + 1]
mov dword [ebp - 0x6dc], ebx
test ebx, ebx
jns 0x40b93f
push 0x80070057
call fcn.00405730
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40b968
push ebx
lea ecx, [ebp - 0x6e0]
call fcn.00405660
mov esi, dword [ebp - 0x6e0]
mov edx, dword [ebp - 0x6d8]
mov eax, ebx
lea ebx, [esi + edx*2]
sub eax, edx
add eax, eax
push eax
push ebx
push eax
lea eax, [ebx + 2]
push eax
call fcn.0054b128
push eax
call fcn.00405340
mov eax, 0x2d
add esp, 0x14
mov word [ebx], ax
mov eax, dword [ebp - 0x6dc]
cmp eax, dword [esi - 8]
jg 0x40b817
mov ebx, dword [ebp - 0x6fc]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x45c]
push 0x104
push eax
lea ecx, [ebx + 0x118]
mov dword [ebp - 0x684], 0x5aea10
mov dword [ebp - 0x680], str.SOFTWAREHNCSharedInstall_InformationHCell96
mov dword [ebp - 0x67c], str.SOFTWAREHNCSharedInstall_InformationHncFinder96
mov dword [ebp - 0x678], str.SOFTWAREHNCSharedInstall_InformationHOffice96
mov dword [ebp - 0x674], str.SOFTWAREHNCSharedInstall_InformationHShow96
mov dword [ebp - 0x670], str.SOFTWAREHNCSharedInstall_InformationHword96
mov dword [ebp - 0x66c], str.SOFTWAREHNCSharedInstall_InformationHwp96
mov dword [ebp - 0x668], str.SOFTWAREHNCSharedInstall_InformationPDF
mov dword [ebp - 0x6d4], str.SOFTWAREHNCSharedHncUpdateHncUtils_NEO
mov dword [ebp - 0x6d0], str.SOFTWAREHNCSharedHncUpdateHncUtils_NEOHncUpdate
mov dword [ebp - 0x6cc], str.SOFTWAREHNCSharedHncUpdateHOffice_NEO
mov dword [ebp - 0x6c8], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOClipart
mov dword [ebp - 0x6c4], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOCommon96
mov dword [ebp - 0x6c0], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOCommonClipart
mov dword [ebp - 0x6bc], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHCell96
mov dword [ebp - 0x6b8], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHFT
mov dword [ebp - 0x6b4], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHncDic96
mov dword [ebp - 0x6b0], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHncFinder96
mov dword [ebp - 0x6ac], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHncPrivacy96
mov dword [ebp - 0x6a8], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHncTT96
mov dword [ebp - 0x6a4], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHShow96
mov dword [ebp - 0x6a0], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHword96
mov dword [ebp - 0x69c], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHwp96
mov dword [ebp - 0x698], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHwpDraw
mov dword [ebp - 0x694], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOHwpTemplate
mov dword [ebp - 0x690], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOPDF
mov dword [ebp - 0x68c], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOTTF
mov dword [ebp - 0x688], str.SOFTWAREHNCSharedHncUpdateHOffice_NEOWINTTF
call fcn.0042e9d9
push 0x104
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0042e9d9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x6e4], eax
lea ecx, [ebp - 0x700]
push ecx
push 0x20019
push 0
push dword [ebp + eax*4 - 0x684]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bc67
lea eax, [ebp - 0x6e8]
push eax
mov eax, dword [ebp - 0x6e4]
push 0xf003f
push 0
push dword [ebp + eax*4 - 0x684]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bb8f
lea ecx, [ebp - 0x45c]
lea edx, [ecx + 2]
jmp 0x40bb60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb60
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x45c]
push eax
push 1
push 0
push str.Name
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x6e8]
call ebx
lea eax, [ebp - 0x6dc]
push eax
mov eax, dword [ebp - 0x6e4]
push 0xf003f
push 0
push dword [ebp + eax*4 - 0x684]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbff
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bbd0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x254]
push eax
push 1
push 0
push str.Company
push dword [ebp - 0x6dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x6dc]
call ebx
lea eax, [ebp - 0x6d8]
push eax
mov eax, dword [ebp - 0x6e4]
push 0xf003f
push 0
push dword [ebp + eax*4 - 0x684]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bc5f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc36
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push str.ProductID
push dword [ebp - 0x6d8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x6d8]
call ebx
mov eax, dword [ebp - 0x6e4]
inc eax
mov dword [ebp - 0x6e4], eax
cmp eax, 8
jl 0x40bb00
xor edi, edi
nop
lea eax, [ebp - 0x700]
push eax
push 0x20019
push 0
push dword [ebp + edi*4 - 0x6d4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bd01
lea eax, [ebp - 0x6d8]
push eax
push 0xf003f
push 0
push dword [ebp + edi*4 - 0x6d4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bcf9
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bcd0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push str.PidKey
push dword [ebp - 0x6d8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x6d8]
call ebx
inc edi
cmp edi, 0x14
jl 0x40bc80
mov eax, dword [ebp - 0x6fc]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00429e63
mov dword [eax + 0x2b7c], 0
push dword [ebp - 0x700]
call ebx
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
mov edi, dword [ebp - 0x6f4]
test eax, eax
jg 0x40bd58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x6f8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bd7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x6ec]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bd9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40bdbc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret