Function at 0x47e510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8048
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4cfc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [0x4d4728]
mov eax, dword [ebx + 0xc]
push 1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebx + 4]
lea eax, [edx + eax + 3]
cmp eax, 0x1000
jb 0x47e72d
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str._BroadcastCmd:_Queue_is_full__Changing_revision__note:_perf_impact_
push ecx
call fcn.004559f0
add esp, 8
call fcn.0047e1e0
add esp, 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x14], esi
call fcn.00480035
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e5b2
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47e6b6
mov edx, ecx
movzx esi, dx
push esi
call fcn.00487f55
mov edi, eax
test edi, edi
je 0x47e6d0
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47e6d0
push esi
push eax
push edi
call fcn.0042066d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47e6d0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47e641
push esi
mov ecx, edx
call fcn.004204f5
mov edx, dword [ebp - 0x14]
movzx eax, word [edi]
mov edx, dword [edx]
add edi, 2
mov dword [ebp - 0x18], edx
cmp eax, 0xffffffff
jne 0x47e65b
push edi
call fcn.0048e8dc
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47ea3a.1
movzx edx, byte [eax + 0x47eb4c]
jmp dword [edx*4 + 0x47eb3c]
call fcn.0048059d
test esi, esi
jl 0x47e6ac
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp esi, dword [ecx - 8]
jg 0x47e6ac
mov edx, dword [ebp - 0x1c]
mov dword [ecx - 0xc], esi
mov eax, dword [eax]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47e6d0
push 0x80070057
call fcn.00420000
push str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
call fcn.0048e8dc
add esp, 4
push eax
push str.CIpcCfgValidator.BroadcastCmd.ChangeRevision
mov ecx, esi
call fcn.00421168
mov byte [ebp - 4], 0
call fcn.0045c0f0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
add esp, 0xc
mov ecx, ebx
call edx
mov eax, dword [ebx + 0xc]
push 1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 8], eax
xor edx, edx
mov dword [ebx + 4], 0
mov word [ecx + 4], dx
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
push eax
call fcn.0045c310
add esp, 4
mov ecx, dword [ebp + 0xc]
movzx edx, word [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._c_s_
push eax
call fcn.004559f0
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push edx
push str.BroadcastCmd:__s
push ecx
call fcn.004559f0
add esp, 0xc
call fcn.0047e1e0
mov esi, dword [ebx + 0x18]
add esp, 4
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47e775
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
cmp edi, ecx
jl 0x47e91a
push eax
mov eax, edi
sub eax, ecx
lea ecx, [esi + eax*2]
push ecx
call fcn.0048ef19
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x47e91a
mov ecx, dword [eax - 0xc]
cmp edi, ecx
je 0x47e7c5
sub edi, ecx
cmp word [esi + edi*2 - 2], 0x3e
jne 0x47e91a
push ecx
mov esi, esp
mov dword [ebp + 8], esp
mov dword [ebp + 8], esi
call fcn.00480035
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e7e8
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str._BroadcastCmd:_DUPLICATE__not_adding_
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x47e8f2
mov edx, ecx
movzx esi, dx
push esi
call fcn.00487f55
mov edi, eax
test edi, edi
je 0x47e90c
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47e90c
push esi
push eax
push edi
call fcn.0042066d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47e90c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47e877
push esi
mov ecx, edx
call fcn.004204f5
mov edx, dword [ebp + 8]
movzx eax, word [edi]
mov edx, dword [edx]
add edi, 2
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x47e891
push edi
call fcn.0048e8dc
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47ea3a.1
movzx edx, byte [eax + 0x47ebb0]
jmp dword [edx*4 + 0x47eba0]
call fcn.004805d5
test esi, esi
jl 0x47e6ac
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp esi, dword [ecx - 8]
jg 0x47e6ac
mov edx, dword [ebp - 0x18]
mov dword [ecx - 0xc], esi
mov eax, dword [eax]
xor ecx, ecx
mov word [edx + eax], cx
mov byte [ebp - 4], 2
call fcn.0047e1e0
add esp, 4
jmp 0x47e93f
push str._BroadcastCmd:_DUPLICATE__not_adding_
call fcn.0048e8dc
add esp, 4
push eax
push str._BroadcastCmd:_DUPLICATE__not_adding_
mov ecx, esi
call fcn.00421168
mov byte [ebp - 4], 2
call fcn.0047e1e0
add esp, 4
jmp 0x47e93f
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
push eax
mov eax, 0x1000
sub eax, ecx
push eax
lea eax, [edx + ecx*2 + 4]
push eax
call fcn.00491dd5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
add esp, 0xc
add dword [ebx + 4], eax
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
mov esi, esp
mov dword [ebp + 8], esp
mov dword [ebp + 8], esi
call fcn.00480035
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e96a
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x47ea67
mov edx, ecx
movzx esi, dx
push esi
call fcn.00487f55
mov edi, eax
test edi, edi
je 0x47ea81
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47ea81
push esi
push eax
push edi
call fcn.0042066d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47ea81
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x47e9f9
push esi
mov ecx, edx
call fcn.004204f5
mov edx, dword [ebp + 8]
movzx eax, word [edi]
mov edx, dword [edx]
add edi, 2
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x47ea13
push edi
call fcn.0048e8dc
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47ea3a.1
movzx edx, byte [eax + 0x47ec14]
jmp dword [edx*4 + 0x47ec04]
test esi, esi
jl 0x47e6ac
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x47e6ac
mov edx, dword [ebp - 0x18]
mov dword [eax - 0xc], esi
mov eax, dword [ecx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47ea81
push str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
call fcn.0048e8dc
add esp, 4
push eax
push str.CIpcCfgValidator.BroadcastCmd.DataIntegrity
mov ecx, esi
call fcn.00421168
mov byte [ebp - 4], 2
call fcn.0045c0f0
mov esi, dword [ebx + 0x14]
add esp, 0xc
test esi, esi
je 0x47eac3
mov eax, dword [ebx + 0x18]
lea edx, [eax + 4]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47eaa0
sub eax, edi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push 0
push str.DataIntegrity
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
push ecx
call fcn.0045c310
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47eaf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47eb25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8