Function at 0x40716f
Capabilities:
Delete file

Disassembly:
mov eax, 0x466ca6
call fcn.00446518
sub esp, 0x130
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
cmp eax, dword [edi + 0x48]
je 0x407146
push eax
lea eax, [ebp - 0x13c]
push str.LocalFiles:__d
push eax
call fcn.00447724
push dword [edi + 0x48]
lea eax, [ebp - 0xbc]
push str.RecentFiles:__d
push eax
call fcn.00447724
add esp, 0x18
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0x484288
mov ecx, edi
call fcn.004068b2
xor al, al
jmp 0x4073e4
push ebx
push esi
call fcn.00406a84
add eax, 0xcc
mov esi, 0x4af930
push 0
mov ecx, esi
mov dword [ebp - 0x3c], eax
call fcn.00404975
push dword [edi + 0x3c]
mov ecx, esi
push 0
call fcn.00404927
push 2
push str.data_darkeden
call fcn.00422b00
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x38]
mov ebx, dword [eax + 8]
pop ecx
pop ecx
mov esi, 0x483e84
mov eax, dword [ebp - 0x28]
cmp eax, dword [edi + 0x44]
jne 0x4071a2
cmp ebx, dword [edi + 0x38]
je 0x40734b
mov eax, dword [ebx + 0x10]
push eax
mov ecx, 0x4f8780
mov dword [ebp - 0x10], eax
call fcn.00423510
test al, al
je 0x407357
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 0x28]
mov eax, dword [eax + 0x1c]
mov dl, byte [ebx + 0x28]
cmp cl, dl
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x1c]
mov byte [ebp - 0x11], cl
mov byte [ebp - 0x12], dl
mov dword [ebp - 0x34], eax
je 0x4073cf
cmp dword [ebp - 0x38], eax
jne 0x4073cf
test dl, dl
mov dword [ebp - 0x18], 4
je 0x407205
cmp dl, 2
mov dword [ebp - 0x18], 0x10000004
jne 0x407205
mov dword [ebp - 0x18], 0x30000004
push eax
call fcn.00456066
pop ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.00404192
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00403b6d
test al, al
je 0x407363
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x407251
push dword [ebp - 0x34]
mov eax, dword [ecx]
push dword [ebp - 0x24]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x407251
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x407253
xor eax, eax
cmp eax, dword [ebp - 0x34]
jne 0x40737f
lea ecx, [ebp - 0x20]
call fcn.00422bf0
cmp byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 4
je 0x407285
cmp byte [ebp - 0x11], 2
mov dword [ebp - 0x18], 0x10000004
jne 0x407285
mov dword [ebp - 0x18], 0x30000004
push dword [ebp - 0x10]
call fcn.0040291d
test al, al
pop ecx
je 0x40738b
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x10]
call fcn.004069dc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00403b6d
test al, al
je 0x40739e
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4072ca
push dword [ebp - 0x38]
mov eax, dword [ecx]
push dword [ebp - 0x24]
call dword [eax + 0x20]
lea ecx, [ebp - 0x30]
call fcn.00422bf0
push dword [ebp - 0x24]
call fcn.0045606b
cmp byte [ebp - 0x12], 0
pop ecx
push dword [ebp - 0x10]
jne 0x4072ec
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4072f6
mov ecx, 0x4f8780
call fcn.004234f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], esi
call fcn.00422bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00422bf0
push dword [ebp - 0x28]
call fcn.004379d0
push ebx
mov dword [ebp - 0x28], eax
call fcn.004379d0
pop ecx
pop ecx
push 1
mov ecx, 0x4af930
mov ebx, eax
call fcn.00404997
push 0
push dword [ebp - 0x3c]
push dword [0x4af1a8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x407191
call fcn.00422b20
mov al, 1
jmp 0x4073e2
push 0
push dword [ebp - 0x10]
push 0x48426c
jmp 0x4073d9
push 0
push dword [ebp - 0x10]
push 0x48424c
mov ecx, edi
call fcn.004068b2
push dword [ebp - 0x24]
call fcn.0045606b
pop ecx
jmp 0x4073be
push 0
push dword [ebp - 0x10]
push 0x48422c
jmp 0x40736d
push 0
push dword [ebp - 0x10]
mov ecx, edi
push 0x484208
call fcn.004068b2
jmp 0x4073be
push 0
push dword [ebp - 0x10]
mov ecx, edi
push 0x4841e8
call fcn.004068b2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], esi
call fcn.00422bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00422bf0
jmp 0x4073e0
push 0
push dword [ebp - 0x10]
push 0x4841d8
mov ecx, edi
call fcn.004068b2
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret