Function at 0x412eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a4a26
mov eax, dword fs:[0]
push eax
sub esp, 0x3c4
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x3c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0x3d8]
mov dword fs:[0], eax
call fcn.00412c20
test eax, eax
je 0x412efb
xor eax, eax
jmp 0x413368
push str.SoftwareMicrosoftWindows_NTCurrentVersionTime_ZonesChina_Standard_Time
lea ecx, [esp + 0x20]
call fcn.00402670
lea eax, [esp + 0x18]
push eax
push 0x20019
xor ebx, ebx
mov dword [esp + 0x3e8], ebx
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4130a1
mov eax, dword [0x4c30e0]
mov ecx, dword [str.China_Standard_Time]
mov edx, dword [0x4c30dc]
push 0xec
mov dword [esp + 0x2e0], eax
mov dword [esp + 0x2d8], ecx
mov ecx, dword [0x4c30e4]
mov dword [esp + 0x2dc], edx
mov edx, dword [0x4c30e8]
lea eax, [esp + 0x2ec]
push ebx
push eax
mov dword [esp + 0x2ec], ecx
mov dword [esp + 0x2f0], edx
call fcn.00465b60
lea eax, [esp + 0x2e0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412f95
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x1d4]
push ecx
push eax
lea edx, [esp + 0x2e0]
push edx
push ebx
push ebx
mov dword [esp + 0x40], eax
call esi
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2d8]
push ecx
push ebx
push ebx
push 0x4c31dc
mov ebp, 0x20
push edx
mov dword [esp + 0x38], ebp
call edi
cmp eax, ebx
je 0x41301c
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3e0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4130c0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
lea ecx, [esp + 0x2e0]
push ecx
push ebx
push ebx
call esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x2e0]
push edx
push ebx
push ebx
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0xd0]
push ecx
push edx
lea eax, [esp + 0x2e0]
push eax
push ebx
push ebx
call esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x2d8]
push edx
push ebx
push ebx
push 0x4c31e0
push eax
mov dword [esp + 0x38], ebp
call edi
cmp eax, ebx
je 0x4130d5
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3e0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413363
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x180]
push edx
push eax
lea ecx, [esp + 0x2e0]
push ecx
push ebx
push ebx
call esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
push 0x4c31e4
mov esi, 0x2c
push ecx
mov dword [esp + 0x4c], esi
call edi
cmp eax, ebx
jne 0x41334f
cmp dword [esp + 0x34], esi
ja 0x41334f
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x1bc], ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x16c], edx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x1c0], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x124], eax
mov dword [esp + 0x168], ecx
mov dword [esp + 0x1c4], ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x6c]
push edx
mov dword [esp + 0x174], esi
mov dword [esp + 0x178], edi
mov dword [esp + 0x1cc], ebp
mov dword [esp + 0x1d0], ebx
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x2d4], bl
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], ecx
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x120], ebx
mov dword [esp + 0xcc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x3c]
push ecx
push str.SeTimeZonePrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push ebx
push eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x5c], 2
call edi
lea esi, [esp + 0x24]
call fcn.00412d40
mov ecx, esi
push str.Windows_2000
push ecx
mov byte [esp + 0x3e8], 1
call fcn.00402390
add esp, 8
test al, al
jne 0x4132d6
mov edx, esi
push str.Windows_2003
push edx
call fcn.00402390
add esp, 8
test al, al
jne 0x4132d6
mov eax, esi
push str.Windows_XP
push eax
call fcn.00402390
add esp, 8
test al, al
jne 0x4132d6
mov ecx, esi
push 0x4c3174
push ecx
call fcn.00414530
add esp, 8
test al, al
je 0x413309
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x413309
push str.SetDynamicTimeZoneInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x413302
lea edx, [esp + 0x124]
push edx
jmp 0x4132fc
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x413309
push str.SetTimeZoneInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x413302
lea ecx, [esp + 0x74]
push ecx
call eax
mov dword [esp + 0x2c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x2c], ebx
jne 0x413328
lea ecx, [esp + 0x24]
call fcn.00402b20
lea ecx, [esp + 0x1c]
call fcn.00402b20
mov eax, 2
jmp 0x413368
mov eax, dword [esp + 0x30]
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push ebx
push eax
mov dword [esp + 0x5c], ebx
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x24]
call fcn.00402b20
jmp 0x41335a
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.00402b20
mov eax, 1
mov ecx, dword [esp + 0x3d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c0]
xor ecx, esp
call fcn.0045f97b
add esp, 0x3d0
ret