Function at 0x4a8055a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x188
mov eax, dword [0x4a845210]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xb8], 0x2c
mov dword [ebp - 0xa8], esi
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa8]
push 1
push esi
push dword [eax*4 + 0x4a8246a8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x9c]
mov ebx, eax
call edi
cmp ebx, esi
je 0x4a805617
inc dword [ebp - 0xa8]
cmp dword [ebp - 0xa8], 2
jl 0x4a8055d8
push 0xac
lea eax, [ebp - 0x98]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xe4], eax
push 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xd8]
push eax
call sub.MSVCR80.dll_memcpy
push 0x10
lea eax, [ebp]
push eax
lea eax, [ebp - 0xc8]
push eax
call sub.MSVCR80.dll_memcpy
or dword [ebp - 0xac], 0xffffffff
or dword [ebp - 0xa4], 0xffffffff
add esp, 0x18
cmp dword [str.Etc_GMT12], esi
mov dword [ebp - 0xa0], esi
je 0x4a80576a
xor eax, eax
push dword [ebp - 0xa8]
mov edx, dword [eax + 0x4a8243a4]
lea ecx, [ebp - 0x9c]
call fcn.4a80547c
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x4a8056cf
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push esi
push 0x4a8246a0
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push dword [ebp - 0x9c]
call edi
cmp ebx, esi
jne 0x4a805745
cmp dword [ebp - 0xa4], esi
jl 0x4a8056f1
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0x110]
jne 0x4a805760
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xdc], eax
push 0x2c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xe4]
push eax
call sub.MSVCR80.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4a805745
cmp dword [ebp - 0xa4], esi
jge 0x4a805739
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xac], eax
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
shl eax, 3
cmp dword [eax + 0x4a8243a0], esi
jne 0x4a80568e
mov ebx, dword [ebp - 0xa4]
cmp ebx, esi
jge 0x4a805771
xor eax, eax
jmp 0x4a805891
cmp ebx, dword [ebp - 0xac]
je 0x4a805884
lea eax, [ebp - 0x9c]
push eax
push 1
push esi
push str.SYSTEMCurrentControlSetControlTimeZoneInformation_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a80587c
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp + 0x54]
push eax
push esi
push esi
push str.StandardName
push dword [ebp - 0x9c]
mov dword [ebp - 0xb4], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x9c]
call edi
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0xa4], eax
jg 0x4a805884
push dword [ebp - 0xa8]
mov edx, dword [ebx*8 + 0x4a8243a4]
lea ecx, [ebp - 0x9c]
call fcn.4a80547c
cmp eax, esi
pop ecx
mov dword [ebp - 0xa0], eax
jne 0x4a805832
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push esi
push 0x4a8246a4
push dword [ebp - 0x9c]
mov dword [ebp - 0xb0], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xa0], eax
push dword [ebp - 0x9c]
call edi
cmp dword [ebp - 0xa0], esi
jne 0x4a805865
mov eax, dword [ebp - 0xb4]
cmp dword [ebp - 0xb0], eax
jne 0x4a805865
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x54]
push eax
call sub.MSVCR80.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4a805874
inc ebx
cmp ebx, dword [ebp - 0xac]
jle 0x4a8057e1
jmp 0x4a805884
mov dword [ebp - 0xa4], ebx
jmp 0x4a805884
push dword [ebp - 0x9c]
call edi
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax*8 + 0x4a8243a0]
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a820812
add ebp, 0x78
leave
ret