Function at 0x402210
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f45b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x42f068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 0x174], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x13c], eax
xor eax, eax
push 0x98
push eax
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x154], edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x150], 0x209ff
mov dword [ebp - 0x148], 0xc0
mov dword [ebp - 0x144], 0x46000000
mov dword [ebp - 0x108], 0x209ff
mov dword [ebp - 0x104], 0x4b300000
mov dword [ebp - 0x100], 0x14d277a9
mov dword [ebp - 0xfc], 0xff362085
mov dword [ebp - 0x138], 0x209ff
mov dword [ebp - 0x134], 0x4b300000
mov dword [ebp - 0x130], 0x14d277a9
mov dword [ebp - 0x12c], 0xfe362085
call fcn.00409c70
add esp, 4
lea ecx, [ebp - 0xf0]
call fcn.00402c00
lea eax, [ebp - 0x58]
mov dword [ebp - 4], edi
push eax
push str.Word.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jns 0x402339
mov edx, str.progID_not_found
lea ecx, [ebp - 0xf0]
call fcn.00405b80
jmp 0x4026f9
movups xmm0, xmmword [ebp - 0x150]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0xf4]
push eax
push 0x4201d0
push 4
push 0
lea eax, [ebp - 0x58]
push eax
movups xmmword [ebp - 0x58], xmm0
call esi
test eax, eax
jns 0x4023c3
movups xmm0, xmmword [ebp - 0x138]
lea eax, [ebp - 0xf4]
push eax
push 0x4201d0
push 4
push 0
lea eax, [ebp - 0x58]
push eax
movups xmmword [ebp - 0x58], xmm0
call esi
test eax, eax
jns 0x4023c3
movups xmm0, xmmword [ebp - 0x108]
lea eax, [ebp - 0xf4]
push eax
push 0x4201d0
push 4
push 0
lea eax, [ebp - 0x58]
push eax
movups xmmword [ebp - 0x58], xmm0
call esi
test eax, eax
jns 0x4023c3
mov edx, str.wps_clsid_not_found
lea ecx, [ebp - 0xf0]
call fcn.00405b80
jmp 0x4026f9
mov esi, dword [ebp - 0x174]
test esi, esi
je 0x4026f2
cmp dword [ebp - 0x13c], 0
je 0x4026f2
mov edx, esi
lea ecx, [ebp - 0xf0]
call fcn.00405b80
mov edx, 0x42c014
mov ecx, eax
call fcn.00405b80
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0xf0]
call fcn.00405b80
mov edx, 0x42c014
mov ecx, eax
call fcn.00405b80
mov eax, 8
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov word [ebp - 0x118], ax
call esi
push dword [ebp - 0x13c]
mov dword [ebp - 0x110], eax
mov eax, 8
mov word [ebp - 0x128], ax
call esi
mov dword [ebp - 0x120], eax
sub esp, 0x10
or eax, 0xffffffff
mov dword [ebp - 0x100], 0
mov word [ebp - 0x148], ax
mov esi, 3
xor eax, eax
mov word [ebp - 0x108], si
movups xmm0, xmmword [ebp - 0x108]
mov word [ebp - 0x160], ax
mov ecx, 0xb
mov eax, 0xa
mov word [ebp - 0x150], cx
mov word [ebp - 0x138], ax
mov eax, esp
push 1
push 0x42c018
push dword [ebp - 0xf4]
mov word [ebp - 0x168], cx
push 0
push 4
mov dword [ebp - 0x130], 0x80020004
movups xmmword [eax], xmm0
call fcn.004020f0
add esp, 0x14
mov word [ebp - 0x108], si
mov eax, esp
mov dword [ebp - 0x100], 0
movups xmm0, xmmword [ebp - 0x108]
push 1
push str.DisplayAlerts
push dword [ebp - 0xf4]
movups xmmword [eax], xmm0
push 0
push 4
call fcn.004020f0
add esp, 0x14
mov word [ebp - 0x108], si
mov eax, esp
mov dword [ebp - 0x100], 0
movups xmm0, xmmword [ebp - 0x108]
push 1
push str.ShowWindowsInTaskbar
push dword [ebp - 0xf4]
movups xmmword [eax], xmm0
push 0
push 4
call fcn.004020f0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x28]
add esp, 0x24
push eax
call esi
push 0
push str.AutomationSecurity
push dword [ebp - 0xf4]
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.004020f0
add esp, 4
mov eax, 3
mov word [ebp - 0x108], ax
mov dword [ebp - 0x100], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x108]
push 1
push str.AutomationSecurity
push dword [ebp - 0xf4]
movups xmmword [eax], xmm0
push 0
push 4
call fcn.004020f0
add esp, 0x24
lea eax, [ebp - 0x28]
push eax
call esi
push 0
push str.FileValidation
push dword [ebp - 0xf4]
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.004020f0
add esp, 4
mov dword [ebp - 0x100], 1
mov eax, 3
mov word [ebp - 0x108], ax
mov eax, esp
movups xmm0, xmmword [ebp - 0x108]
push 1
push str.FileValidation
push dword [ebp - 0xf4]
movups xmmword [eax], xmm0
push 0
push 4
call fcn.004020f0
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call esi
push 0
push str.Documents
push dword [ebp - 0xf4]
lea eax, [ebp - 0x108]
push eax
push 2
call fcn.004020f0
add esp, 0x14
test eax, eax
jns 0x402635
mov edx, str.Documents_collection_faild
push eax
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00405b80
add esp, 4
mov ecx, eax
call fcn.004035d0
jmp 0x4026f9
mov esi, dword [ebp - 0x100]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x154], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [ebp - 0x118]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x138]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x150]
push 3
push str.Open
movups xmmword [eax], xmm0
push esi
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.004020f0
add esp, 0x44
test eax, eax
jns 0x402699
mov edx, str.Documents.Open___faild
jmp 0x402619
movups xmm0, xmmword [ebp - 0x128]
mov edi, dword [ebp - 0x20]
sub esp, 0x10
mov eax, 3
mov dword [ebp - 0x130], 0xa
mov word [ebp - 0x138], ax
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x138]
push 2
push str.SaveAs
push edi
push 0
push 1
movups xmmword [eax], xmm0
call fcn.004020f0
add esp, 0x34
test eax, eax
jns 0x4026f2
mov edx, str.Documents.SaveAs___faild
jmp 0x402619
mov byte [ebp - 0x140], 1
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x128]
push eax
call esi
test edi, edi
je 0x40273e
movups xmm0, xmmword [ebp - 0x168]
sub esp, 0x10
mov eax, esp
push 1
push str.Close
push edi
push 0
push 1
movups xmmword [eax], xmm0
call fcn.004020f0
mov eax, dword [edi]
add esp, 0x24
push edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x154]
test ecx, ecx
je 0x40274e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x402782
push 0
push str.Quit
push eax
push 0
push 1
call fcn.004020f0
mov eax, dword [ebp - 0xf4]
add esp, 0x14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xf4], 0
push dword [ebp - 0x140]
mov edx, str._nreturn_code
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00405b80
add esp, 4
mov ecx, eax
call fcn.00403740
mov ecx, dword [ebp - 0xb0]
test cl, 2
jne 0x402828
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax]
test eax, eax
je 0x402828
mov ecx, dword [ebp - 0xb4]
cmp ecx, eax
cmovb ecx, eax
mov eax, dword [ebp - 0xdc]
xor edx, edx
mov eax, dword [eax]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], dx
call fcn.00404940
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x170], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x160], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.00402b40
jmp 0x4028d0
test cl, 4
jne 0x4028a4
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
test ecx, ecx
je 0x4028a4
mov eax, dword [ebp - 0xc0]
xor edx, edx
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], dx
call fcn.00404940
movups xmm0, xmmword [ebp - 0x48]
xor eax, eax
lea ecx, [ebp - 0x48]
mov word [ebp - 0x48], ax
movups xmmword [ebp - 0x170], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x160], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
call fcn.00402b40
jmp 0x4028d0
xor eax, eax
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
movups xmm0, xmmword [ebp - 0x48]
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x170], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x160], xmm0
cmp dword [ebp - 0x15c], 8
lea eax, [ebp - 0x170]
cmovae eax, dword [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x15c]
cmp eax, 8
jb 0x402944
mov ecx, dword [ebp - 0x170]
inc eax
cmp eax, 0x7fffffff
ja 0x402a00
add eax, eax
cmp eax, 0x1000
jb 0x40293b
test cl, 0x1f
jne 0x402a00
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x402a00
sub ecx, eax
cmp ecx, 4
jb 0x402a00
cmp ecx, 0x23
ja 0x402a00
mov ecx, eax
push ecx
call fcn.00407d1f
add esp, 4
xor eax, eax
mov dword [ebp - 0x160], 0
mov word [ebp - 0x170], ax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x15c], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xec]
call fcn.00403490
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xf4], ecx
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.004070d5
mov al, byte [ebp - 0x140]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407a96
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0040e21a
int3