Function at 0x45fdc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539583
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0xd0], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 3
lea ecx, [ebp - 0x3c]
call fcn.0044f320
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
push 3
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00470670
lea edx, [ebp - 0xc4]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x134]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.OpenAs_...__s
call fcn.0047c040
add esp, 0x88
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0xc0]
cmp dword [ebp - 0xe4], ecx
je 0x45fe85
mov edx, dword [ebp - 0xe4]
push edx
call fcn.004f84cf
add esp, 4
call fcn.00460470
test eax, eax
jne 0x45fe9b
push str.DoHookCreateProcess_Error_
call fcn.0047c040
add esp, 4
push str.OFFICE_MULTIPROCESS_LOCK
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x30]
call fcn.0045d710
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
push 0
lea ecx, [ebp - 0x30]
call fcn.0045d900
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x45ff4b
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
push str.OpenAs_DoModal_return__2
lea eax, [ebp - 0x3c]
push eax
call fcn.00451560
add esp, 8
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
push edx
push str.OpenAs_COpenAsDialog_nRet1_d
call fcn.0047c040
add esp, 8
mov dword [ebp - 0xc8], 0xfffffffe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0045d830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0044f990
mov eax, dword [ebp - 0xc8]
jmp 0x46017e
cmp dword [ebp - 0x14], 1
je 0x45ffc8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
push str._r_nOpenAs_COpenAsDialog_is_not_IDOK_r_n
lea edx, [ebp - 0x3c]
push edx
call fcn.00451560
add esp, 8
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x14]
push ecx
push str.OpenAs_COpenAsDialog_nRet2_d
call fcn.0047c040
add esp, 8
mov dword [ebp - 0xcc], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0045d830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0044f990
mov eax, dword [ebp - 0xcc]
jmp 0x46017e
mov edx, dword [ebp - 0x14]
push edx
push str.OpenAs_COpenAsDialog_nRet3_d
call fcn.0047c040
add esp, 8
push str.OpenAs_COpenAsDialog_IDOK_1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
call fcn.0044f380
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0046f9b0
push 0
push str..dwg
lea ecx, [ebp - 0x38]
call fcn.0046f880
cmp eax, 0xffffffff
jne 0x46003b
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46003b
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
push str.OpenAs_COpenAsDialog_IDOK_2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x460061
mov dword [ebp - 0x138], 0
jmp 0x46011f
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x460089
mov dword [ebp - 0x13c], 0
jmp 0x460113
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x124], esp
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x124], 0
je 0x4600b4
cmp dword [ebp - 0x18], 0
jne 0x4600c0
mov dword [ebp - 0x13c], 0
jmp 0x460113
mov ecx, dword [ebp - 0x124]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x124]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x460107
mov dword [ebp - 0x13c], 0
jmp 0x460113
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
push edx
push str.DoHookCreateProcess___s
call fcn.0047c040
add esp, 8
push 0x400
push 0
push 0x599eb0
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0045d830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0044f990
mov eax, dword [ebp - 0xd4]
lea esp, [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0xd0]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret