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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503c27
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x55f3d0]
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 0x1f41
push dword [esi + 0x53c]
lea ecx, [esi + 0x2c]
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::KillTimer_class_DuiLib::CControlUI___unsigned_int_
mov ecx, dword [esi + 0x544]
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.CAD.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
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad00
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00407950
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call sym.CAD.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.004017a0
add esp, 8
cmp dword [esi + 0x4ec], 0x10
lea eax, [esi + 0x4d8]
mov byte [ebp - 4], 3
jb 0x40ad68
mov eax, dword [esi + 0x4d8]
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 0x40ad94
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.00404190
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 0x40ae1c
mov esi, dword [ebp - 0x178]
sub esi, edi
nop dword [eax]
movsx ax, byte [edi]
movzx eax, ax
push eax
call fcn.004e1c8e
mov byte [esi + edi], al
add esp, 4
inc edi
cmp edi, dword [ebp - 0x17c]
jne 0x40ae00
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402530
mov edi, dword [ebp - 0x180]
mov byte [ebp - 4], 5
cmp dword [edi + 0x4d4], 0x10
lea ecx, [edi + 0x4c0]
jb 0x40ae4d
mov ecx, dword [edi + 0x4c0]
push dword [edi + 0x4d0]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004023c0
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.004023c0
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 0x40af4f
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 0x40af4f
cmp dword [edi + 0x558], eax
je 0x40b023
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004d84c0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x114]
push 0x50c274
push eax
call fcn.00404230
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00401970
add esp, 0x20
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 6
jb 0x40af33
mov edx, dword [edx]
mov ecx, dword [edi + 0x558]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x198]
call fcn.00403250
jmp 0x40b023
push 0x34
call fcn.004d631e
mov esi, eax
add esp, 4
test esi, esi
je 0x40afa3
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 0x40afa5
xor esi, esi
lea eax, [edi + 0x4d8]
cmp esi, eax
je 0x40afc4
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x40afb9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00402e70
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x12c]
cmp ecx, eax
je 0x40afeb
cmp dword [ebp - 0x118], 0x10
push dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.00402e70
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 + 0x574]
call fcn.00414a50
mov ecx, dword [edi + 0x558]
mov byte [edi + 0x58c], 1
test ecx, ecx
je 0x40b023
mov eax, dword [ecx]
push 0x50c2a4
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x40b05d
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b053
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b175
push ecx
push edx
call fcn.004d634e
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 0x40b0b2
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b0a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b175
push ecx
push edx
call fcn.004d634e
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 0x40b103
mov edx, dword [ebp - 0x174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b0f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b175
push ecx
push edx
call fcn.004d634e
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 0x40b15a
mov edx, dword [ebp - 0x15c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b150
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b175
push ecx
push edx
call fcn.004d634e
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.004d635c
mov esp, ebp
pop ebp
ret
call fcn.004dc07f
int3