Function at 0x405f00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d34
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x417014]
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 - 0x58], 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.00410441
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 [0x413234]
mov ecx, esi
call edi
test eax, eax
jne 0x4063ff
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80
push eax
call fcn.0040b6f0
add eax, 0x28
push eax
push 1
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x406222
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x413234]
mov ecx, esi
call edi
test eax, eax
jne 0x406222
call fcn.0040b6f0
add eax, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040b6f0
mov edi, eax
lea ecx, [ebp - 0x50]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x54], edi
call fcn.0040ecf6
mov ecx, edi
call fcn.0040ee71
add edi, 0x18
lea ecx, [esi + 0x50]
push edi
call fcn.00403940
mov edi, dword [edi]
mov eax, dword [ebp - 0x54]
add eax, 0x18
mov ecx, eax
push dword [edi + 4]
push eax
call fcn.00403e30
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [edi + 0x1c], 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.0040b6f0
add eax, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
cmp dword [esi + 0x34], 0
jne 0x406151
push str.mapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0xc
mov dword [esi + 0x18], eax
call fcn.00410441
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 0x406151
cmp dword [esi + 0x28], 0
je 0x406151
cmp dword [esi + 0x2c], 0
je 0x406151
push 0
mov ecx, edi
call dword [0x413234]
call edi
mov dword [esi + 0x14], eax
test eax, eax
js 0x406151
mov dword [esi + 0x34], 1
mov ecx, esi
call fcn.00406550
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x88], 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.0040ecf6
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00406730
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x54], eax
cmp ecx, eax
je 0x4061ea
mov edi, dword [ebp - 0x1c]
mov eax, ecx
push dword [edi + 4]
push eax
call fcn.00403e30
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.00403e30
push 0x40
push dword [ebp - 0x6c]
call fcn.00410471
add esp, 8
jmp 0x40621b
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
call fcn.0040b6f0
add eax, 0x2c
push eax
push 1
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x405fa2
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x413234]
mov ecx, esi
call edi
test eax, eax
jne 0x405fa2
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 0x413ac0
call fcn.0040e81e
lea eax, [ebp - 0x38]
push eax
call fcn.0040faf7
add esp, 0x20
lea ecx, [ebp - 0x84]
push 0
push 0xffffffffffffffff
push str.error
call fcn.0040e81e
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00403800
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0040ecf6
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x74], 0
test eax, eax
je 0x4062fa
push eax
call fcn.004104a3
mov eax, dword [ebp - 0x74]
add esp, 4
test eax, eax
je 0x4062fa
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
test eax, eax
je 0x406323
push eax
call fcn.004104a3
mov eax, dword [ebp - 0x7c]
add esp, 4
test eax, eax
je 0x406323
push 1
push eax
call fcn.00410471
add esp, 8
call fcn.0040b6f0
add eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b8e0
mov byte [ebp - 4], 8
call fcn.0040b6f0
mov edi, eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 9
push eax
lea ecx, [edi + 0x20]
call fcn.00403940
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 - 0x64]
push dword [eax + 4]
lea eax, [ebp - 0x64]
push eax
mov ecx, eax
call fcn.00403e30
push 0x40
push dword [ebp - 0x64]
call fcn.00410471
add esp, 8
call fcn.0040b6f0
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 0x4063c9
push eax
call fcn.004104a3
mov eax, dword [ebp - 0x28]
add esp, 4
test eax, eax
je 0x4063c9
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x405fa2
push eax
call fcn.004104a3
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x405fa2
push 1
push eax
call fcn.00410471
add esp, 8
jmp 0x405fa2
mov ecx, esi
call fcn.004064a0
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.00403e30
push 0x40
push dword [ebp - 0x1c]
call fcn.00410471
mov eax, dword [ebp - 0x40]
add esp, 8
mov dword [ebp - 0x40], 0
test eax, eax
je 0x40644d
push eax
call fcn.004104a3
mov eax, dword [ebp - 0x40]
add esp, 4
test eax, eax
je 0x40644d
push 2
push eax
call fcn.00410471
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], 0
test eax, eax
je 0x406476
push eax
call fcn.004104a3
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x406476
push 1
push eax
call fcn.00410471
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.00410430
mov esp, ebp
pop ebp
ret