Function at 0x406620
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412756
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x419014]
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 main
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 0x406bc1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80
push eax
call main
add eax, 0x28
push eax
push 1
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x40696c
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x414234]
mov ecx, esi
call edi
test eax, eax
jne 0x40696c
call main
add eax, 0x38
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
call main
mov edi, eax
lea ecx, [ebp - 0x50]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x54], edi
call main
mov ecx, edi
call fcn.0040f781
lea ecx, [edi + 0x18]
lea eax, [esi + 0x50]
mov dword [ebp - 0x60], ecx
cmp eax, ecx
je 0x406785
mov edi, dword [eax]
mov ecx, eax
push dword [edi + 4]
push eax
call main
push dword [ebp - 0x54]
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 main
mov ecx, dword [ebp - 0x60]
mov edi, dword [ecx]
push dword [edi + 4]
push ecx
call main
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 main
add eax, 0x38
push eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
cmp dword [esi + 0x34], 0
jne 0x40689e
push str.mapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0xc
mov dword [esi + 0x18], eax
call main
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 0x40689e
cmp dword [esi + 0x28], 0
je 0x40689e
cmp dword [esi + 0x2c], 0
je 0x40689e
push 0
mov ecx, edi
call dword [0x414234]
call edi
mov dword [esi + 0x14], eax
test eax, eax
js 0x40689e
mov dword [esi + 0x34], 1
mov ecx, esi
call main
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], 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 main
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call main
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x54], eax
cmp ecx, eax
je 0x406934
mov edi, dword [ebp - 0x1c]
mov eax, ecx
push dword [edi + 4]
push eax
call main
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 - 0x70]
push dword [eax + 4]
lea eax, [ebp - 0x70]
push eax
mov ecx, eax
call main
push 0x40
push dword [ebp - 0x70]
call main
add esp, 8
jmp 0x406965
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
call main
add eax, 0x2c
push eax
push 1
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x4066c5
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x414234]
mov ecx, esi
call edi
test eax, eax
jne 0x4066c5
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 0x414ae0
call fcn.0040f12e
lea eax, [ebp - 0x38]
push eax
call fcn.00410407
add esp, 0x20
lea ecx, [ebp - 0x90]
push 0
push 0xffffffffffffffff
push str.error
call fcn.0040f12e
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call main
push 0xffffffffffffffff
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call main
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], 0
test eax, eax
je 0x406a44
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x80]
add esp, 4
test eax, eax
je 0x406a44
push 2
push eax
call main
add esp, 8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x88], 0
test eax, eax
je 0x406a76
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x88]
add esp, 4
test eax, eax
je 0x406a76
push 1
push eax
call main
add esp, 8
call main
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 - 0x78], eax
mov dword [ebp - 0x74], eax
call main
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
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x5c]
push eax
call main
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 9
call main
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 0x406b1b
mov edi, dword [eax]
mov ecx, eax
push dword [edi + 4]
push eax
call main
push dword [ebp - 0x68]
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 main
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 main
push 0x40
push dword [ebp - 0x5c]
call main
add esp, 8
call main
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 0x406b8b
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x28]
add esp, 4
test eax, eax
je 0x406b8b
push 2
push eax
call main
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x4066c5
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x4066c5
push 1
push eax
call main
add esp, 8
jmp 0x4066c5
mov ecx, esi
call fcn.00406c60
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call main
push 0x40
push dword [ebp - 0x1c]
call main
mov eax, dword [ebp - 0x40]
add esp, 8
mov dword [ebp - 0x40], 0
test eax, eax
je 0x406c0f
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x40]
add esp, 4
test eax, eax
je 0x406c0f
push 2
push eax
call main
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], 0
test eax, eax
je 0x406c38
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x406c38
push 1
push eax
call main
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.00410d40
mov esp, ebp
pop ebp
ret