Function at 0x425969
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ad08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x4259d6
test dword [eax + 0x1c], 0x100
je 0x4259d6
cmp byte [eax + 0x19], 4
jb 0x4259d6
push dword [eax + 0x14]
mov edx, 0x40ae20
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.00414ca8
xor edi, edi
cmp dword [ebx + 0x730], edi
je 0x425bbb
cmp dword [ebx + 0x734], edi
je 0x425bbb
push edi
push 0x475b94
push 0x475570
push edi
lea ecx, [esp + 0x3c]
push ecx
push edi
push edi
lea ecx, [ebx + 0x1b4]
call fcn.004130aa
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
je 0x425bb7
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
push ecx
mov ecx, eax
call fcn.0042fc88
mov dword [esp + 0x18], edi
call fcn.0041e380
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
test eax, eax
je 0x425a8c
test ebx, ebx
je 0x425a8c
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x478f64]
mov ecx, ebx
call esi
cmp dword [eax], edi
je 0x425a8c
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x478f64]
mov ecx, ebx
call esi
push dword [eax]
push dword [esp + 0x2c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x425a8c
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x24]
push edi
push 0x475854
push 0x475570
push edi
push dword [esi + 0x4ac]
lea ecx, [esi + 0x1b4]
call fcn.0041305a
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x425ba8
lea eax, [esi + 0x76c]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
call dword [0x478468]
mov dword [esp + 0x40], edi
test ebx, ebx
je 0x425b0f
cmp dword [esp + 0x18], 0
jne 0x425af3
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xac], 1
je 0x425b0f
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x478f64]
mov ecx, ebx
call esi
mov esi, dword [esp + 0x24]
jmp 0x425b20
push 0x40800c
lea ecx, [esi + 0x76c]
call dword [0x4786b4]
push ecx
push ecx
push dword [esi + 0x76c]
mov ecx, dword [esp + 0x20]
call fcn.00452887
push 0x40800c
lea ecx, [esp + 0x20]
call fcn.004287b5
test eax, eax
je 0x425b4d
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.00418ef0
mov eax, dword [esp + 0x14]
push 1
push edi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
test ebx, ebx
je 0x425b96
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
jne 0x425b7c
cmp dword [eax + 0xac], 1
je 0x425b96
mov ecx, 0x4000
test dword [ebx + 0x20], ecx
je 0x425b96
push edi
push dword [eax + 0xac]
push edi
push ecx
mov ecx, ebx
call fcn.00438efb
or dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x1c]
xor edi, edi
inc edi
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x425bb7
mov ecx, eax
call fcn.0041c919
mov eax, edi
jmp 0x425bbe
xor eax, eax
inc eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00468ba0
mov esp, ebp
pop ebp
ret