Function at 0x411d6a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x13c
mov eax, 0x4ae2b8
call fcn.0048f48f
mov ecx, dword [0x507340]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
lea eax, [ecx + 1]
imul eax, ecx
push 0xf
cdq
pop ecx
idiv ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x114], ebx
cmp edx, 8
jne 0x411dbe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x50
xor edx, edx
pop ecx
div ecx
inc edx
mov dword [0x507340], edx
push ebx
lea ecx, [ebp - 0x148]
call fcn.0042f326
mov edx, dword [0x507340]
push 0xc
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
pop ecx
idiv ecx
mov dword [ebp - 4], ebx
cmp edx, 5
jne 0x411df0
dec dword [0x507444]
push str.success
lea ecx, [ebp - 0x12c]
call fcn.0042f2f7
lea eax, [ebp - 0x12c]
push eax
push 0x4c0c00
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.0042f5f2
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.0042f451
call fcn.00411272
test al, al
jne 0x411eb0
mov eax, dword [0x507340]
cdq
sub eax, edx
mov esi, eax
mov dword [ebp - 0x108], 0x65
mov eax, dword [ebp - 0x108]
mov ecx, ebx
sar esi, 1
test esi, esi
jle 0x411ea5
mov eax, dword [0x507340]
cdq
and edx, 3
add edx, eax
sar edx, 2
mov edi, ebx
mov eax, esi
mov dword [ebp - 0x104], esi
test edx, edx
jle 0x411e94
mov eax, edi
mov dword [ebp - 0x100], edx
add dword [ebp - 0x108], eax
dec eax
dec dword [ebp - 0x100]
jne 0x411e7f
mov eax, dword [ebp - 0x104]
add edi, ecx
dec eax
mov dword [ebp - 0x104], eax
jne 0x411e73
mov eax, dword [ebp - 0x108]
inc ecx
cmp ecx, eax
jl 0x411e57
mov edi, dword [ebp - 0xfc]
mov esi, 0x505ab0
push esi
lea ecx, [ebp - 0x104]
call fcn.00408fd9
push 2
pop eax
push esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], al
call fcn.00408fd9
push esi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 3
call fcn.00408fd9
push str.hive
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0xfc]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 6
call fcn.00402394
mov ecx, dword [ebp - 0xfc]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00407864
mov eax, dword [ebp - 0x104]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x11c], eax
call fcn.00403b5b
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0040fb03
pop ecx
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x412018
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x100]
push str.readReg_hive_error_
push eax
call fcn.00409288
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 8
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 9
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 8
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x100]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x11c]
call fcn.00407864
mov byte [ebp - 4], bl
jmp 0x412675
push 0x4c1028
mov ecx, edi
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x100]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.00402394
mov ecx, dword [ebp - 0x100]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00407864
push 0x4c102c
mov ecx, edi
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x100]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xb
call fcn.00402394
mov eax, dword [ebp - 0x100]
mov byte [ebp - 4], 5
lea ecx, [eax - 0x10]
call fcn.00407864
push 0x4c1034
mov ecx, edi
mov esi, ebx
call fcn.00430238
test al, al
je 0x4120cf
push 0x4c1034
mov ecx, edi
call fcn.0042f676
mov ecx, eax
call fcn.0042fb76
mov esi, eax
mov eax, ebx
mov dword [ebp - 0x100], ebx
cmp esi, 0x20
je 0x4120f6
test esi, esi
je 0x4120f6
cmp esi, 0x40
jne 0x412105
mov eax, 0x20119
mov dword [ebp - 0x100], 0x20219
jmp 0x412105
mov eax, 0x20219
mov dword [ebp - 0x100], 0x20119
mov edi, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
push ecx
push eax
push ebx
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 2
pop ecx
cmp eax, ecx
jne 0x412147
test esi, esi
jne 0x41214f
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x100]
push ebx
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412208
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xfc]
push 0x4c1038
push eax
mov byte [ebp - 4], 0xc
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x100]
mov byte [ebp - 4], 0xe
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0xf
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x10
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0xf
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [edi - 0x10]
jmp 0x412000
mov esi, dword [ebp - 0x108]
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x130]
push eax
push ebx
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x110], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4122ea
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xfc]
push str.readReg_RegQueryValueEx_gen_
push eax
mov byte [ebp - 4], 0x11
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x100]
mov byte [ebp - 4], 0x13
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x14
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x15
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x12c]
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [esi - 0x10]
jmp 0x4121fb
cmp dword [ebp - 0x130], 4
jne 0x41241d
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x134], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4123b9
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xfc]
push str.readReg_RegQueryValueEx_dword_
push eax
mov byte [ebp - 4], 0x16
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
mov byte [ebp - 4], 0x18
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x19
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x1a
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
mov byte [ebp - 4], 0x19
jmp 0x4122c1
push dword [ebp - 0x100]
lea ecx, [ebp - 0x12c]
call fcn.0042f2b1
push 0x4c10e0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x1b
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.0042f451
lea ecx, [esi - 0x10]
mov dword [ebp - 4], 4
call fcn.00407864
lea ecx, [edi - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x11c]
jmp 0x41266d
cmp dword [ebp - 0x130], 1
jne 0x4123fb
mov eax, dword [ebp - 0x110]
inc eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x110], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048dbeb
pop ecx
mov ecx, dword [ebp - 0x110]
add ecx, ecx
push ecx
push ebx
push eax
mov dword [ebp - 0x100], eax
call fcn.004913e0
mov eax, dword [ebp - 0x110]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x100]
lea eax, [ebp - 0x130]
push eax
push ebx
push esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412535
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x110]
xor edx, edx
mov word [ecx + eax*2], dx
push ecx
lea ecx, [ebp - 0xfc]
call fcn.00401b1e
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1c
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x1d
call fcn.0042f275
push 0x4c10e0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x1e
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x1d
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.00407864
push dword [ebp - 0x100]
call fcn.0048fbd7
pop ecx
jmp 0x4123fb
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0042c341
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xfc]
push str.readReg_RegQueryValueEx_str_
push eax
mov byte [ebp - 4], 0x1f
call fcn.00409288
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
mov byte [ebp - 4], 0x21
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x22
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x23
call fcn.0042f5f2
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.0042f4ab
mov byte [ebp - 4], 0x22
jmp 0x4122c1
mov byte [ebp - 4], bl
call fcn.00407864
call fcn.00411363
test al, al
jne 0x41268b
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp dword [ebp - 0x114], 0
je 0x4126a6
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x114], ebx
lea ecx, [ebp - 0x4c]
call fcn.00430a82
push 0x505ab0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x28
call fcn.00408fd9
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x29
call fcn.00432bf9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x2a
jb 0x4126e5
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401027
lea eax, [ebp - 0x10c]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x2b
call fcn.00402394
mov ecx, dword [ebp - 0x10c]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x29
call fcn.00401056
call fcn.00411491
test al, al
jne 0x4127a3
mov eax, dword [0x507340]
cdq
sub eax, edx
mov esi, eax
mov dword [ebp - 0x104], 0x7d
mov eax, dword [ebp - 0x104]
mov ecx, ebx
sar esi, 1
test esi, esi
jle 0x41279e
mov eax, dword [0x507340]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edi, ebx
mov edx, esi
mov dword [ebp - 0x100], esi
test eax, eax
jle 0x41278d
mov edx, edi
mov dword [ebp - 0xfc], eax
add dword [ebp - 0x104], edx
dec edx
dec dword [ebp - 0xfc]
jne 0x412778
mov edx, dword [ebp - 0x100]
add edi, ecx
dec edx
mov dword [ebp - 0x100], edx
jne 0x41276c
mov eax, dword [ebp - 0x104]
inc ecx
cmp ecx, eax
jl 0x412750
mov edi, dword [ebp - 0x138]
mov esi, dword [ebp - 0x118]
push 8
pop eax
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4127c8
call fcn.00409bd9
lea ecx, [esi - 0x10]
mov dword [edi + 8], eax
call fcn.00407864
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004090f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.0042f451
call fcn.0048f3e1
ret