Function at 0x488610
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8980
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], 0
call fcn.0041e1e0
add esp, 4
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0
test eax, eax
je 0x488672
mov eax, dword [eax]
jmp 0x488674
xor eax, eax
lea ecx, [ebp - 0x240]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4887e7
test byte [ebp - 0x240], 0x10
jne 0x4887e7
call fcn.0046fd40
test edi, edi
jne 0x488781
cmp dword [ebp - 0x220], edi
jne 0x4886ef
cmp dword [ebp - 0x224], edi
jne 0x4886ef
push 0x30
push 0x4e4e40
push 0x4f6508
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4886e1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4887e7
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4887e7
push 0x24
push 0x4e4e40
push 0x4f65f0
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4887e7
push 0x4f66f0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004ba210
push 0x58
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.004aa220
add esp, 0x18
mov dword [ebp - 0x298], 0x58
lea eax, [ebp - 0x218]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x278], 0x104
push eax
mov dword [ebp - 0x28c], 0x4e4fdc
mov dword [ebp - 0x264], 0x20008
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
jne 0x488796
jmp 0x4887e7
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004ba210
add esp, 0xc
push 0x4e4eb8
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00468fb0
add esp, 0xc
lea eax, [ebp - 0x218]
mov ecx, 0x52da90
push 0x52e5d0
push 0x52e3c8
push 0
push eax
call fcn.00427b50
test al, al
jne 0x488855
push 0x10
push 0x4e4e40
push 0x4f6708
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor bl, bl
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x488837
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x488837
test esi, esi
je 0x488837
mov eax, dword [esi]
test eax, eax
je 0x488815
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x48882c
push eax
call fcn.004a71f6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004a71e8
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x488863
mov eax, dword [eax]
jmp 0x488865
xor eax, eax
push eax
push esi
call fcn.0046f7c0
mov ecx, dword [ebp - 0x21c]
add esp, 8
mov bl, al
test ecx, ecx
je 0x48887f
mov ecx, dword [ecx]
jmp 0x488881
xor ecx, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
jne 0x48889d
push 0x10
push 0x4e4e40
push 0x4f6758
jmp 0x4887e0
mov bl, 1
jmp 0x4887e9