Function at 0x1004b900
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078f57
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x29c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], ebx
call fcn.1005cd10
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x2a4], 1
nop
test ecx, ecx
je 0x1004bc59
test eax, eax
js 0x1004bc4e
push str..Current
lea eax, [ebp - 0x28c]
push eax
call edi
test eax, eax
je 0x1004ba17
push str..Modified
lea eax, [ebp - 0x28c]
push eax
call edi
test eax, eax
je 0x1004ba17
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1005c530
mov ecx, dword [ebp - 0x29c]
push eax
mov byte [ebp - 4], 5
call fcn.1004b900
mov byte [ebp - 4], 0
cmp dword [ebp - 0x28], 8
jb 0x1004b9ec
push dword [ebp - 0x3c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x1004bbed
push dword [ebp - 0x58]
call esi
add esp, 4
jmp 0x1004bbed
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0
call fcn.1005c530
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test edx, edx
je 0x1004bab8
cmp byte [ebp - 0x40], 0
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [ebp - 0x1c]
cmovne eax, dword [ebp - 0x2a4]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x58]
test cl, 0x26
je 0x1004ba9b
cmp dword [ebp - 0x44], 8
lea edi, [ebp - 0x78]
cmovae eax, dword [ebp - 0x58]
push edi
lea edi, [ebp - 0x24]
push edi
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x1004bab2
cmp dword [ebp - 0x44], 8
lea edi, [ebp - 0x24]
cmovae eax, dword [ebp - 0x58]
push edi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], eax
je 0x1004bb21
lea eax, [ebp - 0x74]
push eax
push 0x1007d0cc
lea ecx, [ebp - 0x24]
call fcn.1005cb10
test eax, eax
jne 0x1004bb21
cmp dword [ebp - 0x64], eax
je 0x1004bb21
push 0x1007d0cc
lea ecx, [ebp - 0x2bc]
call fcn.10008e70
mov byte [ebp - 4], 4
or ebx, 1
mov edx, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x18], ebx
call fcn.10048b80
test al, al
jne 0x1004bb21
mov bl, 1
jmp 0x1004bb23
xor bl, bl
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x298]
test al, 1
je 0x1004bb51
and eax, 0xfffffffe
cmp dword [ebp - 0x2a8], 8
mov dword [ebp - 0x298], eax
jb 0x1004bb51
push dword [ebp - 0x2bc]
call esi
add esp, 4
test bl, bl
je 0x1004bb67
push 0
lea eax, [ebp - 0x5c]
push eax
push ecx
mov ecx, dword [ebp - 0x29c]
call fcn.1004bcb0
cmp dword [ebp - 0x60], 8
jb 0x1004bb75
push dword [ebp - 0x74]
call esi
add esp, 4
xor eax, eax
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
test eax, eax
je 0x1004bb9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1004bbb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x28], 8
jb 0x1004bbc5
push dword [ebp - 0x3c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x1004bbe7
push dword [ebp - 0x58]
call esi
add esp, 4
mov ebx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x294]
dec eax
mov dword [ebp - 0x290], eax
test ecx, ecx
je 0x1004bc40
test eax, eax
js 0x1004bc40
lea edx, [ebp - 0x80]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x28c]
push edx
push eax
push ecx
mov dword [ebp - 0x18], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x294]
test eax, eax
mov eax, dword [ebp - 0x290]
je 0x1004b980
xor edx, edx
mov word [ebp - 0x28c], dx
jmp 0x1004b980
test ecx, ecx
je 0x1004bc59
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4