Function at 0x40ed72
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47d7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x4ab3e0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x4ab3e0]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], 0x80004005
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
xor eax, eax
mov dword [esp + 0x2b8], ebx
push 0x206
mov word [esp + 0xa0], ax
lea eax, [esp + 0xa2]
push ebx
push eax
call fcn.00442320
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x48]
mov dword [esp + 0x44], ebx
stosd dword es:[edi], eax
mov dword [esp + 0x3c], ebx
cmp esi, ebx
je 0x40f111
cmp dword [esp + 0x24], ebx
je 0x40f111
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x40f111
mov eax, 0x104
push eax
push str.BaiduComCfg
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.0044a95d
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x12
push ebx
push esi
call dword [sym.imp.ole32.dll_StgOpenStorage]
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x40eeac
cmp eax, 0x80030050
jne 0x40ee91
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee91
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x12
push esi
call dword [sym.imp.ole32.dll_StgCreateDocfile]
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40f095
cmp word [esp + 0x9c], 0x5c
lea edi, [esp + 0x9c]
jne 0x40eec5
lea edi, [esp + 0x9e]
push edi
call fcn.0044aa2a
pop ecx
cmp eax, ebx
je 0x40eedf
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x40eedf
xor ecx, ecx
mov word [eax], cx
push 0x491b68
push edi
call fcn.00456c81
pop ecx
pop ecx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x40ef00
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x40eff7
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x12
push ebx
push edi
push esi
call dword [eax + 0x18]
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x40ef41
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x12
push edi
push esi
call dword [eax + 0x14]
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40f095
lea eax, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.0040f13b
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, ebx
je 0x40ef84
cmp word [edi], bx
je 0x40ef84
push 0x491b68
push edi
call fcn.00456c81
pop ecx
pop ecx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x40ef80
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [esp + 0x20], eax
cmp edi, ebx
jne 0x40ef04
mov eax, dword [esp + 0x2c]
mov eax, dword [eax - 4]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x40f095
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push 0x12
push ebx
push dword [esp + 0x34]
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x40efd1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 0x12
push dword [esp + 0x34]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40f095
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
xor edi, edi
inc edi
push edi
lea edx, [esp + 0x58]
push edx
push eax
call dword [ecx + 0x30]
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x40f00c
push eax
push str.___COMPOUDDOC___pStream__Stat_error__x_r_n
jmp 0x40f088
push str.___COMPOUDDOC___ERORR_pTemp_is_NULL
push 3
pop edx
push 2
pop esi
call fcn.0040d53c
jmp 0x40f094
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
push dword [esp + 0x50]
push dword [esp + 0x50]
push eax
call dword [ecx + 0x14]
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x40f095
mov esi, dword [esp + 0x50]
mov dword [esi], ebx
cmp dword [esp + 0x38], ebx
je 0x40f06c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
push dword [ebp + 0x14]
push dword [esp + 0x40]
push eax
call dword [ecx + 0x10]
mov dword [esp + 0x10], eax
mov eax, 0x80030109
cmp dword [esp + 0x10], eax
jne 0x40f06c
push eax
push str.___COMPOUDDOC___pStream__Write_error__x_r_n
push 3
pop edx
push 2
pop esi
call fcn.0040d53c
mov dword [esp + 0x44], edi
jmp 0x40f093
mov esi, dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0x18]
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x40f095
push eax
push str.___COMPOUDDOC___pStream__SetSize_error__x_r_n
push 3
pop edx
push 2
pop esi
call fcn.0040d53c
pop ecx
pop ecx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f0a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x28]
jmp 0x40f0de
mov eax, dword [esp + 0x2c]
mov eax, dword [eax - 4]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x40f0d3
cmp esi, dword [esp + 0x2c]
je 0x40f0c7
sub dword [esp + 0x2c], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
jmp 0x40f0de
cmp esi, dword [esp + 0x2c]
je 0x40f0e4
sub dword [esp + 0x2c], 4
cmp esi, dword [esp + 0x2c]
jne 0x40f0ad
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40f0f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], ebx
je 0x40f106
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x40f111
push esi
call fcn.00440eda
pop ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00440747
mov esp, ebp
pop ebp
ret 0x10