Function at 0x10046cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013d55d
mov eax, dword fs:[0]
push eax
mov eax, 0x2670
call fcn.1009e2b0
mov eax, dword [0x1019bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2648], 0
mov dword [ebp - 0x265c], 1
mov dword [ebp - 0x2674], 0
mov dword [ebp - 0x2670], 0
mov dword [ebp - 0x266c], 0
lea eax, [ebp - 0x2640]
mov dword [ebp - 4], 0
push 1
push eax
call fcn.10038b20
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x10046d7a
mov esi, dword [esi]
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x100478af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2664], eax
push esi
lea ecx, [ebp - 0x2664]
mov byte [ebp - 4], 2
call fcn.1000df70
test al, al
jne 0x10046ddc
test esi, esi
jne 0x10046db3
xor ecx, ecx
jmp 0x10046dcf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046dc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2664]
call fcn.1000d5b0
mov edx, dword [ebp - 0x262c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x10046e20
mov ecx, dword [ebp - 0x2640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10046e16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100478b9
push edx
push ecx
call fcn.1009de6e
add esp, 8
xor eax, eax
mov dword [ebp - 0x2630], 0
push 0x1000
push eax
mov word [ebp - 0x2640], ax
lea eax, [ebp - 0x1628]
push eax
mov dword [ebp - 0x262c], 7
call fcn.100e3030
mov edi, dword [ebp - 0x2664]
lea eax, [ebp - 0x2660]
add esp, 0xc
mov dword [ebp - 0x2660], 0
push eax
push 0x20219
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10047871
mov esi, dword [ebp - 0x2660]
lea eax, [ebp - 0x2644]
push eax
lea eax, [ebp - 0x1628]
mov dword [ebp - 0x2674], esi
push eax
lea eax, [ebp - 0x264c]
mov dword [ebp - 0x2670], 0x200
push eax
push 0
push 0x101539d4
push esi
mov dword [ebp - 0x2644], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046eed
mov eax, dword [ebp - 0x264c]
cmp eax, 1
je 0x10046edb
cmp eax, 2
jne 0x10046eed
cmp dword [ebp - 0x2644], 0
jne 0x10046eed
xor eax, eax
mov word [ebp - 0x1628], ax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e3030
mov ecx, dword [0x101a0920]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
jne 0x10046f6b
push 0x1019a1a0
call ebx
cmp dword [0x101a0920], 0
jne 0x10046f5a
push 0x34
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x264c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x10046f44
mov ecx, eax
call fcn.1002e460
jmp 0x10046f46
xor eax, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264c]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0920], eax
push 0x1019a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0920]
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push 0x104
push edx
lea edx, [ebp - 0x1628]
push edx
push ecx
call dword [eax]
mov dword [ebp - 0x264c], eax
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x100478be
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2644], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2644]
call fcn.1000df70
test al, al
jne 0x10046ff2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046fd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2644]
call fcn.1000d5b0
mov ecx, dword [0x101a0fa0]
mov byte [ebp - 4], 7
test ecx, ecx
jne 0x1004705b
push 0x1019b384
call ebx
cmp dword [0x101a0fa0], 0
jne 0x1004704a
push 0x9c
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x2650], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x10047034
mov ecx, eax
call fcn.1003d7a0
jmp 0x10047036
xor eax, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2650]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0fa0], eax
push 0x1019b384
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0fa0]
lea eax, [ebp - 0x2644]
push eax
call fcn.10041180
mov edx, dword [ebp - 0x2644]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004708b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x264c], 0
jne 0x100470c1
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100470ad
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1004788d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004788d
push 0x1000
lea eax, [ebp - 0x2628]
push 0
push eax
call fcn.100e3030
add esp, 0xc
mov dword [ebp - 0x2644], 0x2000
lea eax, [ebp - 0x2644]
push eax
lea eax, [ebp - 0x2628]
push eax
lea eax, [ebp - 0x264c]
push eax
push 0
push str.VendorID
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004712a
mov eax, dword [ebp - 0x264c]
cmp eax, 1
je 0x10047118
cmp eax, 2
jne 0x1004712a
cmp dword [ebp - 0x2644], 0
jne 0x1004712a
xor eax, eax
mov word [ebp - 0x2628], ax
mov ecx, dword [0x101a0fa0]
test ecx, ecx
jne 0x10047194
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1019b384
call eax
cmp dword [0x101a0fa0], 0
jne 0x10047183
push 0x9c
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x264c], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x1004716d
mov ecx, eax
call fcn.1003d7a0
jmp 0x1004716f
xor eax, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2678]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0fa0], eax
push 0x1019b384
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0fa0]
call fcn.1003e1b0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.1000c300
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x267c], esi
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x264c], eax
test ecx, ecx
je 0x100471cf
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100471e5
call fcn.1000ca70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100478c8
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x2648], 1
push esi
push 0x11
mov dword [ebp - 0x2658], eax
lea eax, [ebp - 0x2658]
push str.ex_ary_new_pid_
push eax
call fcn.100483b0
add esp, 0x14
mov esi, dword [ebp - 0x2658]
mov byte [ebp - 4], 0xc
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x10047233
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10047249
call fcn.1000ca70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x100478d2
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x11
push str.ex_ary_old_pid_
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x2648], 3
mov dword [ebp - 0x2644], eax
lea eax, [ebp - 0x2644]
push esi
push eax
call fcn.100483b0
lea eax, [ebp - 0x2628]
push eax
lea eax, [ebp - 0x2644]
push eax
lea eax, [ebp - 0x2668]
push eax
call fcn.1000ba50
add esp, 0x20
mov dword [ebp - 0x2648], 1
mov edx, dword [ebp - 0x2644]
mov eax, ebx
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100472c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
lea edx, [esi - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100472db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x100478dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2648], eax
push str.turn_pid
lea ecx, [ebp - 0x2648]
mov byte [ebp - 4], 0x10
call fcn.1000df70
test al, al
jne 0x10047322
push 8
push str.turn_pid
lea ecx, [ebp - 0x2648]
call fcn.1000d5b0
mov byte [ebp - 4], 0x11
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x100478e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2644], eax
push str.instnew
lea ecx, [ebp - 0x2644]
mov byte [ebp - 4], 0x12
call fcn.1000df70
test al, al
jne 0x1004736d
push 7
push str.instnew
lea ecx, [ebp - 0x2644]
call fcn.1000d5b0
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x2658], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x101a0920]
mov eax, dword [ebp - 0x2668]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x2650], eax
test ecx, ecx
jne 0x100473ff
push 0x1019a1a0
call esi
cmp dword [0x101a0920], 0
jne 0x100473e8
push 0x34
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x2654], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x100473d2
mov ecx, eax
call fcn.1002e460
jmp 0x100473d4
xor eax, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2654]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0920], eax
push 0x1019a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0920]
mov eax, dword [ebp - 0x2650]
push 0
push eax
lea eax, [ebp - 0x2648]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x2644]
push eax
call fcn.10030af0
mov edx, dword [ebp - 0x2644]
mov eax, ebx
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004743a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2648]
mov eax, ebx
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004745b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100e3030
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100e3030
mov ecx, dword [0x101a0920]
add esp, 0xc
test ecx, ecx
jne 0x10047500
push 0x1019a1a0
call esi
cmp dword [0x101a0920], 0
jne 0x100474ef
push 0x34
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x2654], eax
mov byte [ebp - 4], 0x16
test eax, eax
je 0x100474d9
mov ecx, eax
call fcn.1002e460
jmp 0x100474db
xor eax, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2654]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0920], eax
push 0x1019a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0920]
mov eax, dword [ecx]
lea edx, [ebp - 0x420]
push 0x104
push edx
lea edx, [ebp - 0x628]
push edx
push ecx
call dword [eax]
lea eax, [ebp - 0x2644]
mov dword [ebp - 0x2658], 0
push eax
lea eax, [ebp - 0x2658]
mov dword [ebp - 0x2644], 0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2648], 0
push eax
mov dword [ebp - 0x2650], 0
call fcn.1004c110
lea eax, [ebp - 0x2650]
push eax
lea eax, [ebp - 0x2648]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1004c110
mov eax, dword [ebp - 0x2658]
add esp, 0x18
sub eax, dword [ebp - 0x2648]
jne 0x10047591
mov eax, dword [ebp - 0x2644]
sub eax, dword [ebp - 0x2650]
test eax, eax
jg 0x10047607
mov edx, dword [ebp - 0x2668]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100475b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264c]
mov eax, ebx
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100475d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100475ed
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2660]
test eax, eax
je 0x1004788d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004788d
mov ecx, dword [0x101a0fa0]
test ecx, ecx
jne 0x1004766c
push 0x1019b384
call esi
cmp dword [0x101a0fa0], 0
jne 0x1004765b
push 0x9c
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x2654], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x10047645
mov ecx, eax
call fcn.1003d7a0
jmp 0x10047647
xor eax, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2654]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0fa0], eax
push 0x1019b384
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0fa0]
call fcn.1003fca0
mov eax, dword [eax]
mov dword [ebp - 0x265c], eax
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x100478f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2650], eax
push dword [ebp - 0x265c]
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2650]
push str.ver__s__s__d
push eax
call fcn.1000ade0
add esp, 0x14
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x2654], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x101a0920]
mov byte [ebp - 4], 0x19
test ecx, ecx
jne 0x1004773c
push 0x1019a1a0
call esi
cmp dword [0x101a0920], 0
jne 0x1004772b
push 0x34
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x265c], eax
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x10047715
mov ecx, eax
call fcn.1002e460
jmp 0x10047717
xor eax, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2654]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0920], eax
push 0x1019a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0920]
mov esi, dword [ebp - 0x2650]
push 0
push 0
push esi
mov byte [ebp - 4], 0x18
call fcn.10030840
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x2654], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x101a0920]
mov byte [ebp - 4], 0x1b
test ecx, ecx
jne 0x100477cf
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1019a1a0
call eax
cmp dword [0x101a0920], 0
jne 0x100477be
push 0x34
call fcn.1009e3f9
add esp, 4
mov dword [ebp - 0x265c], eax
mov byte [ebp - 4], 0x1c
test eax, eax
je 0x100477a8
mov ecx, eax
call fcn.1002e460
jmp 0x100477aa
xor eax, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2654]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x101a0920], eax
push 0x1019a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x101a0920]
push 0
push 0
push str.install_file_fail
mov byte [ebp - 4], 0x18
call fcn.10030840
mov dword [ebp - 0x265c], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0xf
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10047806
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2668]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047827
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264c]
mov eax, ebx
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004785e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2660]
test eax, eax
je 0x1004788d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004788d
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004788d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x265c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009de58
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000aab0
call fcn.100ffdb3
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
int3