Function at 0x406650
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412bdc
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x419040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x1c], xmm0
push 0x40
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0041124e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x414234]
mov ecx, esi
call edi
test eax, eax
jne 0x406beb
mov dword [ebp - 0x20], 0x80
call fcn.0040c7a0
lea ecx, [ebp - 0x20]
add eax, 0x28
push ecx
push eax
push 1
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x40699c
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x414234]
mov ecx, esi
call edi
test eax, eax
jne 0x40699c
call fcn.0040c7a0
add eax, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040c7a0
mov edi, eax
lea ecx, [ebp - 0x50]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x54], edi
call fcn.0040fbc4
mov ecx, edi
call fcn.0040fd43
lea ecx, [edi + 0x18]
lea eax, [esi + 0x50]
mov dword [ebp - 0x60], ecx
cmp eax, ecx
je 0x4067b2
mov edi, dword [eax]
mov ecx, eax
push dword [edi + 4]
push eax
call fcn.004044b0
mov eax, dword [ebp - 0x60]
lea ecx, [esi + 0x50]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
push eax
mov dword [ecx + 4], 0
call fcn.004042b0
mov ecx, dword [ebp - 0x60]
mov edi, dword [ecx]
push dword [edi + 4]
push ecx
call fcn.004044b0
mov eax, dword [ebp - 0x60]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [eax + 4], 0
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0040c7a0
add eax, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
cmp dword [esi + 0x34], 0
jne 0x4068cb
push str.mapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0xc
mov dword [esi + 0x18], eax
call fcn.0041124e
add esp, 4
mov dword [ebp - 0x54], eax
xorps xmm0, xmm0
movq qword [eax], xmm0
push str.MAPIFreeBuffer
mov dword [eax + 8], 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIAllocateBuffer
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x54]
push str.MAPIInitialize
mov dword [ecx], vtable.MapiAllocator.0
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
push dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIUninitialize
push dword [esi + 0x18]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogonEx
push dword [esi + 0x18]
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPIAdminProfiles
push dword [esi + 0x18]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esi + 0x24]
mov dword [esi + 0x30], eax
test edi, edi
je 0x4068cb
cmp dword [esi + 0x28], 0
je 0x4068cb
cmp dword [esi + 0x2c], 0
je 0x4068cb
push 0
mov ecx, edi
call dword [0x414234]
call edi
mov dword [esi + 0x14], eax
test eax, eax
js 0x4068cb
mov dword [esi + 0x34], 1
mov ecx, esi
call fcn.00406d30
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
push eax
call fcn.0040fbc4
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00406f00
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x54], eax
cmp ecx, eax
je 0x406964
mov edi, dword [ebp - 0x1c]
mov eax, ecx
push dword [edi + 4]
push eax
call fcn.004044b0
mov edx, dword [ebp - 0x54]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x6c]
push dword [eax + 4]
lea eax, [ebp - 0x6c]
push eax
mov ecx, eax
call fcn.004044b0
push 0x40
push dword [ebp - 0x6c]
call fcn.0041127e
add esp, 8
jmp 0x406995
mov dword [ebp - 4], 1
call fcn.0040c7a0
lea ecx, [ebp - 0x20]
add eax, 0x2c
push ecx
push eax
push 1
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x4066f5
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x414234]
mov ecx, esi
call edi
test eax, eax
jne 0x4066f5
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], eax
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
push dword [esi + 0x14]
sub esp, 0x18
mov ecx, esp
push eax
push 0xffffffffffffffff
push 0x414a60
call fcn.0040f761
lea eax, [ebp - 0x38]
push eax
call fcn.004108fc
add esp, 0x20
lea ecx, [ebp - 0x8c]
push 0
push 0xffffffffffffffff
push str.error
call fcn.0040f761
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00403e20
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0040fbc4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
test eax, eax
je 0x406a74
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x7c]
add esp, 4
test eax, eax
je 0x406a74
push 2
push eax
call fcn.0041127e
add esp, 8
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x84], 0
test eax, eax
je 0x406aa6
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x84]
add esp, 4
test eax, eax
je 0x406aa6
push 1
push eax
call fcn.0041127e
add esp, 8
call fcn.0040c7a0
add eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push 0x40
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
call fcn.0041124e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x5c]
call fcn.004042b0
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 9
call fcn.0040c7a0
mov edi, eax
mov dword [ebp - 0x54], edi
lea eax, [edi + 0x20]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5c]
cmp eax, ecx
je 0x406b45
mov edi, dword [eax]
mov ecx, eax
push dword [edi + 4]
push eax
call fcn.004044b0
mov dword [edi + 4], edi
lea eax, [ebp - 0x5c]
mov dword [edi], edi
mov dword [edi + 8], edi
mov edi, dword [ebp - 0x54]
lea ecx, [edi + 0x20]
mov dword [ecx + 4], 0
push eax
call fcn.004042b0
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
lea eax, [ebp - 0x5c]
push eax
mov ecx, eax
call fcn.004044b0
push 0x40
push dword [ebp - 0x5c]
call fcn.0041127e
add esp, 8
call fcn.0040c7a0
add eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
test eax, eax
je 0x406bb5
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x28]
add esp, 4
test eax, eax
je 0x406bb5
push 2
push eax
call fcn.0041127e
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x4066f5
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x4066f5
push 1
push eax
call fcn.0041127e
add esp, 8
jmp 0x4066f5
mov ecx, esi
call fcn.00406c80
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.004044b0
push 0x40
push dword [ebp - 0x1c]
call fcn.0041127e
mov eax, dword [ebp - 0x40]
add esp, 8
mov dword [ebp - 0x40], 0
test eax, eax
je 0x406c39
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x40]
add esp, 4
test eax, eax
je 0x406c39
push 2
push eax
call fcn.0041127e
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], 0
test eax, eax
je 0x406c62
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x406c62
push 1
push eax
call fcn.0041127e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411240
mov esp, ebp
pop ebp
ret