Function at 0x46d780
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a284
mov eax, dword fs:[0]
push eax
mov eax, 0x11e4
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1188], ecx
push str.ShellOpenDoc_Start_
call fcn.0047c040
add esp, 4
mov eax, dword [ebp - 0x1188]
mov dword [0x59a0e0], eax
push 0x402
push 0
push 0x59a0e8
call fcn.004f8090
add esp, 0xc
push 0x200
mov ecx, dword [ebp + 8]
push ecx
push 0x59a0e8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x59a0e8
call fcn.004fbb4e
add esp, 4
push 0x200
mov edx, dword [ebp + 8]
push edx
push 0x599eb0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x400
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004f8090
add esp, 0xc
xor edx, edx
mov word [ebp - 0xc44], dx
push 0x400
push 0
lea eax, [ebp - 0xc42]
push eax
call fcn.004f8090
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1080], esp
mov edx, dword [ebp + 8]
push edx
call fcn.0044f380
mov dword [ebp - 0x118c], eax
lea ecx, [ebp - 0x20]
call fcn.00471c20
mov dword [ebp - 0x1190], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x838], 0
xor eax, eax
mov word [ebp - 0xe54], ax
push 0x200
push 0
lea ecx, [ebp - 0xe52]
push ecx
call fcn.004f8090
add esp, 0xc
push 0x100
lea edx, [ebp - 0xe54]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004fad12
add esp, 0x24
mov ecx, dword [ebp - 0x1188]
movzx edx, byte [ecx + 0xacb]
cmp edx, 1
jne 0x46d920
push 0x5498ac
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46d916
push 0x5498a0
lea ecx, [ebp - 0xe54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46d920
mov dword [ebp - 0x838], 1
mov edx, dword [ebp - 0x1188]
movzx eax, byte [edx + 0xacb]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
push str.ShellOpenDoc_bDocSpecified:_d_m_ODMFileHeader.Authority.ExtVersion:_d
call fcn.0047c040
add esp, 0xc
xor edx, edx
mov word [ebp - 0x82c], dx
push 0x3fe
push 0
lea eax, [ebp - 0x82a]
push eax
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0xc48], 3
mov ecx, dword [ebp - 0x1188]
movzx edx, byte [ecx + 0x956]
test edx, edx
je 0x46de05
cmp dword [ebp - 0x838], 0
jne 0x46de05
push 0x5498a0
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46d9d3
push 0x54984c
lea ecx, [ebp - 0xe54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46d9d3
push str..pptx
lea edx, [ebp - 0xe54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46dc18
lea eax, [ebp - 0xe54]
push eax
mov ecx, dword [ebp - 0x1188]
call fcn.0046cca0
test eax, eax
je 0x46dc13
lea ecx, [ebp - 0xc44]
mov dword [ebp - 0x834], ecx
cmp dword [ebp - 0x834], 0
jne 0x46da11
mov dword [ebp - 0x1194], 0
jmp 0x46dadb
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46da3c
mov dword [ebp - 0x1198], 0
jmp 0x46dacf
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x10c4], esp
mov eax, dword [ebp - 0x10c8]
mov dword [ebp - 0x1198], eax
cmp dword [ebp - 0x10c4], 0
je 0x46da6a
cmp dword [ebp - 0x834], 0
jne 0x46da76
mov dword [ebp - 0x1198], 0
jmp 0x46dacf
mov ecx, dword [ebp - 0x10c4]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x10c4]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x834]
push ecx
push 0
mov edx, dword [ebp - 0xc48]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10c0], eax
cmp dword [ebp - 0x10c0], 0
jne 0x46dac3
mov dword [ebp - 0x1198], 0
jmp 0x46dacf
mov eax, dword [ebp - 0x10c4]
mov dword [ebp - 0x1198], eax
mov ecx, dword [ebp - 0x1198]
mov dword [ebp - 0x1194], ecx
mov edx, dword [ebp - 0x1194]
push edx
push str.IsCanInject_SvcHost_:_s
call fcn.0047c040
add esp, 8
push 0x548b6c
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, dword [ebp - 0x1188]
call fcn.00461b10
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11d8], 0
je 0x46db35
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11d8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11e0], 0
je 0x46dbb1
push 0x2710
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11d8], 0
je 0x46db8e
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11d8], 0
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11e0], 0
mov eax, dword [ebp - 0x1188]
cmp dword [eax + 0x11d8], 0
jne 0x46dbda
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11d8], eax
push 0
push 4
mov edx, dword [ebp - 0x1188]
push edx
push 0x461a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11e0], eax
mov edx, dword [ebp - 0x1188]
mov eax, dword [edx + 0x11e0]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x46dd3f
push str..dwg
lea ecx, [ebp - 0xe54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46dd3f
call fcn.0047bee0
test eax, eax
je 0x46dd3f
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11d8], 0
je 0x46dc61
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11d8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11e0], 0
je 0x46dcdd
push 0x2710
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11d8], 0
je 0x46dcba
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11d8], 0
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11e0], 0
mov eax, dword [ebp - 0x1188]
cmp dword [eax + 0x11d8], 0
jne 0x46dd06
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11d8], eax
push 0
push 4
mov edx, dword [ebp - 0x1188]
push edx
push 0x461a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11e0], eax
mov edx, dword [ebp - 0x1188]
mov eax, dword [edx + 0x11e0]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [ebp - 0xe60]
call fcn.0044f320
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
push 0
call fcn.0045fdc0
add esp, 8
mov dword [ebp - 0xe5c], eax
cmp dword [ebp - 0xe5c], 0xfffffffe
je 0x46ddce
mov edx, dword [ebp - 0xe5c]
push edx
push str.dzh_after_Openas_nRet1_d
lea eax, [ebp - 0xe60]
push eax
call fcn.00451560
add esp, 0xc
mov ecx, dword [ebp - 0xe60]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
cmp dword [ebp - 0xe5c], 0
sete dl
mov dword [ebp - 0x1084], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe60]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00471e70
mov eax, dword [ebp - 0x1084]
jmp 0x46ed74
mov eax, dword [ebp - 0xe5c]
push eax
push str.dzh_after_Openas_nRet2_d
lea ecx, [ebp - 0xe60]
push ecx
call fcn.00451560
add esp, 0xc
mov edx, dword [ebp - 0xe60]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe60]
call fcn.0044f990
mov eax, dword [ebp + 8]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x46de26
mov dword [ebp - 0x119c], 0
jmp 0x46def0
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46de51
mov dword [ebp - 0x11a0], 0
jmp 0x46dee4
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x10e4], esp
mov edx, dword [ebp - 0x10e8]
mov dword [ebp - 0x11a0], edx
cmp dword [ebp - 0x10e4], 0
je 0x46de7f
cmp dword [ebp - 0x834], 0
jne 0x46de8b
mov dword [ebp - 0x11a0], 0
jmp 0x46dee4
mov eax, dword [ebp - 0x10e4]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x10e4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x834]
push eax
push 0
mov ecx, dword [ebp - 0xc48]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10e0], eax
cmp dword [ebp - 0x10e0], 0
jne 0x46ded8
mov dword [ebp - 0x11a0], 0
jmp 0x46dee4
mov edx, dword [ebp - 0x10e4]
mov dword [ebp - 0x11a0], edx
mov eax, dword [ebp - 0x11a0]
mov dword [ebp - 0x119c], eax
mov ecx, dword [ebp - 0x119c]
push ecx
push str.ShellOpenDoc:_pszFileName_s
call fcn.0047c040
add esp, 8
lea edx, [ebp - 0x830]
push edx
push 0
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0xc44]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00474970
test eax, eax
jne 0x46e51a
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x834], edx
cmp dword [ebp - 0x834], 0
jne 0x46df4f
mov dword [ebp - 0x11a4], 0
jmp 0x46e019
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46df7a
mov dword [ebp - 0x11a8], 0
jmp 0x46e00d
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x10f0], esp
mov ecx, dword [ebp - 0x10f4]
mov dword [ebp - 0x11a8], ecx
cmp dword [ebp - 0x10f0], 0
je 0x46dfa8
cmp dword [ebp - 0x834], 0
jne 0x46dfb4
mov dword [ebp - 0x11a8], 0
jmp 0x46e00d
mov edx, dword [ebp - 0x10f0]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x10f0]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x834]
push edx
push 0
mov eax, dword [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10ec], eax
cmp dword [ebp - 0x10ec], 0
jne 0x46e001
mov dword [ebp - 0x11a8], 0
jmp 0x46e00d
mov ecx, dword [ebp - 0x10f0]
mov dword [ebp - 0x11a8], ecx
mov edx, dword [ebp - 0x11a8]
mov dword [ebp - 0x11a4], edx
mov eax, dword [ebp - 0x11a4]
push eax
push str.ShellOpenDoc:_GetOpenAppFileEx_szCmdLine_s
call fcn.0047c040
add esp, 8
cmp dword [ebp - 0x838], 0
jne 0x46e41b
push 0x5498a0
lea ecx, [ebp - 0xe54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46e080
push 0x54984c
lea edx, [ebp - 0xe54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46e080
push str..pptx
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46e2c5
lea ecx, [ebp - 0xe54]
push ecx
mov ecx, dword [ebp - 0x1188]
call fcn.0046cca0
test eax, eax
je 0x46e2c5
lea edx, [ebp - 0xc44]
mov dword [ebp - 0x834], edx
cmp dword [ebp - 0x834], 0
jne 0x46e0be
mov dword [ebp - 0x11ac], 0
jmp 0x46e188
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46e0e9
mov dword [ebp - 0x11b0], 0
jmp 0x46e17c
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x10fc], esp
mov ecx, dword [ebp - 0x1100]
mov dword [ebp - 0x11b0], ecx
cmp dword [ebp - 0x10fc], 0
je 0x46e117
cmp dword [ebp - 0x834], 0
jne 0x46e123
mov dword [ebp - 0x11b0], 0
jmp 0x46e17c
mov edx, dword [ebp - 0x10fc]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x10fc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x834]
push edx
push 0
mov eax, dword [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10f8], eax
cmp dword [ebp - 0x10f8], 0
jne 0x46e170
mov dword [ebp - 0x11b0], 0
jmp 0x46e17c
mov ecx, dword [ebp - 0x10fc]
mov dword [ebp - 0x11b0], ecx
mov edx, dword [ebp - 0x11b0]
mov dword [ebp - 0x11ac], edx
mov eax, dword [ebp - 0x11ac]
push eax
push str.GetOpenAppFileEx_IsCanInject_SvcHost_:_s
call fcn.0047c040
add esp, 8
push 0x548b6c
lea ecx, [ebp - 0x82c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x82c]
push edx
mov ecx, dword [ebp - 0x1188]
call fcn.00461b10
mov eax, dword [ebp - 0x1188]
cmp dword [eax + 0x11d8], 0
je 0x46e1e2
mov ecx, dword [ebp - 0x1188]
mov edx, dword [ecx + 0x11d8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x1188]
cmp dword [eax + 0x11e0], 0
je 0x46e25e
push 0x2710
mov ecx, dword [ebp - 0x1188]
mov edx, dword [ecx + 0x11e0]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1188]
cmp dword [eax + 0x11d8], 0
je 0x46e23b
mov ecx, dword [ebp - 0x1188]
mov edx, dword [ecx + 0x11d8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1188]
mov dword [eax + 0x11d8], 0
mov ecx, dword [ebp - 0x1188]
mov edx, dword [ecx + 0x11e0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1188]
mov dword [eax + 0x11e0], 0
mov ecx, dword [ebp - 0x1188]
cmp dword [ecx + 0x11d8], 0
jne 0x46e287
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11d8], eax
push 0
push 4
mov eax, dword [ebp - 0x1188]
push eax
push 0x461a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11e0], eax
mov edx, dword [ebp - 0x1188]
mov eax, dword [edx + 0x11e0]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x46e3ec
push str..dwg
lea ecx, [ebp - 0xe54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46e3ec
call fcn.0047bee0
test eax, eax
je 0x46e3ec
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11d8], 0
je 0x46e30e
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11d8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11e0], 0
je 0x46e38a
push 0x2710
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x1188]
cmp dword [edx + 0x11d8], 0
je 0x46e367
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11d8], 0
mov eax, dword [ebp - 0x1188]
mov ecx, dword [eax + 0x11e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1188]
mov dword [edx + 0x11e0], 0
mov eax, dword [ebp - 0x1188]
cmp dword [eax + 0x11d8], 0
jne 0x46e3b3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11d8], eax
push 0
push 4
mov edx, dword [ebp - 0x1188]
push edx
push 0x461a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1188]
mov dword [ecx + 0x11e0], eax
mov edx, dword [ebp - 0x1188]
mov eax, dword [edx + 0x11e0]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [ebp - 0xe74]
call fcn.0045d710
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
push 0
lea ecx, [ebp - 0xe74]
call fcn.0045d900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe74]
call fcn.0045d830
mov edx, dword [ebp + 8]
mov dword [ebp - 0x834], edx
cmp dword [ebp - 0x834], 0
jne 0x46e43c
mov dword [ebp - 0x11b4], 0
jmp 0x46e506
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46e467
mov dword [ebp - 0x11b8], 0
jmp 0x46e4fa
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x1108], esp
mov ecx, dword [ebp - 0x110c]
mov dword [ebp - 0x11b8], ecx
cmp dword [ebp - 0x1108], 0
je 0x46e495
cmp dword [ebp - 0x834], 0
jne 0x46e4a1
mov dword [ebp - 0x11b8], 0
jmp 0x46e4fa
mov edx, dword [ebp - 0x1108]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1108]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x834]
push edx
push 0
mov eax, dword [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1104], eax
cmp dword [ebp - 0x1104], 0
jne 0x46e4ee
mov dword [ebp - 0x11b8], 0
jmp 0x46e4fa
mov ecx, dword [ebp - 0x1108]
mov dword [ebp - 0x11b8], ecx
mov edx, dword [ebp - 0x11b8]
mov dword [ebp - 0x11b4], edx
mov eax, dword [ebp - 0x11b4]
push eax
push str.ShellOpenDoc:_OpenAs_pszFileName_s
call fcn.0047c040
add esp, 8
cmp dword [ebp - 0x838], 0
je 0x46e649
lea ecx, [ebp - 0xc44]
test ecx, ecx
je 0x46e649
xor edx, edx
mov word [ebp - 0x107c], dx
push 0x200
push 0
lea eax, [ebp - 0x107a]
push eax
call fcn.004f8090
add esp, 0xc
push 0
push 0
push 0x100
lea ecx, [ebp - 0x107c]
push ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc44]
push edx
call fcn.004fad12
add esp, 0x24
push str.winword
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46e649
push 1
lea ecx, [ebp - 0x1088]
push ecx
mov ecx, 0x59a55c
call fcn.00494360
mov dword [ebp - 0x11bc], eax
mov edx, dword [ebp - 0x11bc]
mov dword [ebp - 0x1110], edx
mov byte [ebp - 4], 3
push 0x37
lea eax, [ebp - 0x108c]
push eax
mov ecx, 0x59a55c
call fcn.00494360
mov dword [ebp - 0x1118], eax
mov ecx, dword [ebp - 0x1110]
mov edx, dword [ecx]
mov dword [ebp - 0x1114], edx
mov eax, dword [ebp - 0x1118]
mov ecx, dword [eax]
mov dword [ebp - 0x111c], ecx
push 0x10
mov edx, dword [ebp - 0x1114]
push edx
mov eax, dword [ebp - 0x111c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x108c]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1088]
call fcn.0044f990
mov dword [ebp - 0x1090], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00471e70
mov eax, dword [ebp - 0x1090]
jmp 0x46ed74
lea ecx, [ebp - 0xc44]
push ecx
mov ecx, dword [ebp - 0x1188]
call fcn.00460c10
test eax, eax
jne 0x46e72b
push 1
lea edx, [ebp - 0x1094]
push edx
mov ecx, 0x59a55c
call fcn.00494360
mov dword [ebp - 0x11c0], eax
mov eax, dword [ebp - 0x11c0]
mov dword [ebp - 0x1128], eax
mov byte [ebp - 4], 4
push 0x32
lea ecx, [ebp - 0x1098]
push ecx
mov ecx, 0x59a55c
call fcn.00494360
mov dword [ebp - 0x1130], eax
mov edx, dword [ebp - 0x1128]
mov eax, dword [edx]
mov dword [ebp - 0x112c], eax
mov ecx, dword [ebp - 0x1130]
mov edx, dword [ecx]
mov dword [ebp - 0x1134], edx
push 0x10
mov eax, dword [ebp - 0x112c]
push eax
mov ecx, dword [ebp - 0x1134]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1098]
call fcn.0044f990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1094]
call fcn.0044f990
lea edx, [ebp - 0xc44]
push edx
push 0x5496fc
call fcn.0047c040
add esp, 8
mov dword [ebp - 0x109c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00471e70
mov eax, dword [ebp - 0x109c]
jmp 0x46ed74
mov eax, dword [ebp + 8]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x46e74c
mov dword [ebp - 0x11c4], 0
jmp 0x46e816
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46e777
mov dword [ebp - 0x11c8], 0
jmp 0x46e80a
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x1144], esp
mov edx, dword [ebp - 0x1148]
mov dword [ebp - 0x11c8], edx
cmp dword [ebp - 0x1144], 0
je 0x46e7a5
cmp dword [ebp - 0x834], 0
jne 0x46e7b1
mov dword [ebp - 0x11c8], 0
jmp 0x46e80a
mov eax, dword [ebp - 0x1144]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1144]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x834]
push eax
push 0
mov ecx, dword [ebp - 0xc48]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1140], eax
cmp dword [ebp - 0x1140], 0
jne 0x46e7fe
mov dword [ebp - 0x11c8], 0
jmp 0x46e80a
mov edx, dword [ebp - 0x1144]
mov dword [ebp - 0x11c8], edx
mov eax, dword [ebp - 0x11c8]
mov dword [ebp - 0x11c4], eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x834], ecx
cmp dword [ebp - 0x834], 0
jne 0x46e83a
mov dword [ebp - 0x11cc], 0
jmp 0x46e904
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46e865
mov dword [ebp - 0x11d0], 0
jmp 0x46e8f8
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x1150], esp
mov eax, dword [ebp - 0x1154]
mov dword [ebp - 0x11d0], eax
cmp dword [ebp - 0x1150], 0
je 0x46e893
cmp dword [ebp - 0x834], 0
jne 0x46e89f
mov dword [ebp - 0x11d0], 0
jmp 0x46e8f8
mov ecx, dword [ebp - 0x1150]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1150]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x834]
push ecx
push 0
mov edx, dword [ebp - 0xc48]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0
jne 0x46e8ec
mov dword [ebp - 0x11d0], 0
jmp 0x46e8f8
mov eax, dword [ebp - 0x1150]
mov dword [ebp - 0x11d0], eax
mov ecx, dword [ebp - 0x11d0]
mov dword [ebp - 0x11cc], ecx
lea edx, [ebp - 0xc44]
mov dword [ebp - 0x834], edx
cmp dword [ebp - 0x834], 0
jne 0x46e928
mov dword [ebp - 0x11d4], 0
jmp 0x46e9f2
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46e953
mov dword [ebp - 0x11d8], 0
jmp 0x46e9e6
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x115c], esp
mov ecx, dword [ebp - 0x1160]
mov dword [ebp - 0x11d8], ecx
cmp dword [ebp - 0x115c], 0
je 0x46e981
cmp dword [ebp - 0x834], 0
jne 0x46e98d
mov dword [ebp - 0x11d8], 0
jmp 0x46e9e6
mov edx, dword [ebp - 0x115c]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x115c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x834]
push edx
push 0
mov eax, dword [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1158], eax
cmp dword [ebp - 0x1158], 0
jne 0x46e9da
mov dword [ebp - 0x11d8], 0
jmp 0x46e9e6
mov ecx, dword [ebp - 0x115c]
mov dword [ebp - 0x11d8], ecx
mov edx, dword [ebp - 0x11d8]
mov dword [ebp - 0x11d4], edx
mov eax, dword [ebp - 0x11c4]
push eax
mov ecx, dword [ebp - 0x11cc]
push ecx
mov edx, dword [ebp - 0x11d4]
push edx
push str.ShellOpenDoc:_before_OpenDoc_szDocProcess__s_szCmdLine_s_pszFileName:_s
call fcn.0047c040
add esp, 0x10
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0xc44]
push eax
mov ecx, dword [ebp - 0x1188]
call fcn.00461d30
test eax, eax
je 0x46ea5f
mov dword [ebp - 0x10a0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00471e70
mov eax, dword [ebp - 0x10a0]
jmp 0x46ed74
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x834], ecx
cmp dword [ebp - 0x834], 0
jne 0x46ea80
mov dword [ebp - 0x11dc], 0
jmp 0x46eb4a
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46eaab
mov dword [ebp - 0x11e0], 0
jmp 0x46eb3e
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x1168], esp
mov eax, dword [ebp - 0x116c]
mov dword [ebp - 0x11e0], eax
cmp dword [ebp - 0x1168], 0
je 0x46ead9
cmp dword [ebp - 0x834], 0
jne 0x46eae5
mov dword [ebp - 0x11e0], 0
jmp 0x46eb3e
mov ecx, dword [ebp - 0x1168]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1168]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x834]
push ecx
push 0
mov edx, dword [ebp - 0xc48]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1164], eax
cmp dword [ebp - 0x1164], 0
jne 0x46eb32
mov dword [ebp - 0x11e0], 0
jmp 0x46eb3e
mov eax, dword [ebp - 0x1168]
mov dword [ebp - 0x11e0], eax
mov ecx, dword [ebp - 0x11e0]
mov dword [ebp - 0x11dc], ecx
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x834], edx
cmp dword [ebp - 0x834], 0
jne 0x46eb6e
mov dword [ebp - 0x11e4], 0
jmp 0x46ec38
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46eb99
mov dword [ebp - 0x11e8], 0
jmp 0x46ec2c
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x1174], esp
mov ecx, dword [ebp - 0x1178]
mov dword [ebp - 0x11e8], ecx
cmp dword [ebp - 0x1174], 0
je 0x46ebc7
cmp dword [ebp - 0x834], 0
jne 0x46ebd3
mov dword [ebp - 0x11e8], 0
jmp 0x46ec2c
mov edx, dword [ebp - 0x1174]
mov byte [edx], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1174]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x834]
push edx
push 0
mov eax, dword [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1170], eax
cmp dword [ebp - 0x1170], 0
jne 0x46ec20
mov dword [ebp - 0x11e8], 0
jmp 0x46ec2c
mov ecx, dword [ebp - 0x1174]
mov dword [ebp - 0x11e8], ecx
mov edx, dword [ebp - 0x11e8]
mov dword [ebp - 0x11e4], edx
lea eax, [ebp - 0xc44]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x46ec5c
mov dword [ebp - 0x11ec], 0
jmp 0x46ed26
mov ecx, dword [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x46ec87
mov dword [ebp - 0x11f0], 0
jmp 0x46ed1a
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.004f86f0
mov dword [ebp - 0x1180], esp
mov edx, dword [ebp - 0x1184]
mov dword [ebp - 0x11f0], edx
cmp dword [ebp - 0x1180], 0
je 0x46ecb5
cmp dword [ebp - 0x834], 0
jne 0x46ecc1
mov dword [ebp - 0x11f0], 0
jmp 0x46ed1a
mov eax, dword [ebp - 0x1180]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1180]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x834]
push eax
push 0
mov ecx, dword [ebp - 0xc48]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x117c], eax
cmp dword [ebp - 0x117c], 0
jne 0x46ed0e
mov dword [ebp - 0x11f0], 0
jmp 0x46ed1a
mov edx, dword [ebp - 0x1180]
mov dword [ebp - 0x11f0], edx
mov eax, dword [ebp - 0x11f0]
mov dword [ebp - 0x11ec], eax
mov ecx, dword [ebp - 0x11dc]
push ecx
mov edx, dword [ebp - 0x11e4]
push edx
mov eax, dword [ebp - 0x11ec]
push eax
push str.ShellOpenDoc:_after_OpenDoc_szDocProcess__s_szCmdLine_s_pszFileName:_s
call fcn.0047c040
add esp, 0x10
push str.ShellOpenDoc_Finish_
call fcn.0047c040
add esp, 4
mov dword [ebp - 0x10a4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00471e70
mov eax, dword [ebp - 0x10a4]
lea esp, [ebp - 0x11f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 8