Function at 0x4edaf0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52d447
push eax
mov dword fs:[0], esp
sub esp, 0xaa0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xabc]
push edi
xor edi, edi
mov eax, dword [esi + 0x28]
mov dword [esi + 0x150], edi
cmp eax, edi
je 0x4edb38
push edi
push eax
mov ecx, 0x566788
call fcn.004c1650
test eax, eax
jne 0x4edb38
mov dword [esi + 0x28], edi
cmp dword [esi + 0x28], edi
jne 0x4edb70
mov ecx, dword [esi + 8]
cmp ecx, edi
je 0x4edb64
push edi
call fcn.004e01a0
push eax
mov ecx, 0x566788
call fcn.004c1650
test eax, eax
je 0x4edb64
mov ecx, dword [esi + 8]
call fcn.004e01a0
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], edi
jne 0x4edb70
mov dword [esi + 0x28], 0x47504a
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0xe0]
push eax
push ecx
mov ecx, 0x566788
call fcn.004c1a60
test eax, eax
je 0x4edbad
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
lea eax, [esi + 0x48]
lea ecx, [esp + 0xe0]
push eax
push ecx
push eax
call fcn.00472250
add esp, 0xc
push 0x2000
call sub.MFC42.DLL_operatornew
mov edx, dword [esi + 0x28]
add esp, 4
mov ebx, eax
mov eax, dword [esi]
push edx
push ebx
push eax
mov ecx, 0x566788
call fcn.004c1780
mov ebp, eax
mov eax, dword [esi + 0x158]
inc ebp
cmp eax, edi
je 0x4edbec
lea ecx, [esp + 0x1b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4edc07
mov eax, dword [esi]
lea edx, [esp + 0x1b0]
push 0x154
push edx
push 0x4be
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [esi]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
mov dword [esp + 0xa8], eax
mov eax, 0x104
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
lea eax, [esp + 0x7c]
lea edi, [esi + 0x48]
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0x9ac]
push eax
mov dword [esp + 0x80], 0x4c
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x9c], edi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb4], 0x8006e
mov dword [esp + 0x98], ebp
mov dword [esp + 0xbc], 0x5688a4
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], 0x4ee3c0
mov dword [esp + 0xc8], 0x1fc
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
push ebx
mov ebp, eax
call sub.MFC42.DLL_operatordelete
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x4edcd9
xor eax, eax
jmp 0x4ee398
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x4edcfc
call fcn.004e1e20
test eax, eax
jne 0x4edd07
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x4edd0f
mov dword [esp + 0x14], 1
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x566788
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004c1650
cmp eax, ebx
je 0x4edd55
mov ecx, dword [eax + 0x140]
cmp ecx, ebx
je 0x4edd55
mov eax, dword [esp + 0x1c]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx + 0x38]
lea eax, [eax + edx*4]
mov eax, dword [eax]
shr eax, 4
and eax, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], ebx
je 0x4edd88
cmp dword [esp + 0x18], ebx
jne 0x4edd88
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 1
push 0x4be
push 0x4c8
push ecx
push edx
call fcn.00472ce0
add esp, 0x14
cmp eax, 1
je 0x4edd88
xor eax, eax
jmp 0x4ee398
cmp dword [esi + 0x150], ebx
jne 0x4eddaf
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push SysReAllocString
push eax
push ecx
push edx
call fcn.004ed7e0
add esp, 0x10
mov dword [esi + 0x150], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
push 0x1f4
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00484330
mov edx, dword [esp + 0xa0]
mov eax, dword [esi]
push edx
push 0x4ce
lea ecx, [esp + 0x888]
push eax
push ecx
mov dword [esp + 0xac8], ebx
call fcn.00475a90
add esp, 0x10
lea edx, [esp + 0x880]
lea ecx, [esp + 0x4c]
push edx
call fcn.00484650
cmp dword [esi + 8], ebx
je 0x4ee1da
mov ecx, dword [esi]
lea eax, [esp + 0x1b0]
push 0x154
push eax
push 0x4c0
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x1b0]
push 0x557d84
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x4ede47
mov eax, dword [ecx]
push ebx
call dword [eax + 0x10]
mov ebp, eax
jmp 0x4ede49
xor ebp, ebp
lea ecx, [esp + 0x1b0]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0x1b4]
push edx
push ebp
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x4c]
push eax
call fcn.004846b0
mov ecx, dword [esi + 8]
push ebx
mov eax, dword [ecx]
lea ecx, [esp + 0x13c]
push eax
call fcn.004df0a0
lea ecx, [esp + 0x100]
mov byte [esp + 0xab8], 1
call fcn.004de7d0
lea eax, [esp + 0x100]
lea edx, [esp + 0x4c]
push eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x130], 0x4848d0
mov dword [esp + 0x134], edx
mov dword [esp + 0x10c], 0x18
call fcn.004df460
push 0xffffffffffffffff
lea ecx, [esp + 0x13c]
call fcn.004e0350
push 0xffffffffffffffff
lea ecx, [esp + 0x13c]
call fcn.004e03d0
push 0xffffffffffffffff
lea ecx, [esp + 0x13c]
call fcn.004e08e0
mov ebx, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4edf3a
test ebx, ebx
je 0x4edf3e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub ebp, ecx
sub eax, edx
push ebp
push eax
push ecx
push edx
push ebx
call fcn.00472050
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x4edf3a
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, ebp
test ebx, ebx
jne 0x4edf8f
lea ecx, [esp + 0x4c]
call fcn.00484790
mov ecx, dword [esi]
push 0
push 0x4b5
push 0x4b6
push 0
push ecx
call fcn.00472ce0
add esp, 0x14
lea ecx, [esp + 0x138]
mov byte [esp + 0xab8], 0
call fcn.004df1c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0xab8], 0xffffffff
call fcn.00484390
xor eax, eax
jmp 0x4ee398
mov edx, dword [esp + 0xa0]
mov eax, dword [esi]
push edx
push 0x4cf
lea ecx, [esp + 0x1b8]
push eax
push ecx
call fcn.00475a90
add esp, 0x10
lea ecx, [esp + 0x4c]
push 1
push 0
call fcn.004847f0
lea edx, [esp + 0x1b0]
lea ecx, [esp + 0x4c]
push edx
call fcn.004846b0
lea ecx, [esp + 0x644]
call fcn.004ece10
mov eax, dword [esi + 0x28]
push edi
push eax
lea ecx, [esp + 0x64c]
mov byte [esp + 0xac0], 2
call fcn.004ece70
mov edi, eax
test edi, edi
jne 0x4ee186
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4ee011
push 0xffffffffffffffff
lea ecx, [esp + 0x13c]
call fcn.004e09a0
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0x4ee02c
push 0xffffffffffffffff
lea ecx, [esp + 0x13c]
call fcn.004e0c90
mov ebp, eax
push ebx
lea ecx, [esp + 0xcc]
call fcn.00492b60
mov edx, ebp
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x20]
neg edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
sbb edx, edx
mov byte [esp + 0xab8], 3
and edx, 2
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
je 0x4ee088
push eax
call fcn.0049d4a0
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x2c], eax
jmp 0x4ee090
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4ee0a5
call fcn.0047b630
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x4ee0c0
mov ecx, ebp
mov dword [esp + 0x20], 2
call fcn.00479190
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov al, byte [0x5688a4]
mov ecx, 0x40
mov byte [esp + 0x304], al
xor eax, eax
lea edi, [esp + 0x305]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ee131
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ee131
mov eax, dword [esi + 0x18]
or edx, 1
test eax, eax
mov dword [esp + 0x20], edx
jne 0x4ee12d
lea ecx, [esp + 0x304]
push 0x55407c
push ecx
call fcn.004771f0
add esp, 8
lea edx, [esp + 0x304]
lea ecx, [esp + 0x138]
push edx
call fcn.004e1fe0
lea eax, [esp + 0x304]
mov dword [esp + 0x44], eax
mov edx, dword [esi + 0x150]
lea ecx, [esp + 0x4c]
push ecx
push 0x4848d0
lea eax, [esp + 0x28]
push edx
push eax
push 1
push 0
lea ecx, [esp + 0x65c]
call fcn.004ed040
mov edi, eax
mov al, byte [esp + 0x304]
test al, al
je 0x4ee172
lea ecx, [esp + 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc8]
mov byte [esp + 0xab8], 2
call fcn.00492f70
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea edx, [esp + 0x4c]
push 0
push edx
push 0x4848d0
lea ecx, [esp + 0x650]
call fcn.004ed6a0
test edi, edi
jne 0x4ee1ab
mov edi, eax
lea ecx, [esp + 0x644]
mov byte [esp + 0xab8], 1
call fcn.004ece60
lea ecx, [esp + 0x138]
mov byte [esp + 0xab8], 0
call fcn.004df1c0
xor ebx, ebx
jmp 0x4ee333
mov eax, dword [esp + 0xa0]
mov ecx, dword [esi]
push eax
push 0x4cf
lea edx, [esp + 0x1b8]
push ecx
push edx
call fcn.00475a90
add esp, 0x10
lea ecx, [esp + 0x4c]
push 1
push ebx
call fcn.004847f0
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x4c]
push eax
call fcn.004846b0
lea ecx, [esp + 0x408]
call fcn.004ece10
mov ecx, dword [esi + 0x28]
push edi
push ecx
lea ecx, [esp + 0x410]
mov byte [esp + 0xac0], 4
call fcn.004ece70
mov edi, eax
cmp edi, ebx
jne 0x4ee302
mov ebp, dword [esi + 0x14]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x20]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
mov eax, ebp
neg eax
sbb eax, eax
mov dword [esp + 0x10], edx
and eax, 2
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4ee298
push ecx
call fcn.0049d4a0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
add esp, 4
jmp 0x4ee2a0
mov dword [esp + 0x2c], 0
test ebx, ebx
je 0x4ee2b3
mov ecx, ebx
call fcn.0047b630
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
test ebp, ebp
je 0x4ee2c6
mov ecx, ebp
call fcn.00479190
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4ee2d8
or al, 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x150]
lea eax, [esp + 0x4c]
push eax
push 0x4848d0
lea edx, [esp + 0x28]
push ecx
push edx
push 1
push 0
lea ecx, [esp + 0x420]
call fcn.004ed040
mov edi, eax
xor ebx, ebx
lea eax, [esp + 0x4c]
push ebx
push eax
push 0x4848d0
lea ecx, [esp + 0x414]
call fcn.004ed6a0
cmp edi, ebx
jne 0x4ee31f
mov edi, eax
lea ecx, [esp + 0x408]
mov byte [esp + 0xab8], 0
call fcn.004ece60
lea ecx, [esp + 0x4c]
call fcn.00484790
cmp edi, ebx
je 0x4ee37f
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x4c], ebx
jne 0x4ee367
mov ecx, dword [esi]
push ebx
push 0x4b5
push 0x4b3
push ebx
push ecx
call fcn.00472ce0
add esp, 0x14
lea ecx, [esp + 0x4c]
mov dword [esp + 0xab8], 0xffffffff
call fcn.00484390
xor eax, eax
jmp 0x4ee398
lea ecx, [esp + 0x4c]
mov dword [esp + 0xab8], 0xffffffff
call fcn.00484390
mov eax, 1
mov ecx, dword [esp + 0xab0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xaac
ret