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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd747
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5503c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x180], esi
push 6
push dword [esi + 0x524]
lea ecx, [esi + 0x2c]
call sym.Office2.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::KillTimer_class_DuiLib::CControlUI___unsigned_int_
mov ecx, dword [esi + 0x52c]
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call sym.Office2.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x15c], xmm0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410510
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00406a80
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call sym.Office2.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x148], 8
lea eax, [ebp - 0x15c]
cmovae eax, dword [ebp - 0x15c]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.004018a0
add esp, 8
cmp dword [esi + 0x550], 0x10
lea eax, [esi + 0x53c]
mov byte [ebp - 4], 3
jb 0x410578
mov eax, dword [esi + 0x53c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edx, eax
mov dword [ebp - 0x134], 0
mov ecx, edx
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x144], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4105a4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.00404160
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
cmovae eax, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x178], eax
lea edi, [ebp - 0x144]
mov eax, dword [ebp - 0x134]
cmovae ecx, edx
add eax, ecx
cmp dword [ebp - 0x130], 0x10
mov dword [ebp - 0x17c], eax
cmovae edi, edx
cmp edi, eax
je 0x41062c
mov esi, dword [ebp - 0x178]
sub esi, edi
nop dword [eax]
movsx ax, byte [edi]
movzx eax, ax
push eax
call fcn.004daf71
mov byte [esi + edi], al
add esp, 4
inc edi
cmp edi, dword [ebp - 0x17c]
jne 0x410610
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402690
mov edi, dword [ebp - 0x180]
mov byte [ebp - 4], 5
cmp dword [edi + 0x4d8], 0x10
lea ecx, [edi + 0x4c4]
jb 0x41065d
mov ecx, dword [edi + 0x4c4]
push dword [edi + 0x4d4]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00402540
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push dword [ebp - 0x134]
cmovae eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
push eax
call fcn.00402540
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41075f
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41075f
cmp dword [edi + 0x538], eax
je 0x410833
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004d1960
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x114]
push 0x5040e4
push eax
call fcn.00404200
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00401a70
add esp, 0x20
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 6
jb 0x410743
mov edx, dword [edx]
mov ecx, dword [edi + 0x538]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x198]
call fcn.00403580
jmp 0x410833
push 0x34
call fcn.004cf87e
mov esi, eax
add esp, 4
test esi, esi
je 0x4107b3
mov dword [esi + 0x28], 0
xorps xmm0, xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
jmp 0x4107b5
xor esi, esi
lea eax, [edi + 0x53c]
cmp esi, eax
je 0x4107d4
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4107c9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.004031f0
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x12c]
cmp ecx, eax
je 0x4107fb
cmp dword [ebp - 0x118], 0x10
push dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.004031f0
mov ecx, edi
lea eax, [edi + 0x4bc]
neg ecx
push esi
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x30], ecx
lea ecx, [edi + 0x554]
call fcn.0041e180
mov ecx, dword [edi + 0x538]
mov byte [edi + 0x56c], 1
test ecx, ecx
je 0x410833
mov eax, dword [ecx]
push 0x504114
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x41086d
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410863
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410985
push ecx
push edx
call fcn.004cf8ae
add esp, 8
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp ecx, 0x10
jb 0x4108c2
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4108b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410985
push ecx
push edx
call fcn.004cf8ae
add esp, 8
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp ecx, 0x10
jb 0x410913
mov edx, dword [ebp - 0x174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410909
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410985
push ecx
push edx
call fcn.004cf8ae
add esp, 8
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
cmp ecx, 8
jb 0x41096a
mov edx, dword [ebp - 0x15c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410960
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410985
push ecx
push edx
call fcn.004cf8ae
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cf8bc
mov esp, ebp
pop ebp
ret
call fcn.004d54df
int3