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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
mov dword [ebp - 0x14], ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41029c
push eax
push eax
push eax
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x310]
push ecx
push edx
push eax
mov eax, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], 0x200
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x410292
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x410292
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0x20019
lea edx, [ebp - 0x310]
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410259
lea ecx, [ebp + 8]
lea edx, [ebp - 0x110]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 8]
push 0x46d098
push eax
mov dword [ebp + 8], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x110]
lea edx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.004102b0
sub esp, 0xac
mov ecx, 0x2b
lea esi, [ebp - 0xe4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
call fcn.00410310
movsx ecx, word [ebp + 0xc]
cmp eax, ecx
jne 0x41024c
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x90]
mov dword [ebx], edx
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebx + 0x98]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp + 8], 0x20
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xa0]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x9c]
lea edx, [ebx + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x98]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x94]
mov dword [edx + 8], eax
lea eax, [ebp - 0x38]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp + 8]
push edx
push eax
push 0
push 0
push 0x46d094
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x38]
test edx, edx
jne 0x4101b4
xor eax, eax
jmp 0x4101db
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004564f0
mov eax, esp
lea ecx, [ebp - 0x38]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxA2WHelper
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [ebx + 0x58]
push eax
push edx
call edi
mov edx, dword [ebp - 8]
add esp, 8
lea eax, [ebp + 8]
lea ecx, [ebp - 0x38]
push eax
push ecx
push 0
push 0
push 0x46d090
push edx
mov dword [ebp + 8], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x38]
test eax, eax
je 0x41023b
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004564f0
mov eax, esp
lea edx, [ebp - 0x38]
push esi
push edx
push eax
call sub.MFC42.DLL_AfxA2WHelper
push eax
lea eax, [ebx + 4]
push eax
call edi
add esp, 8
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
mov eax, ecx
inc ecx
push 0
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0xc]
push 0
lea ecx, [ebp - 0x310]
push edx
mov edx, dword [ebp - 4]
push ecx
push eax
push edx
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x41009c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x31c]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8