Function at 0x40d3c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f99c
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x450988]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x1a0], ax
lea eax, [ebp - 0x19e]
push eax
call fcn.0040fe70
add esp, 0xc
xor ecx, ecx
jmp 0x40d420
movzx eax, word [ecx + str.SOFTWAREMozillaPlugins_screenleap.com_ScreenleapPlugin]
mov word [ebp + ecx - 0x1a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d420
mov edx, dword [0x4530a8]
test edx, edx
je 0x40d47a
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d443
lea edi, [ebp - 0x1a0]
sub edx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d460
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1a0]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d483
mov eax, dword [0x441dec]
mov edx, dword [0x4506dc]
mov dword [ecx], eax
mov eax, dword [0x441df0]
mov dword [ecx + 4], eax
mov eax, dword [0x441df4]
mov dword [ecx + 8], eax
mov eax, dword [0x441df8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x441dfc]
mov dword [ecx + 0x10], eax
mov esi, edx
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d4c0
lea edi, [ebp - 0x1a0]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d4d6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x1a4]
push eax
mov ecx, edx
shr ecx, 2
lea eax, [ebp - 0x1a8]
push eax
push 0
rep movsd dword es:[edi], dword [esi]
push 0xf013f
push 0
push 0
push 0
lea eax, [ebp - 0x1a0]
mov ecx, edx
push eax
and ecx, 3
push 0x80000001
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
jne 0x40d743
push dword [ebp - 0x1b4]
lea eax, [ebp - 0x1cc]
push eax
call fcn.0040b6c0
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x28c]
mov dword [ebp - 4], 0
call fcn.00407080
push esi
push str.Registering_NPAPI_plugin_at
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408840
push eax
call fcn.00403fe0
add esp, 8
push eax
call fcn.00403cf0
add esp, 8
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0
call fcn.004073d0
cmp dword [ebp - 0x1b8], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40d5a2
push dword [ebp - 0x1cc]
call fcn.0040e8c9
add esp, 4
mov edx, dword [0x4506e4]
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5b0
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x441e20
push dword [ebp - 0x1a8]
call esi
mov edx, dword [0x4506e4]
mov ecx, edx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5f0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Description
push dword [ebp - 0x1a8]
call esi
mov edx, dword [0x4506dc]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d624
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Version
push dword [ebp - 0x1a8]
call esi
mov edx, dword [0x4506e0]
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x40d660
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d660
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Vendor
push dword [ebp - 0x1a8]
call esi
mov edi, dword [ebp - 0x1b4]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d694
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.Path
push dword [ebp - 0x1a8]
call esi
push 0
lea eax, [ebp - 0x1ac]
push eax
push 0
push 0x104
push 0
push 0
push 0
push str.MimeTypes
push dword [ebp - 0x1a8]
call ebx
test eax, eax
jne 0x40d704
push eax
lea eax, [ebp - 0x1b0]
push eax
push 0
push 0
push 0
push 0
push 0
push dword [0x4506e8]
push dword [ebp - 0x1ac]
call ebx
push dword [ebp - 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40d784
lea ecx, [ebp - 0x28c]
call fcn.00407080
push str.Could_not_close_registry_key
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00408970
push eax
call fcn.00403fe0
add esp, 8
lea ecx, [ebp - 0x28c]
jmp 0x40d778
lea ecx, [ebp - 0x34c]
call fcn.00407080
push esi
push str.Failed_to_create_NPAPI_plugin_key__error_code
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00408970
push eax
call fcn.00403fe0
add esp, 8
mov ecx, eax
call fcn.0040a990
lea ecx, [ebp - 0x34c]
mov dword [ebp - 4], 0xffffffff
call fcn.004073d0
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.0040f059
mov esp, ebp
pop ebp
ret