Function at 0x415970
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x459327
push eax
mov dword fs:[0], esp
sub esp, 0xa8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xaa8]
push edi
xor edi, edi
mov eax, dword [esi + 0x24]
mov dword [esi + 0x13c], edi
cmp eax, edi
je 0x4159b8
push edi
push eax
mov ecx, 0x46dba8
call fcn.004205c0
test eax, eax
jne 0x4159b8
mov dword [esi + 0x24], edi
cmp dword [esi + 0x24], edi
jne 0x4159f0
mov ecx, dword [esi + 8]
cmp ecx, edi
je 0x4159e4
push edi
call fcn.00413900
push eax
mov ecx, 0x46dba8
call fcn.004205c0
test eax, eax
je 0x4159e4
mov ecx, dword [esi + 8]
call fcn.00413900
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], edi
jne 0x4159f0
mov dword [esi + 0x24], 0x47504a
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x17c]
push eax
push ecx
mov ecx, 0x46dba8
call fcn.004209b0
test eax, eax
je 0x415a1f
lea eax, [esi + 0x34]
lea edx, [esp + 0x17c]
push eax
push edx
push eax
call fcn.004341d0
add esp, 0xc
push 0x2000
call fcn.00447e47
mov ecx, dword [esi]
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0x24]
push eax
push ebx
push ecx
mov ecx, 0x46dba8
call fcn.004206f0
mov ebp, eax
mov eax, dword [esi + 0x140]
inc ebp
cmp eax, edi
je 0x415a5e
lea edx, [esp + 0x19c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x415a79
mov ecx, dword [esi]
lea eax, [esp + 0x19c]
push 0x154
push eax
push 0x4be
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [esi + 4]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x78], edx
lea edx, [esp + 0x19c]
mov dword [esp + 0xa4], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0xa0], ecx
lea edx, [esp + 0x74]
lea edi, [esi + 0x34]
mov eax, 0x104
lea ecx, [esp + 0x998]
push edx
mov dword [esp + 0x78], 0x4c
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xac], 0x8006e
mov dword [esp + 0x90], ebp
mov dword [esp + 0xb4], 0x46dd5c
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], 0x4161b0
mov dword [esp + 0xc0], 0x1fc
call sub.comdlg32.dll_GetSaveFileNameA
push ebx
mov ebp, eax
call fcn.00447e70
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x415b41
xor eax, eax
jmp 0x416190
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 0x415b64
call fcn.004143b0
test eax, eax
jne 0x415b6f
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x415b77
mov dword [esp + 0x10], 1
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, 0x46dba8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004205c0
cmp eax, ebx
je 0x415bbd
mov ecx, dword [eax + 0x138]
cmp ecx, ebx
je 0x415bbd
mov eax, dword [esp + 0x18]
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 + 0x14], eax
cmp dword [esp + 0x10], ebx
je 0x415bf0
cmp dword [esp + 0x14], ebx
jne 0x415bf0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 1
push 0x4be
push 0x4c8
push ecx
push edx
call fcn.00434320
add esp, 0x14
cmp eax, 1
je 0x415bf0
xor eax, eax
jmp 0x416190
cmp dword [esi + 0x13c], ebx
jne 0x415c17
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push 0x80000001
push eax
push ecx
push edx
call fcn.00415700
add esp, 0x10
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
push 0x1f4
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004359c0
mov edx, dword [esp + 0x98]
mov eax, dword [esi]
push edx
push 0x4ce
lea ecx, [esp + 0x874]
push eax
push ecx
mov dword [esp + 0xab4], ebx
call fcn.00434580
add esp, 0x10
lea edx, [esp + 0x86c]
lea ecx, [esp + 0x44]
push edx
call fcn.00435c30
cmp dword [esi + 8], ebx
je 0x416001
mov ecx, dword [esi]
lea eax, [esp + 0x19c]
push 0x154
push eax
push 0x4bf
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x19c]
push 0x469164
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x415caf
mov eax, dword [ecx]
push ebx
call dword [eax + 0x10]
mov ebp, eax
jmp 0x415cb1
xor ebp, ebp
lea ecx, [esp + 0x19c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0x1a0]
push edx
push ebp
call sub.comdlg32.dll_GetFileTitleA
lea eax, [esp + 0x19c]
lea ecx, [esp + 0x44]
push eax
call fcn.00435c50
mov ecx, dword [esi + 8]
push ebx
mov eax, dword [ecx]
lea ecx, [esp + 0x108]
push eax
call fcn.00413020
lea ecx, [esp + 0xd4]
mov byte [esp + 0xaa4], 1
call fcn.00412bd0
lea eax, [esp + 0xd4]
lea edx, [esp + 0x44]
push eax
lea ecx, [esp + 0x108]
mov dword [esp + 0x100], 0x435d40
mov dword [esp + 0x104], edx
mov dword [esp + 0xe0], 0x18
call fcn.00413380
push 0xffffffffffffffff
lea ecx, [esp + 0x108]
call fcn.00413a00
push 0xffffffffffffffff
lea ecx, [esp + 0x108]
call fcn.00413a80
push 0xffffffffffffffff
lea ecx, [esp + 0x108]
call fcn.00413d50
mov ebp, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x415da1
cmp ebp, ebx
je 0x415da5
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub edi, ecx
sub eax, edx
push edi
push eax
push ecx
push edx
push ebp
call fcn.00434030
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x415da1
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, edi
cmp ebp, ebx
jne 0x415df4
lea ecx, [esp + 0x44]
call fcn.00435c70
mov ecx, dword [esi]
push ebx
push 0x4b5
push 0x4b6
push ebx
push ecx
call fcn.00434320
add esp, 0x14
lea ecx, [esp + 0x104]
mov byte [esp + 0xaa4], 0
call fcn.004130a0
lea ecx, [esp + 0x44]
mov dword [esp + 0xaa4], 0xffffffff
call fcn.00435a20
xor eax, eax
jmp 0x416190
mov edx, dword [esp + 0x98]
mov eax, dword [esi]
push edx
push 0x4cf
lea ecx, [esp + 0x1a4]
push eax
push ecx
call fcn.00434580
add esp, 0x10
lea ecx, [esp + 0x44]
push 1
push ebx
call fcn.00435ca0
lea edx, [esp + 0x19c]
lea ecx, [esp + 0x44]
push edx
call fcn.00435c50
lea ecx, [esp + 0x630]
call fcn.00415010
lea eax, [esi + 0x34]
lea ecx, [esp + 0x630]
push eax
mov eax, dword [esi + 0x24]
push eax
mov byte [esp + 0xaac], 2
call fcn.00415070
mov edi, eax
cmp edi, ebx
jne 0x415fb1
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x415e78
push 0xffffffffffffffff
lea ecx, [esp + 0x108]
call fcn.00413db0
push ebp
lea ecx, [esp + 0xc4]
mov ebx, eax
call fcn.00427110
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
mov byte [esp + 0xaa4], 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
xor edi, edi
mov dword [esp + 0x20], eax
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
je 0x415ecb
push eax
call fcn.00429b20
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x415ecf
mov dword [esp + 0x28], edi
cmp ebx, edi
je 0x415ede
mov ecx, ebx
call fcn.004354e0
mov dword [esp + 0x2c], eax
mov dl, byte [0x46dd5c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2f1]
mov byte [esp + 0x2f0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415f5a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415f5a
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
or edx, 1
test eax, eax
mov dword [esp + 0x1c], edx
je 0x415f26
mov dword [esp + 0x40], eax
jmp 0x415f5a
lea eax, [esp + 0x2f0]
push 0x469110
push eax
call fcn.00434c40
add esp, 8
lea ecx, [esp + 0x2f0]
push ecx
lea ecx, [esp + 0x108]
call fcn.00414430
lea edx, [esp + 0x2f0]
mov dword [esp + 0x40], edx
mov ecx, dword [esi + 0x13c]
lea eax, [esp + 0x44]
push eax
push 0x435d40
lea edx, [esp + 0x24]
push ecx
push edx
push 1
push 0
lea ecx, [esp + 0x648]
call fcn.00415240
mov edi, eax
mov al, byte [esp + 0x2f0]
test al, al
je 0x415f9b
lea eax, [esp + 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc0]
mov byte [esp + 0xaa4], 2
call fcn.00427510
xor ebx, ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x44]
push ecx
push 0x435d40
lea ecx, [esp + 0x638]
call fcn.004155f0
cmp edi, ebx
jne 0x415fd4
mov edi, eax
lea ecx, [esp + 0x630]
mov byte [esp + 0xaa4], 1
call fcn.00415060
lea ecx, [esp + 0x104]
mov byte [esp + 0xaa4], 0
call fcn.004130a0
jmp 0x41612b
mov edx, dword [esp + 0x98]
mov eax, dword [esi]
push edx
push 0x4cf
lea ecx, [esp + 0x1a4]
push eax
push ecx
call fcn.00434580
add esp, 0x10
lea ecx, [esp + 0x44]
push 1
push ebx
call fcn.00435ca0
lea edx, [esp + 0x19c]
lea ecx, [esp + 0x44]
push edx
call fcn.00435c50
lea ecx, [esp + 0x3f4]
call fcn.00415010
mov eax, dword [esi + 0x24]
push edi
push eax
lea ecx, [esp + 0x3fc]
mov byte [esp + 0xaac], 4
call fcn.00415070
mov edi, eax
cmp edi, ebx
jne 0x4160fb
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
mov ebp, dword [esi + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
xor edi, edi
mov dword [esp + 0x1c], edi
mov ebx, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 4]
cmp eax, edi
je 0x4160ad
push eax
call fcn.00429b20
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x4160b1
mov dword [esp + 0x28], edi
cmp ebp, edi
je 0x4160c0
mov ecx, ebp
call fcn.004354e0
mov dword [esp + 0x2c], eax
cmp ebx, edi
je 0x4160d2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
or al, 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x13c]
lea eax, [esp + 0x44]
push eax
push 0x435d40
lea edx, [esp + 0x24]
push ecx
push edx
push 1
push edi
lea ecx, [esp + 0x40c]
call fcn.00415240
mov edi, eax
xor ebx, ebx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x3f4]
push eax
push 0x435d40
call fcn.004155f0
cmp edi, ebx
jne 0x416117
mov edi, eax
lea ecx, [esp + 0x3f4]
mov byte [esp + 0xaa4], 0
call fcn.00415060
lea ecx, [esp + 0x44]
call fcn.00435c70
cmp edi, ebx
je 0x416177
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x44], ebx
jne 0x41615f
mov ecx, dword [esi]
push ebx
push 0x4b5
push 0x4b3
push ebx
push ecx
call fcn.00434320
add esp, 0x14
lea ecx, [esp + 0x44]
mov dword [esp + 0xaa4], 0xffffffff
call fcn.00435a20
xor eax, eax
jmp 0x416190
lea ecx, [esp + 0x44]
mov dword [esp + 0xaa4], 0xffffffff
call fcn.00435a20
mov eax, 1
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa98
ret