Function at 0x10045020
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007837e
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x520], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x538]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x80000002
lea ecx, [esp + 0xe0]
mov dword [esp + 0x20], 0
mov dword [esp + 0xe0], 0
call fcn.1005c350
lea eax, [esp + 0xd4]
mov dword [esp + 0x540], 0
push eax
lea ecx, [esp + 0x118]
mov dword [esp + 0x118], 0
call fcn.1005cd10
mov byte [esp + 0x540], 1
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x34], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x100457fb
test eax, eax
js 0x100457f4
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0xa0], 0
call fcn.1005c530
mov edx, dword [esp + 0x98]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
test edx, edx
je 0x100451d2
cmp byte [esp + 0xb4], 0
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [esp + 0x58]
cmovne eax, dword [esp + 0x34]
mov byte [esp + 0x58], al
lea eax, [esp + 0x9c]
test cl, 0x26
je 0x100451ac
cmp dword [esp + 0xb0], 8
lea edi, [esp + 0xd0]
cmovae eax, dword [esp + 0x9c]
push edi
lea edi, [esp + 0x54]
push edi
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x100451d2
cmp dword [esp + 0xb0], 8
lea ebx, [esp + 0x50]
cmovae eax, dword [esp + 0x9c]
push ebx
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004570a
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x98]
push ecx
push 0
push str.BlockOnTSNonInstallMode
push eax
mov dword [esp + 0xa8], 4
mov dword [esp + 0xac], 4
mov dword [esp + 0xa4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10045252
mov eax, dword [esp + 0x90]
cmp eax, 4
je 0x1004523a
cmp eax, 3
jne 0x10045252
cmp dword [esp + 0x94], 4
jne 0x10045252
cmp dword [esp + 0x8c], 1
je 0x1004570a
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x74]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x58]
mov byte [esp + 0x548], 5
call fcn.1005cb10
lea eax, [esp + 0x5c]
push eax
push str.Path
lea ecx, [esp + 0x58]
call fcn.1005cb10
cmp dword [esp + 0x84], 0
jne 0x1004539c
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.10003de0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x540], 6
call fcn.10048b80
test al, al
sete bl
mov byte [esp + 0x540], 5
cmp dword [esp + 0x2c], 8
jb 0x10045314
push dword [esp + 0x18]
call edi
add esp, 4
test bl, bl
je 0x1004532c
push 0
lea eax, [esp + 0x9c]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.1004bcb0
cmp dword [esp + 0x70], 8
jb 0x1004533c
push dword [esp + 0x5c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x88], 8
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x10045366
push dword [esp + 0x74]
call edi
add esp, 4
xor eax, eax
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
test eax, eax
je 0x1004571d
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
jmp 0x10045715
cmp dword [esp + 0x6c], 0
je 0x10045545
xor eax, eax
push 0x206
push eax
mov word [esp + 0x32c], ax
lea eax, [esp + 0x32e]
push eax
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathW]
add esp, 0xc
cmp dword [esp + 0x70], 8
push 0
lea edx, [esp + 0x328]
push edx
lea ecx, [esp + 0x64]
cmovae ecx, dword [esp + 0x64]
cmp dword [esp + 0x90], 8
push 0x104
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x10045485
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10008e70
or dword [esp + 0x14], 1
xor eax, eax
push 0x206
push eax
mov word [esp + 0x32c], ax
lea eax, [esp + 0x32e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esp + 0x6c], 0
jne 0x1004544c
xor ecx, ecx
jmp 0x1004545a
cmp dword [esp + 0x70], 8
lea ecx, [esp + 0x5c]
cmovae ecx, dword [esp + 0x5c]
cmp dword [esp + 0x2c], 8
push 0
lea edx, [esp + 0x328]
push edx
push 0x104
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x10045485
xor bl, bl
jmp 0x10045487
mov bl, 1
mov eax, dword [esp + 0x14]
test al, 1
je 0x100454a6
and eax, 0xfffffffe
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x14], eax
jb 0x100454a6
push dword [esp + 0x18]
call edi
add esp, 4
test bl, bl
je 0x10045545
cmp dword [esp + 0x70], 8
jb 0x100454be
push dword [esp + 0x5c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x88], 8
mov word [esp + 0x5c], ax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 7
jb 0x100454e4
push dword [esp + 0x74]
call edi
add esp, 4
xor eax, eax
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 7
test eax, eax
je 0x10045519
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004552c
push eax
call esi
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x98]
mov byte [esp + 0x540], 1
call fcn.10007a50
jmp 0x10045780
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.10003de0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x74]
mov byte [esp + 0x540], 7
call fcn.10048b80
mov byte [esp + 0x540], 5
cmp dword [esp + 0x2c], 8
mov bl, al
jb 0x1004559a
push dword [esp + 0x18]
call edi
add esp, 4
test bl, bl
jne 0x100454ae
push 0x1007d0cc
lea ecx, [esp + 0x3c]
call fcn.10008e70
mov esi, eax
push str..exe
lea edx, [esp + 0x78]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 8
call fcn.1002bb20
add esp, 4
mov edx, esi
mov ecx, eax
mov byte [esp + 0x540], 9
call fcn.10048b80
cmp dword [esp + 0x2c], 8
mov bl, al
jb 0x100455f2
push dword [esp + 0x18]
call edi
add esp, 4
xor eax, eax
mov byte [esp + 0x540], 5
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jb 0x10045621
push dword [esp + 0x38]
call edi
add esp, 4
test bl, bl
je 0x100456b0
cmp dword [esp + 0x70], 8
jb 0x10045639
push dword [esp + 0x5c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x88], 8
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x10045663
push dword [esp + 0x74]
call edi
add esp, 4
xor eax, eax
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
test eax, eax
je 0x10045698
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004552c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10045524
push 0
lea eax, [esp + 0x9c]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.1004bcb0
cmp dword [esp + 0x70], 8
jb 0x100456d4
push dword [esp + 0x5c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x88], 8
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x100456fe
push dword [esp + 0x74]
call edi
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004571d
push eax
call ebx
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10045730
push eax
call esi
mov dword [esp + 0x50], 0
mov byte [esp + 0x540], 1
cmp dword [esp + 0xcc], 8
jb 0x1004574e
push dword [esp + 0xb8]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0xb0], 8
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], eax
mov word [esp + 0xb8], ax
jb 0x10045780
push dword [esp + 0x9c]
call edi
add esp, 4
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
dec eax
mov dword [esp + 0x118], eax
test ecx, ecx
je 0x100457e5
test eax, eax
js 0x100457e5
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x9c]
push edx
lea edx, [esp + 0x130]
push edx
push eax
push ecx
mov dword [esp + 0xac], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x114]
test eax, eax
mov eax, dword [esp + 0x118]
je 0x100450dd
xor edx, edx
mov word [esp + 0x11c], dx
jmp 0x100450dd
test ecx, ecx
je 0x100457fb
push ecx
call esi
cmp dword [esp + 0x108], 8
jb 0x10045811
push dword [esp + 0xf4]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0xec], 8
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], ax
jb 0x10045847
push dword [esp + 0xd8]
call edi
add esp, 4
mov ecx, dword [esp + 0x538]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x520]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret