Function at 0x4147b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x417b56
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], 0x80004005
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x2c0], esi
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
push 0x206
lea ecx, [esp + 0xaa]
push esi
mov byte [esp + 0x2c8], 1
push ecx
mov word [esp + 0xb0], si
call sub.MSVCR80.dll_memset
add esp, 0xc
test ebx, ebx
je 0x414a5a
cmp dword [esp + 0x38], edi
je 0x414a5a
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x414a5a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x414a5a
push 0x104
push eax
lea edx, [esp + 0xac]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x10]
mov edx, ebx
call fcn.00414730
add esp, 0x14
test eax, eax
mov dword [esp + 0x14], eax
jl 0x414a3a
mov edi, 0x5c
cmp word [esp + 0xa4], di
lea esi, [esp + 0xa4]
jne 0x4148e8
lea esi, [esp + 0xa6]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4148f0
sub eax, edx
sar eax, 1
je 0x41490d
cmp word [esi + eax*2 - 2], di
jne 0x41490d
mov word [esi + eax*2 - 2], cx
push 0x419e10
push esi
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x41492a
mov word [edi], 0
add edi, 2
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x414a3a
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x10
push 0
push esi
push ebx
call eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x414a3a
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x20]
call fcn.00415270
test edi, edi
mov ebx, dword [esp + 0x1c]
je 0x414996
cmp word [edi], 0
je 0x414996
push 0x419e10
push edi
mov esi, edi
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x414992
mov word [edi], 0
add edi, 2
test esi, esi
jne 0x41492e
lea eax, [esp + 0x20]
call fcn.00415220
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x414a3a
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x3c]
push 0
push 0x10
push 0
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x414a3a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x414a3a
mov eax, dword [esp + 0x64]
mov esi, dword [ebp + 0x10]
cmp eax, esi
jbe 0x414a03
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], 0x80028016
mov dword [ecx], eax
jmp 0x414a3a
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push 0
push 0
xor ecx, ecx
push ecx
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x414a3a
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x38]
push esi
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414a52
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
test edi, edi
je 0x414b12
mov eax, esi
sub eax, edi
sar eax, 2
je 0x414b12
cmp edi, esi
mov ebx, esi
jbe 0x414a83
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], eax
lea eax, [ebx - 4]
cmp eax, esi
mov dword [esp + 0x44], ebx
ja 0x414a9a
cmp eax, edi
jae 0x414aa8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
add ebx, 0xfffffffc
cmp ebx, dword [ecx + 8]
jb 0x414ac2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x414af5
test edi, edi
je 0x414ae0
mov edx, esi
sub edx, edi
sar edx, 2
je 0x414ae0
sub esi, 4
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0
jmp 0x414a52
test edi, edi
je 0x414b12
mov eax, esi
sub eax, edi
sar eax, 2
je 0x414a5a
sub esi, 4
mov dword [esp + 0x28], esi
jmp 0x414a5a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x414b2e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x24]
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x14]
cmp esi, 0x80030109
jne 0x414b47
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x414b4b
test esi, esi
jge 0x414b8c
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x414b88
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x414b88
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
push esi
push ecx
push edx
push eax
push 0x41d700
push 0xe
push str..CompoundDoc.cpp
call fcn.0040a920
add esp, 0x1c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x414b99
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.004158da
mov esp, ebp
pop ebp
ret 0x10