Function at 0x40a878
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push esi
push fcn.00411fda
push 1
push 0x18
pop edx
lea ecx, [ebp - 0xe8]
call fcn.00411f6f
mov dword [ebp - 4], 0xade
mov dword [ebp - 8], 0x3aaf5bfb
mov dword [ebp - 0x1c], 0xfffffffa
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x98], 3
mov dword [ebp - 0x94], 3
mov dword [ebp - 0x90], 3
lea ecx, [ebp - 0x21]
call fcn.004012bc
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004012bf
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x68]
call fcn.0040126b
mov dword [ebp - 0x28], 0x299fa9ef
mov dword [ebp - 0x18], 0
jmp 0x40a91a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x40a930
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x88], 0xfffffffa
jmp 0x40a913
mov dword [ebp - 4], 0xfffffff6
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x1c], eax
jg 0x40a954
mov dword [ebp - 0x4c], 1
jmp 0x40a958
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 4]
je 0x40a96d
mov dword [ebp - 0x78], 1
jmp 0x40a971
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 8]
sub eax, 0x461e3ff1
cmp eax, dword [ebp - 4]
jne 0x40a990
mov dword [ebp - 0x38], 1
jmp 0x40a994
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x38]
jne 0x40a9a5
mov dword [ebp - 0x34], 1
jmp 0x40a9a9
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 3
je 0x40a9b8
mov dword [ebp - 0x58], 1
jmp 0x40a9bc
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x58], eax
jge 0x40a9cd
mov dword [ebp - 0x7c], 1
jmp 0x40a9d1
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
push 3
lea ecx, [ebp - 0x68]
call fcn.004012ad
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x40], eax
jl 0x40aa00
mov dword [ebp - 0x50], 1
jmp 0x40aa04
and dword [ebp - 0x50], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x88]
add eax, dword [ebp - 0x50]
je 0x40aa35
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x40aa33
push 1
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
jmp 0x40aa5a
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x40aa5a
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1ecb
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 4], 0
jmp 0x40aa6a
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jg 0x40ac34
mov dword [ebp - 0x70], 0xa3bb1d44
push 1
lea ecx, [ebp - 0xa8]
call fcn.004011bf
mov dword [ebp - 0xc], 0
jmp 0x40aa98
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x40aaae
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xc4], 0
jmp 0x40aa91
mov dword [ebp - 0xc], 0
jmp 0x40aabe
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x40aada
push dword [ebp - 0xc]
lea ecx, [ebp - 0xa8]
call fcn.004012ad
mov dword [eax], 0x39ba
jmp 0x40aab7
mov dword [ebp - 8], 0
jmp 0x40aaea
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jg 0x40ac24
mov dword [ebp - 0x30], 0x4126315b
mov dword [ebp - 0x74], 0x81b27067
mov dword [ebp - 0x28], 0xc2e3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp + ecx*4 - 0x88]
cmp dword [ebp + eax*4 - 0x88], ecx
jne 0x40ab28
mov dword [ebp - 0x48], 1
jmp 0x40ab2c
and dword [ebp - 0x48], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp + eax - 0xc4], ecx
push dword [ebp - 4]
lea ecx, [ebp - 0x68]
call fcn.004012ad
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x88], 0x8c24
push dword [ebp - 8]
lea ecx, [ebp - 0x68]
call fcn.004012ad
mov esi, eax
push dword [ebp - 4]
lea ecx, [ebp - 0x68]
call fcn.004012ad
mov ecx, dword [esi]
cmp ecx, dword [eax]
jge 0x40ab82
cmp dword [ebp - 0x70], 0
jne 0x40ab82
and dword [ebp - 0x6c], 0
jmp 0x40ab89
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x40aba1
push dword [ebp - 8]
lea ecx, [ebp - 0x68]
call fcn.004012ad
push 3
lea ecx, [ebp - 0x68]
call fcn.004012ad
mov ecx, dword [ebp - 0x28]
cmp dword [eax], ecx
jne 0x40abbb
mov dword [ebp - 0x3c], 1
jmp 0x40abbf
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x25c7
jg 0x40abd1
mov dword [ebp - 0x44], 1
jmp 0x40abd5
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x28], 0x499c77e2
jne 0x40abed
mov dword [ebp - 0x2c], 1
jmp 0x40abf1
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xfffa
jae 0x40ac15
push 0
lea ecx, [ebp - 0xa8]
call fcn.004012ad
cmp dword [eax], 0
je 0x40ac15
mov dword [ebp - 0x54], 1
jmp 0x40ac19
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
jmp 0x40aae3
lea ecx, [ebp - 0xa8]
call fcn.00401291
jmp 0x40aa63
lea ecx, [ebp - 0x68]
call fcn.00401291
push 0x1292
push 0x3c84
lea eax, [ebp - 0xe8]
push eax
push 0x4884
push 0x194b
push dword [ebp + 0xc]
push 0
push 0xefe
call fcn.0040e3d4
add esp, 0x20
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xb8], 0x58bd4dfb
mov dword [ebp - 0x5c], 0xcc2443ac
mov dword [ebp - 0x10], 0
jmp 0x40ac9e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x40acb1
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x20], 0x5b9b55bb
jmp 0x40ac97
mov dword [ebp - 0x10], 0
jmp 0x40acc1
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x40acd7
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xac], 0
jmp 0x40acba
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x20], 7
jmp 0x40acfc
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x20], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0xd
jne 0x40ad26
mov dword [ebp - 0xb4], 0xfffffffe
mov dword [ebp - 0xcc], 0xfffffffe
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
jmp 0x40ace7
push 0x18
pop eax
imul eax, eax, 0
lea eax, [ebp + eax - 0xe8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00411fb4
push fcn.00412056
push 1
push 0x18
pop edx
lea ecx, [ebp - 0xe8]
call fcn.00411f8f
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret