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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100981cc
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x100cc5b0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x100cc5b0]
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.1005d3f0
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 0x10054a52
cmp dword [esp + 0x24], ebx
je 0x10054a52
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x10054a52
mov eax, 0x104
push eax
push str.BaiduComCfg
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.1006059e
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 0x100547b7
cmp eax, 0x80030050
jne 0x1005479c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005479c
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 0x100549d6
cmp word [esp + 0x9c], 0x5c
lea edi, [esp + 0x9c]
jne 0x100547d0
lea edi, [esp + 0x9e]
push edi
call fcn.1005d0d1
pop ecx
cmp eax, ebx
je 0x100547ea
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x100547ea
xor ecx, ecx
mov word [eax], cx
push 0x100afb00
push edi
call fcn.10063616
pop ecx
pop ecx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x1005480b
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x10054909
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 0x1005484c
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 0x100549d6
lea eax, [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.10029092
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, ebx
je 0x1005488f
cmp word [edi], bx
je 0x1005488f
push 0x100afb00
push edi
call fcn.10063616
pop ecx
pop ecx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x1005488b
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [esp + 0x20], eax
cmp edi, ebx
jne 0x1005480f
mov eax, dword [esp + 0x2c]
mov eax, dword [eax - 4]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x100549d6
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 0x100548dc
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 0x100549d6
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 0x1005492e
push eax
push str.___COMPOUDDOC___pStream__Stat_error__x_r_n
push 3
push 0x13a
jmp 0x100549c2
push str.___COMPOUDDOC___ERORR_pTemp_is_NULL
push 3
push 0x102
push str.SetStreamContext
push str.ConfigCompoundDocCompoundDoc.cpp
push 2
call fcn.1004a86e
add esp, 0x18
jmp 0x100549d6
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 0x100549d6
mov esi, dword [esp + 0x50]
mov dword [esi], ebx
cmp dword [esp + 0x38], ebx
je 0x1005499f
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 0x1005499f
push eax
push str.___COMPOUDDOC___pStream__Write_error__x_r_n
push 3
push 0x147
push str.SetStreamContext
push str.ConfigCompoundDocCompoundDoc.cpp
push 2
call fcn.1004a86e
mov dword [esp + 0x58], edi
jmp 0x100549d3
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 0x100549d6
push eax
push str.___COMPOUDDOC___pStream__SetSize_error__x_r_n
push 3
push 0x152
push str.SetStreamContext
push str.ConfigCompoundDocCompoundDoc.cpp
push 2
call fcn.1004a86e
add esp, 0x1c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100549e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x28]
jmp 0x10054a1f
mov eax, dword [esp + 0x2c]
mov eax, dword [eax - 4]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x10054a14
cmp esi, dword [esp + 0x2c]
je 0x10054a08
sub dword [esp + 0x2c], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
jmp 0x10054a1f
cmp esi, dword [esp + 0x2c]
je 0x10054a25
sub dword [esp + 0x2c], 4
cmp esi, dword [esp + 0x2c]
jne 0x100549ee
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10054a37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], ebx
je 0x10054a47
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x10054a52
push esi
call fcn.1005c756
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.1005c747
mov esp, ebp
pop ebp
ret 0x10