Function at 0x10040570
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ec3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push esi
and dword [ebp - 0x16c], 0
and dword [ebp - 0x168], 0
and dword [ebp - 0x164], 0
and dword [ebp - 0x160], 0
lea ecx, [ebp - 0x51]
call fcn.10008be3
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.1001676d
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x1c8]
call fcn.10016733
and dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xfffffff6
mov dword [ebp - 0x1b8], 0x9dfcf09c
mov dword [ebp - 0x1b0], 0x87f6fb80
push 4
lea ecx, [ebp - 0x178]
call fcn.100166d2
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0
jmp 0x1004061d
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 4
jge 0x10040639
push dword [ebp - 0x38]
lea ecx, [ebp - 0x178]
call fcn.1001675e
mov dword [eax], 0xfffffff8
jmp 0x10040616
mov dword [ebp - 0x2c], 0
jmp 0x10040649
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jg 0x10040705
mov dword [ebp - 0x50], 8
push 3
lea ecx, [ebp - 0x18c]
call fcn.100166d2
mov byte [ebp - 4], 2
mov dword [ebp - 0x1a4], 1
mov dword [ebp - 0x40], 0
jmp 0x10040685
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jge 0x100406a1
push dword [ebp - 0x40]
lea ecx, [ebp - 0x18c]
call fcn.1001675e
mov dword [eax], 0xef9d7865
jmp 0x1004067e
mov dword [ebp - 0x50], 0
jmp 0x100406b1
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x100406f1
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0x180], 0xfffffff7
push 2
lea ecx, [ebp - 0x178]
call fcn.1001675e
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x94]
mov dword [ecx], eax
jmp 0x100406aa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18c]
call fcn.10016759
jmp 0x10040642
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x178]
call fcn.10016759
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
call fcn.10016759
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10040b6b
mov dword [ebp - 0x1c], 0x477862fd
mov dword [ebp - 0xf8], 0x38299fa9
mov dword [ebp - 0xf4], 0x38299fa9
mov dword [ebp - 0xf0], 0x38299fa9
mov dword [ebp - 0xec], 0x38299fa9
mov dword [ebp - 0x80], 0xffffffff
mov dword [ebp - 0x88], 0xd7f285f4
or dword [ebp - 0x158], 0xffffffff
or dword [ebp - 0x154], 0xffffffff
or dword [ebp - 0x150], 0xffffffff
or dword [ebp - 0x14c], 0xffffffff
lea ecx, [ebp - 0x59]
call fcn.10008be3
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.1001676d
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x1a0]
call fcn.10016733
mov dword [ebp - 4], 3
mov dword [ebp - 0x144], 1
mov dword [ebp - 0xfc], 0x2e882408
mov dword [ebp - 0x48], 0
jmp 0x100407e8
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 2
jge 0x100407fe
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x110], 5
jmp 0x100407e1
mov dword [ebp - 0x1c], 0x17
jmp 0x1004080e
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xfffffffc
jl 0x10040b4d
mov dword [ebp - 0x30], 0
jmp 0x10040828
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 4
jge 0x1004083b
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x70], 0xc62e0897
jmp 0x10040821
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x70], 0
je 0x10040b1f
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x70]
mov dword [ebp - 0x1b4], eax
push 4
pop eax
imul eax, eax, 0
imul eax, dword [ebp + eax - 0xf8], 0xe26b
push 4
pop ecx
imul ecx, ecx, 3
cmp eax, dword [ebp + ecx - 0x70]
jl 0x10040884
mov dword [ebp - 0xd4], 1
jmp 0x1004088b
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
add eax, 9
cmp dword [ebp - 0x1c], eax
jl 0x100408a5
mov dword [ebp - 0xe8], 1
jmp 0x100408ac
and dword [ebp - 0xe8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x70]
add eax, dword [ebp - 0xe8]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xfffb
jne 0x100408d4
mov dword [ebp - 0xb8], 1
jmp 0x100408db
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x88], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x70]
cmp dword [ebp - 0x88], eax
je 0x10040904
mov dword [ebp - 0xd0], 1
jmp 0x1004090b
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
neg eax
push 4
pop ecx
shl ecx, 1
add eax, dword [ebp + ecx - 0x70]
cmp dword [ebp - 0x1c], eax
je 0x10040937
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x70], 0
jne 0x10040937
and dword [ebp - 0x90], 0
jmp 0x10040941
mov dword [ebp - 0x90], 1
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x70]
cmp eax, dword [ebp - 0x90]
jle 0x1004095f
mov dword [ebp - 0xc0], 1
jmp 0x10040966
and dword [ebp - 0xc0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf8]
imul eax, dword [ebp - 0xc0]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0xf8]
jne 0x10040991
mov dword [ebp - 0x58], 1
jmp 0x10040995
and dword [ebp - 0x58], 0
push 1
lea ecx, [ebp - 0x1a0]
call fcn.1001675e
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
cmp dword [ebp - 0x58], 0
je 0x100409be
xor eax, eax
inc eax
je 0x100409be
mov dword [ebp - 0x98], 1
jmp 0x100409c5
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0
jne 0x100409da
mov dword [ebp - 0xe4], 1
jmp 0x100409e1
and dword [ebp - 0xe4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf8]
cmp dword [ebp - 0xe4], eax
je 0x10040a02
mov dword [ebp - 0xa0], 1
jmp 0x10040a09
and dword [ebp - 0xa0], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x110]
imul eax, dword [ebp - 0xa0]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0xf8]
jge 0x10040a3e
mov eax, 0x4b505d01
test eax, eax
je 0x10040a3e
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x70], 0
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0xf8]
cmp dword [ebp + eax - 0x70], ecx
jl 0x10040a63
mov dword [ebp - 0xc8], 1
jmp 0x10040a6a
and dword [ebp - 0xc8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x110]
cmp dword [ebp - 0xc8], eax
jne 0x10040a8b
mov dword [ebp - 0xa8], 1
jmp 0x10040a92
and dword [ebp - 0xa8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x110]
cmp dword [ebp - 0xa8], eax
jl 0x10040ab3
mov dword [ebp - 0xdc], 1
jmp 0x10040aba
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 0x7067d5b4
jg 0x10040ad2
mov dword [ebp - 0x138], 1
jmp 0x10040ad9
and dword [ebp - 0x138], 0
cmp dword [ebp - 0x144], 0
jne 0x10040afb
mov eax, 0x50eb
test eax, eax
jne 0x10040afb
push 5
pop eax
test eax, eax
jne 0x10040afb
and dword [ebp - 0xb0], 0
jmp 0x10040b05
mov dword [ebp - 0xb0], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x70]
add eax, dword [ebp - 0xb0]
je 0x10040b1f
mov dword [ebp - 0x78], 1
jmp 0x10040b23
and dword [ebp - 0x78], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax - 0x70], ecx
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x70]
sub eax, dword [ebp - 0xfc]
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x70], eax
jmp 0x10040807
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a0]
call fcn.10016759
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10040ff3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x34], 0xdf75dcec
mov dword [ebp - 0x1bc], 0x4a2a4f40
mov dword [ebp - 0x34], 0x1b
jmp 0x10040b95
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x11
je 0x10040bbe
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x10040bbc
push 0
push 0
push 0x1899
push 0
push 1
push 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x10040b8e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0xb4], 0xd8987f2f
mov dword [ebp - 0x7c], 0xfa20bd03
mov dword [ebp - 0xa4], 0x5e4b7834
mov dword [ebp - 0x108], 0xfffffff9
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x10], 0
jmp 0x10040c0a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10040c20
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x194], 0xb2ab76d6
jmp 0x10040c03
mov dword [ebp - 0x10], 0
jmp 0x10040c30
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10040c46
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x120], 0xffffffff
jmp 0x10040c29
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x10040d6f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x10040d26
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x120]
cmp dword [ebp - 0x3c], eax
jg 0x10040c86
mov dword [ebp - 0x84], 1
jmp 0x10040c8d
and dword [ebp - 0x84], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, 0x59ff446c
sub ecx, dword [ebp + eax - 0x194]
cmp ecx, dword [ebp - 0x84]
jge 0x10040cb3
mov dword [ebp - 0x104], 1
jmp 0x10040cba
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x17c], eax
xor eax, eax
inc eax
je 0x10040cda
cmp dword [ebp - 0x24], 0
je 0x10040cda
mov dword [ebp - 0x8c], 1
jmp 0x10040ce1
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0
jne 0x10040cf3
mov dword [ebp - 0x74], 1
jmp 0x10040cf7
and dword [ebp - 0x74], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x120]
cmp dword [ebp - 0x74], eax
jl 0x10040d0d
cmp dword [ebp - 0x24], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x120], 0
jne 0x10040d26
and dword [ebp - 0x9c], 0
jmp 0x10040d30
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x10040d53
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x120], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x120], 0
je 0x10040d6f
mov dword [ebp - 0xac], 1
jmp 0x10040d76
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 1
jne 0x10040da0
mov eax, 0x758185f1
test eax, eax
je 0x10040da0
mov dword [ebp - 0xbc], 1
jmp 0x10040da7
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0x108]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x14], 0x8a61928c
push 1
lea ecx, [ebp - 0x130]
call fcn.100166d2
mov dword [ebp - 4], 4
mov dword [ebp - 0x44], 0
jmp 0x10040df6
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x10040e12
push dword [ebp - 0x44]
lea ecx, [ebp - 0x130]
call fcn.1001675e
mov dword [eax], 0x29edca8f
jmp 0x10040def
mov dword [ebp - 0x14], 1
jmp 0x10040e22
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffe4
jg 0x10040f71
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x60], 0xaa05d762
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc4], eax
push 0
lea ecx, [ebp - 0x130]
call fcn.1001675e
mov ecx, dword [ebp - 0xc4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc4], eax
jl 0x10040e6f
mov dword [ebp - 0xcc], 1
jmp 0x10040e76
and dword [ebp - 0xcc], 0
cmp dword [ebp - 0xcc], 1
je 0x10040e8b
mov dword [ebp - 0x140], 1
jmp 0x10040e92
and dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1a8], eax
xor eax, eax
cmp eax, 1
je 0x10040eb4
mov eax, 0xc657
test eax, eax
jne 0x10040eb4
and dword [ebp - 0x124], 0
jmp 0x10040ebe
mov dword [ebp - 0x124], 1
push 0xfffffffffffffffb
pop eax
cmp eax, 0x1fc6
jle 0x10040ed4
mov dword [ebp - 0xd8], 1
jmp 0x10040edb
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xd8], eax
jl 0x10040ef2
mov dword [ebp - 0xe0], 1
jmp 0x10040ef9
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0xe0]
test eax, eax
je 0x10040f0f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
jmp 0x10040f6c
mov dword [ebp - 0x4c], 0
jmp 0x10040f1f
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x10040f35
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x134], 0x1db6084e
jmp 0x10040f18
mov dword [ebp - 0x60], 0xffffffff
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp + eax - 0x134], ecx
push 0
lea ecx, [ebp - 0x130]
call fcn.1001675e
mov esi, eax
push 0
lea ecx, [ebp - 0x130]
call fcn.1001675e
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x10040e1b
mov dword [ebp - 0x14], 0
jmp 0x10040f81
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1d
jl 0x10040fae
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10040fac
push 0xee1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetLayout]
jmp 0x10040f7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.10016759
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x10040fd3
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 3
jge 0x10040ff3
mov eax, dword [ebp - 0x28]
push dword [eax]
mov ecx, dword [ebp - 0x100]
call fcn.1001675e
mov dword [eax], 0xf1ad
jmp 0x10040fc8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret