Function at 0x409160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6a4
mov eax, dword [0x467900]
mov dword [esp + 0x6a0], eax
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
mov byte [esp + 0x498], 0
mov ecx, 0x40
lea edi, [esp + 0x499]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x418], 0
mov ecx, 0x1f
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x198], 0
mov ecx, 0x1f
lea edi, [esp + 0x199]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x5a0], 0
mov ecx, 0x40
lea edi, [esp + 0x5a1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x218], 0
mov ecx, 0x1f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x1f
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x98], 0
mov ecx, 0x1f
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x318], 0
mov ecx, 0x1f
lea edi, [esp + 0x319]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x298], 0
mov ecx, 0x1f
lea edi, [esp + 0x299]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
stosb byte es:[edi], al
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
xor eax, eax
mov cl, byte [eax + str.SoftwareBroderbundPMScreenSaver]
mov byte [esp + eax + 0x498], cl
inc eax
test cl, cl
jne 0x409291
xor eax, eax
jmp 0x4092b0
mov cl, byte [eax + str.First_Run]
mov byte [esp + eax + 0x318], cl
inc eax
test cl, cl
jne 0x4092b0
mov byte [esp + 0x398], cl
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x399]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x80
lea eax, [esp + 0x39c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x398]
push 0x5c
push ecx
call fcn.004409e8
add esp, 8
cmp eax, esi
je 0x40937e
lea ecx, [esp + 0x498]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409310
sub ecx, esi
mov esi, ecx
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409320
sub ecx, edi
lea edx, [ecx + esi + 2]
cmp edx, 0x104
jae 0x40937e
lea edi, [esp + 0x498]
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409340
mov cx, word [0x45498c]
inc eax
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409355
lea edi, [esp + 0x498]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409366
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x468d7c]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x80
lea edx, [esp + 0x41c]
push edx
push 0x6f
push eax
call esi
mov edx, dword [0x468d7c]
push 0x80
lea ecx, [esp + 0x19c]
push ecx
push 0x73
push edx
call esi
mov ecx, dword [0x468d7c]
push 0x80
lea eax, [esp + 0x5a4]
push eax
push 0x74
push ecx
call esi
mov eax, dword [0x468d7c]
push 0x80
lea edx, [esp + 0x1c]
push edx
push 0x75
push eax
call esi
mov edx, dword [0x468d7c]
push 0x80
lea ecx, [esp + 0x11c]
push ecx
push 0x77
push edx
call esi
mov ecx, dword [0x468d7c]
push 0x80
lea eax, [esp + 0x21c]
push eax
push 0x7c
push ecx
call esi
mov eax, dword [0x468d7c]
push 0x80
lea edx, [esp + 0x9c]
push edx
push 0x7a
push eax
call esi
mov edx, dword [0x468d7c]
push 0x80
lea ecx, [esp + 0x29c]
push ecx
push 0x84
push edx
call esi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x4a4]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40960e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
lea eax, [ebx + 0xe4]
push eax
push 0
push 0
lea eax, [esp + 0x428]
push eax
push ecx
mov dword [esp + 0x24], 0x104
call esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [ebx + 0x1e8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x1a8]
push ecx
mov edi, 4
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x1f4]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x5b0]
push eax
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [ebx + 0x1ec]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [ebx + 0xd0]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x2a8]
push ecx
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 0xb4]
push eax
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0xa8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push eax
push ecx
call esi
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x409586
mov al, byte [ebx + 0xe4]
xor edx, edx
test al, al
sete dl
mov dword [ebx + 0xb4], edx
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x128]
push eax
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [ebx + 0xc0]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x228]
push edx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [ebx + 0xc4]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x328]
push ecx
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409615
mov byte [ebx + 0x218], 1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x409626
mov dword [ebx + 0x1ec], 0
mov ecx, dword [esp + 0x6ac]
call fcn.0043f599
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret