Function at 0x474ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5a6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub ecx, 0
je 0x474ef7
mov esi, str.iOSRecovery_360
sub ecx, 1
je 0x474efc
mov esi, str.DataRecovery_360
push str.SOFTWARE_
lea ecx, [ebp - 0x18]
call fcn.00407b50
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474f15
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.004585f0
lea ecx, [ebp - 0x40]
call fcn.004748f0
mov byte [ebp - 4], 1
call fcn.004a65c0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.004a5e80
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi - 0xc]
test ebx, ebx
je 0x47506e
cmp dword [esi - 4], 1
jle 0x474f72
push ebx
lea ecx, [ebp - 0x10]
call fcn.00404860
mov esi, dword [ebp - 0x10]
push ecx
lea eax, [ebx + 1]
mov edx, esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00487bb0
mov edi, dword [ebp - 0x20]
add esp, 8
mov ebx, edi
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x474f90
mov eax, dword [ebp - 0x18]
sub ebx, ecx
sar ebx, 1
mov ecx, SysReAllocString
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x474ff4
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x475010
mov eax, dword [ebp - 0x14]
cmp eax, 0x80000001
je 0x474fee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
lea eax, [ebx*2 + 2]
push eax
push edi
push 1
push 0
push 0x584bec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x80000001
je 0x475021
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
sete bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x475069
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x475067
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x475067
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
or edi, 0xffffffff
jmp 0x475070
call edx
or edi, 0xffffffff
jmp 0x475070
xor ebx, ebx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4750b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4750ae
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4750ae
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4750b0
call edx
lea ecx, [ebp - 0x40]
call fcn.00474ab0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x475111
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x47510f
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x47510d
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret