Function at 0x1005be6
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x101767c]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x2bc], 1
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x2b0], edi
call fcn.01007def
call fcn.010055d5
cmp dword [ebp + 8], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov dword [ebp - 0x2c4], eax
jne 0x1005c50
cmp eax, edi
jne 0x1005c50
push 0x1018540
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1005e31
push 0x50
lea eax, [ebp - 0x2ac]
push eax
push 0x69
push dword [0x1018534]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [0x1018770], edi
jne 0x1005c8b
cmp dword [ebp - 0x2c4], edi
jne 0x1005c8b
push 0x1018540
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1005c92
mov word [ebp - 0x20c], di
cmp dword [ebp + 8], edi
mov eax, dword [0x101852c]
mov dword [ebp - 0x31c], eax
mov eax, dword [0x1018534]
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x320], 0x58
mov dword [ebp - 0x314], 0x1018440
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x308], 1
mov dword [ebp - 0x300], 0x104
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2ec], 0x88804
mov word [ebp - 0x2e8], di
mov word [ebp - 0x2e6], di
mov dword [ebp - 0x2e4], 0x1018360
je 0x1005d59
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2ec], 0x88864
mov dword [ebp - 0x2d8], 0x65
mov dword [ebp - 0x2dc], 0x100b09f
jmp 0x1005d65
mov dword [ebp - 0x2dc], edi
mov dword [ebp - 0x2d8], edi
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x1005fb7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x20c]
jmp 0x1005db6
cmp cx, 0x2f
je 0x1005dc1
cmp cx, 0x5c
je 0x1005dc1
cmp cx, 0x3a
je 0x1005dc1
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x1005dc1
push eax
mov eax, ecx
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
mov cx, word [eax]
cmp cx, 0x2e
jne 0x1005d90
jmp 0x1005dd3
push 0x1001520
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01005662
test eax, eax
je 0x1005e15
cmp dword [0x1018770], edi
je 0x1005e31
cmp dword [0x1018538], edi
je 0x1005e31
push 0x7d
push 0x65
push 0x23
push dword [0x1018534]
push dword [0x101852c]
call fcn.010054be
movsx eax, ax
add esp, 0x14
cmp eax, 2
jne 0x1005e1c
xor eax, eax
jmp 0x100606a
cmp eax, 6
jne 0x1005e31
call fcn.0100cb54
call fcn.0100cb18
mov dword [0x1018538], edi
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x11001
mov dword [ebp - 0x2b4], eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.WINMM.dll_mmioOpenW]
cmp eax, edi
mov dword [ebp - 0x2b8], eax
jne 0x1005e75
lea eax, [ebp - 0x20c]
push eax
push 0x6a
jmp 0x1005f92
cmp dword [ebp - 0x2b0], edi
je 0x1005f55
push dword [0x1017984]
push dword [0x101825c]
call fcn.010076bd
push edi
push edi
lea ecx, [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0x2c0]
push ecx
push dword [ebp - 0x2b0]
push dword [0x101797c]
push eax
push dword [0x101825c]
push dword [0x101852c]
call fcn.0100b6ee
test eax, eax
jne 0x1005fe1
push dword [0x101825c]
call esi
push eax
call ebx
push dword [0x101825c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [0x101797c]
call esi
push eax
call ebx
push dword [0x101797c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x2b0]
push 0x12
pop ecx
mov dword [0x101825c], eax
mov dword [0x1018260], ecx
cmp word [eax], 1
je 0x1005f22
movzx edx, word [eax + 0x10]
add edx, ecx
mov dword [0x1018260], edx
push dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2c8]
push eax
mov dword [0x101797c], ecx
call fcn.0100769d
push dword [ebp - 0x2c0]
mov dword [0x1017980], eax
push dword [0x101825c]
call fcn.0100769d
mov dword [0x1017984], eax
push dword [0x1017984]
push dword [0x101797c]
push dword [0x1018260]
push dword [0x101825c]
push dword [ebp - 0x2b8]
call fcn.010058eb
test eax, eax
push edi
push dword [ebp - 0x2b8]
jne 0x1006000
call dword [sym.imp.WINMM.dll_mmioClose]
lea eax, [ebp - 0x20c]
push eax
push 0x6d
push 0x65
push 0x30
push dword [0x1018534]
push dword [0x101852c]
call fcn.010054be
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2b0], edi
mov dword [ebp - 0x2bc], edi
je 0x100603b
push dword [ebp - 0x2b0]
call esi
push eax
call ebx
push dword [ebp - 0x2b0]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100603b
push 0xb1
push 0x65
push 0x30
push dword [0x1018534]
push dword [0x101852c]
call fcn.010054be
add esp, 0x14
jmp 0x1005faa
call dword [sym.imp.WINMM.dll_mmioClose]
lea eax, [ebp - 0x20c]
push eax
call fcn.010055f0
call fcn.0100571a
cmp dword [ebp + 8], edi
jne 0x1006031
cmp dword [ebp - 0x2c4], edi
jne 0x1006031
call fcn.0100cb54
mov dword [0x1018538], edi
jmp 0x100603b
push 0x1018540
call fcn.0100cacb
cmp dword [ebp - 0x2b4], edi
je 0x100604f
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x2bc], edi
je 0x100605d
mov dword [0x1018538], edi
push 1
call fcn.01007e97
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100e270
leave
ret 4