Function at 0x49ad90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x49ade8
push 0x14
lea eax, [esi + 2]
push 0x507d2c
push eax
call fcn.004d8169
add esp, 0xc
test eax, eax
jne 0x49ade8
lea eax, [esi + 0x2a]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x804]
push 0x507d58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea esi, [ebp - 0x804]
push 0
push 0x4f57e8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004991c0
mov dword [ebp - 0x814], eax
test eax, eax
je 0x49afd8
push edi
push 0xa000
push 0
mov dword [ebp - 0x808], 0x8000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x80c], edi
test edi, edi
je 0x49afcb
push dword [ebp - 0x808]
push 0xff
push edi
call fcn.0049ef70
mov ebx, dword [ebp - 0x808]
add esp, 0xc
add ebx, edi
mov dword [ebp - 0x810], ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call fcn.004d37ed
add esp, 4
mov byte [edi], 0
lea eax, [ebp - 0x808]
push eax
push edi
lea eax, [ebp - 0x81c]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49afb9
mov eax, dword [ebp - 0x808]
mov esi, edi
add eax, edi
mov dword [ebp - 0x818], eax
cmp edi, eax
jae 0x49afb9
nop
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49aeb5
sub ecx, edx
sar ecx, 1
inc ecx
lea edi, [esi + ecx*2]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49aed0
sub ecx, edx
sar ecx, 1
inc ecx
push esi
lea ebx, [edi + ecx*2]
call fcn.004d37ed
push edi
call fcn.004d37ed
push 4
push 0x4f5838
push esi
call fcn.004cf949
add esp, 0x14
test eax, eax
jne 0x49af06
add esi, 8
push 4
push 0x4f5838
push edi
call fcn.004cf949
add esp, 0xc
test eax, eax
jne 0x49af1d
add esi, 8
cmp word [edi], 0
mov eax, dword [ebp - 0x810]
jne 0x49af70
nop dword [eax]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x49af56
test cx, cx
je 0x49af52
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x49af56
add esi, 4
add eax, 4
test cx, cx
jne 0x49af30
xor eax, eax
jmp 0x49af5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49af9f
mov edi, dword [ebp - 0x80c]
lea ebx, [eax + 1]
jmp 0x49afbb
mov cx, word [edi]
cmp cx, word [eax]
jne 0x49af96
test cx, cx
je 0x49af92
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x49af96
add edi, 4
add eax, 4
test cx, cx
jne 0x49af70
xor eax, eax
jmp 0x49af9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x49afea
cmp word [ebx], 0
je 0x49afb3
mov esi, ebx
cmp ebx, dword [ebp - 0x818]
jb 0x49aeb0
mov edi, dword [ebp - 0x80c]
xor ebx, ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x80c]
mov ebx, 2
jmp 0x49afbb