Function at 0x492f70
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5428eb
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov dword [esp + 0x3c], ecx
push 0x30
xor eax, eax
mov dword [esp + 0x78], 7
push str.SYSTEMCurrentControlSetControlSession_Manager
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
call fcn.0047c530
push str.RegGetValueW
push str.advapi32.dll
mov dword [esp + 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4932ff
xor esi, esi
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x88], 1
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x493028
lea eax, [esp + 0x60]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x493058
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4932ff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4932ff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push 0
push 0
push 0x20
push str.PendingFileRenameOperations
push 0
push eax
call ebx
test eax, eax
jne 0x4932da
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
shr eax, 1
inc eax
push eax
call fcn.004969a0
lea eax, [esp + 0x14]
mov byte [esp + 0x88], 2
mov edi, dword [esp + 0x2c]
push eax
push edi
push 0
push 0x20
push str.PendingFileRenameOperations
push 0
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x4932c5
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x4932c5
xor esi, esi
test eax, 0xfffffffe
jbe 0x493170
xor eax, eax
mov dword [esp + 0x5c], 7
lea edx, [edi + esi*2]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
cmp word [edx], ax
je 0x49311a
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493107
sub eax, edi
mov edi, dword [esp + 0x2c]
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x50]
call fcn.0047c530
lea eax, [esp + 0x48]
mov byte [esp + 0x88], 3
push eax
lea ecx, [esp + 0x24]
call fcn.0048e630
mov eax, dword [esp + 0x58]
inc eax
mov byte [esp + 0x88], 2
add esi, eax
cmp dword [esp + 0x5c], 8
jb 0x493162
mov eax, dword [esp + 0x48]
test eax, eax
je 0x493162
push eax
call fcn.005074d4
add esp, 4
mov eax, dword [esp + 0x14]
shr eax, 1
cmp esi, eax
jb 0x4930e3
mov esi, dword [esp + 0x24]
xor cl, cl
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0x13], cl
cmp edi, esi
je 0x4932c5
add edi, 0x18
jmp 0x493190
cmp edi, esi
je 0x49329c
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push eax
push dword [esp + 0x5c]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.0047c410
sub esp, 0x18
mov byte [esp + 0xb8], 4
mov ecx, esp
mov dword [esp + 0x74], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.0047c410
sub esp, 0x18
mov byte [esp + 0xd0], 5
mov ecx, esp
lea esi, [edi - 0x18]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.0047c410
mov byte [esp + 0xd0], 2
call fcn.00493340
add esp, 0x48
test al, al
jne 0x493284
cmp dword [edi - 4], 8
jb 0x493235
mov esi, dword [esi]
mov edx, dword [esp + 0x2c]
lea ecx, [edx + ebx*2]
lea esp, [esp]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x493240
mov esi, dword [edi - 8]
inc esi
add esi, ebx
cmp dword [edi + 0x14], 8
jb 0x493261
mov ecx, dword [edi]
jmp 0x493263
mov ecx, edi
lea edx, [edx + esi*2]
movzx eax, word [ecx]
lea edx, [edx + 2]
add ecx, 2
mov word [edx - 2], ax
test ax, ax
jne 0x493266
mov ebx, dword [edi + 0x10]
mov cl, byte [esp + 0x13]
inc ebx
add ebx, esi
jmp 0x49328a
mov cl, 1
mov byte [esp + 0x13], cl
mov esi, dword [esp + 0x24]
add edi, 0x30
lea eax, [edi - 0x18]
cmp eax, esi
jne 0x493190
mov edi, dword [esp + 0x2c]
test cl, cl
je 0x4932c9
xor eax, eax
mov word [edi + ebx*2], ax
inc ebx
lea eax, [ebx + ebx]
push eax
push edi
push 7
push 0
push str.PendingFileRenameOperations
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4932c9
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4932d6
push edi
call fcn.005074d4
add esp, 4
mov edi, dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4932ff
push dword [esp + 0x38]
mov edx, esi
push ecx
mov ecx, edi
call fcn.004802e0
push edi
call fcn.005074d4
add esp, 0xc
push fcn.0047b120
push 1
push 0x18
lea eax, [esp + 0x6c]
mov dword [esp + 0x94], 0xffffffff
push eax
call fcn.005081fb
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret