Function at 0x40c460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x24]
sub esp, 0x24
push 0xffffffffffffffff
push 0x43a54b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x452020]
xor eax, ebp
mov dword [ebp + 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4540ec], 8
lea edx, [ebp + 0x10]
mov ecx, dword [ebp + 0x2c]
mov eax, 0x4540d8
cmovae eax, dword [0x4540d8]
push edx
push 0x20219
push 0
push eax
push ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x40c680
cmp dword [0x4540ec], 8
lea ecx, [ebp + 0x10]
push ecx
push 0x20119
mov eax, 0x4540d8
cmovae eax, dword [0x4540d8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x40c680
mov esi, dword [0x4541cc]
mov edi, 1
test esi, esi
je 0x40c526
mov ecx, esi
call dword [0x43d1ac]
call esi
cmp eax, 0x46
jg 0x40c85d
push str.OutlookAddinStatus::GetOutlookAddinState__1_x_:_Could_not_open_LM_act._key._Error_2_x.
lea ecx, [ebp - 0xa8]
call fcn.004136c0
mov dword [ebp - 4], 1
lea ecx, [ebp + 0xc]
mov dword [ebp], ecx
lea edx, [ebp]
mov ecx, eax
mov dword [ebp + 4], fcn.0040d1c0
mov dword [ebp + 8], 0x40d1d0
call fcn.0040d080
lea ecx, [ebp + 0x1c]
mov dword [ebp + 4], fcn.0040d1c0
mov dword [ebp], ecx
lea edx, [ebp]
mov ecx, eax
mov dword [ebp + 8], 0x40d1e0
call fcn.0040d080
mov edx, 0x46
mov ecx, eax
call fcn.0041ba00
cmp byte [ebp - 0x18], 0
je 0x40c5bf
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40c5bb
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x43d1ac]
mov ecx, ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x40c5bb
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x43d1ac]
mov ecx, ebx
call esi
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x60]
call fcn.00413470
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x40c601
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c5f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c87e
push ecx
push edx
call fcn.0041d595
add esp, 8
mov edx, dword [ebp - 0x9c]
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
test edx, edx
je 0x40c670
mov ecx, dword [ebp - 0x94]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40c648
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c87e
push ecx
push edx
call fcn.0041d595
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0xa8]
call fcn.0040ce90
jmp 0x40c85d
cmp dword [0x454104], 8
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x18], 4
push ecx
push 0
mov eax, 0x4540f0
cmovae eax, dword [0x4540f0]
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x40c6c6
movzx edi, byte [ebp + 0x14]
and edi, 1
add edi, 2
jmp 0x40c854
mov esi, dword [0x4541cc]
or edi, 0xffffffff
test esi, esi
je 0x40c6e8
mov ecx, esi
call dword [0x43d1ac]
call esi
cmp eax, 0x12c
jg 0x40c854
push str.OutlookAddinStatus::GetOutlookAddinState__1_x_:_Could_not_read_LM_act._state._Error_2_x.
lea ecx, [ebp - 0x144]
call fcn.004136c0
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
mov dword [ebp], ecx
lea edx, [ebp]
mov ecx, eax
mov dword [ebp + 4], fcn.0040d1c0
mov dword [ebp + 8], 0x40d1d0
call fcn.0040d080
lea ecx, [ebp + 0x1c]
mov dword [ebp + 4], fcn.0040d1c0
mov dword [ebp], ecx
lea edx, [ebp]
mov ecx, eax
mov dword [ebp + 8], 0x40d1e0
call fcn.0040d080
mov edx, 0x12c
mov ecx, eax
call fcn.0041ba00
cmp byte [ebp - 0xb4], 0
je 0x40c78a
mov ebx, dword [ebp - 0xac]
test ebx, ebx
je 0x40c783
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x43d1ac]
mov ecx, ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x40c783
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x43d1ac]
mov ecx, ebx
call esi
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0xfc]
call fcn.00413470
mov ecx, dword [ebp - 0x104]
cmp ecx, 8
jb 0x40c7d5
mov edx, dword [ebp - 0x118]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c7cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c883
push ecx
push edx
call fcn.0041d595
add esp, 8
mov edx, dword [ebp - 0x138]
xor eax, eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 7
mov word [ebp - 0x118], ax
test edx, edx
je 0x40c849
mov ecx, dword [ebp - 0x130]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40c821
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c883
push ecx
push edx
call fcn.0041d595
add esp, 8
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
lea ecx, [ebp - 0x144]
call fcn.0040ce90
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20]
xor ecx, ebp
call fcn.0041d1ec
lea esp, [ebp + 0x24]
pop ebp
ret 4
call fcn.004268a9
call fcn.004268a9
int3