Function at 0x47f100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8d50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 esi, dword [0x4d4728]
call fcn.00480035
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47f148
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ecx, 0x4b263c
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x47f24b
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.00487f55
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47f269
mov ecx, ebx
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47f269
push ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042066d
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x18], edx
test edx, edx
je 0x47f269
movzx ebx, word [edx]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x47f1de
push ebx
lea ecx, [ebp - 0x10]
call fcn.004204f5
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
add edx, 2
mov dword [ebp - 0x18], edx
cmp eax, 0xffffffff
jne 0x47f1f9
push edx
call fcn.0048e8dc
mov edx, dword [ebp - 0x18]
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [ebx + ebx]
push edx
push ecx
push edi
mov dword [ebp - 0x18], ecx
call fcn.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47f219.1
movzx ecx, byte [eax + 0x47f3b4]
jmp dword [ecx*4 + 0x47f3a4]
call fcn.0048059d
call fcn.004805d5
test ebx, ebx
jl 0x47f241
cmp ebx, dword [edi - 8]
jg 0x47f241
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [edi - 0xc], ebx
mov word [eax + edi], dx
jmp 0x47f269
push 0x80070057
call fcn.00420000
push 0x4b263c
call fcn.0048e8dc
add esp, 4
push eax
push 0x4b263c
lea ecx, [ebp - 0x10]
call fcn.00421168
mov edi, dword [ebp - 0x10]
mov eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x2000
call ebx
cmp dword [esi + 0x14], 0
je 0x47f2cd
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi - 8]
shr ecx, 1
inc ecx
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x47f2b3
push ecx
lea ecx, [ebp - 0x10]
call fcn.004204f5
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.DataIntegrity
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0048f15d
add esp, 8
test eax, eax
jl 0x47f241
cmp eax, dword [edi - 8]
jg 0x47f241
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
cmp dword [edi - 0xc], edx
je 0x47f328
mov eax, dword [esi + 0x18]
add eax, 4
cmp word [eax], dx
jne 0x47f328
mov ecx, dword [edi - 0xc]
cmp ecx, 0x1000
jge 0x47f328
mov ecx, 0x1000
sub ecx, dword [esi + 4]
push edi
push ecx
push eax
call fcn.0049173f
add esp, 0xc
push esi
call fcn.0047ec70
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esi + 0xc]
push 1
push 0xffffffffffffffff
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov word [edx + 4], ax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [ecx], edx
mov eax, dword [esi + 0xc]
push eax
call ebx
mov ecx, dword [esi + 0xc]
push ecx
call ebx
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47f391
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
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