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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542feb
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x596c60]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x596c60]
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.0047c4b0
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 0x49359f
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 0x4932c8
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 0x4932f8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x49359f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49359f
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 0x49357a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
shr eax, 1
inc eax
push eax
call fcn.00497360
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 0x493565
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x493565
xor esi, esi
test eax, 0xfffffffe
jbe 0x493410
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 0x4933ba
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4933a7
sub eax, edi
mov edi, dword [esp + 0x2c]
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x50]
call fcn.0047c4b0
lea eax, [esp + 0x48]
mov byte [esp + 0x88], 3
push eax
lea ecx, [esp + 0x24]
call fcn.0048e5a0
mov eax, dword [esp + 0x58]
inc eax
mov byte [esp + 0x88], 2
add esi, eax
cmp dword [esp + 0x5c], 8
jb 0x493402
mov eax, dword [esp + 0x48]
test eax, eax
je 0x493402
push eax
call fcn.00507b54
add esp, 4
mov eax, dword [esp + 0x14]
shr eax, 1
cmp esi, eax
jb 0x493383
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 0x493565
add edi, 0x18
jmp 0x493430
cmp edi, esi
je 0x49353c
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.0047c390
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.0047c390
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.0047c390
mov byte [esp + 0xd0], 2
call fcn.004935e0
add esp, 0x48
test al, al
jne 0x493524
cmp dword [edi - 4], 8
jb 0x4934d5
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 0x4934e0
mov esi, dword [edi - 8]
inc esi
add esi, ebx
cmp dword [edi + 0x14], 8
jb 0x493501
mov ecx, dword [edi]
jmp 0x493503
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 0x493506
mov ebx, dword [edi + 0x10]
mov cl, byte [esp + 0x13]
inc ebx
add ebx, esi
jmp 0x49352a
mov cl, 1
mov byte [esp + 0x13], cl
mov esi, dword [esp + 0x24]
add edi, 0x30
lea eax, [edi - 0x18]
cmp eax, esi
jne 0x493430
mov edi, dword [esp + 0x2c]
test cl, cl
je 0x493569
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 0x493569
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x493576
push edi
call fcn.00507b54
add esp, 4
mov edi, dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x49359f
push dword [esp + 0x38]
mov edx, esi
push ecx
mov ecx, edi
call fcn.00480260
push edi
call fcn.00507b54
add esp, 0xc
push fcn.0047b0a0
push 1
push 0x18
lea eax, [esp + 0x6c]
mov dword [esp + 0x94], 0xffffffff
push eax
call fcn.0050887b
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.005072fd
mov esp, ebp
pop ebp
ret