Function at 0x454860
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x680], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x660], ebx
cmp eax, ebx
je 0x454b00
push esi
push 0x208
lea ecx, [ebp - 0x454]
push ebx
push ecx
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x664], ebx
mov dword [ebp - 0x674], 1
mov dword [ebp - 0x678], ebx
call fcn.0055b030
lea eax, [ebp - 0x454]
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x454902
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x454902
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4548e2
jmp 0x454906
cmp edx, ebx
jne 0x454909
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x668]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x454]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454ae8
mov ecx, dword [ebp - 0x668]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x65c]
push eax
push ebx
push ecx
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x664], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x454adb
lea esi, [ebp - 0x454]
lea edx, [ebp - 0x24c]
sub esi, edx
push edi
lea esp, [esp]
push 0x208
lea eax, [ebp - 0x24c]
push ebx
push eax
call fcn.0055b030
add esp, 0xc
mov edx, 0x104
lea eax, [ebp - 0x24c]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4549c0
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4549c0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4549a0
jmp 0x4549c4
cmp edx, ebx
jne 0x4549c7
sub eax, 2
xor edx, edx
push 0x5b93a4
lea edi, [ebp - 0x24c]
mov word [eax], dx
call fcn.00438b50
lea eax, [ebp - 0x65c]
push eax
call fcn.00438b50
lea ecx, [ebp - 0x670]
push ecx
push 0x20019
push ebx
mov edx, edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454a8c
lea eax, [ebp - 0x678]
push eax
mov eax, dword [ebp - 0x670]
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x674]
push edx
push ebx
push 0x5c3c20
mov edi, 1
push eax
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x678], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454a67
mov ecx, dword [ebp - 0x680]
add ecx, 4
push ecx
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x454a67
mov dword [ebp - 0x660], edi
mov eax, dword [ebp - 0x670]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x660], edi
je 0x454ac3
add dword [ebp - 0x66c], edi
mov dword [ebp - 0x664], 0x104
mov eax, dword [ebp - 0x66c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x664]
push ecx
mov ecx, dword [ebp - 0x668]
lea edx, [ebp - 0x65c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x454980
cmp dword [ebp - 0x660], 1
jne 0x454ada
lea edx, [ebp - 0x65c]
push edx
mov edx, dword [ebp - 0x67c]
mov ecx, 0x80
call fcn.0040b0b0
pop edi
mov eax, dword [ebp - 0x668]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x660]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055799e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0055799e
mov esp, ebp
pop ebp
ret 8