Function at 0x40ee20
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x458e6b
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x690]
test eax, eax
je 0x40ee54
call fcn.0040f0f0
jmp 0x40f0cb
mov al, byte [esi + 0x508]
lea ebx, [esi + 0x508]
test al, al
jne 0x40ee70
mov ecx, esi
call fcn.0040f0f0
jmp 0x40f0cb
mov eax, dword [esi + 0x610]
push 0
push eax
mov ecx, 0x46dba8
call fcn.004205c0
mov edi, eax
test edi, edi
jne 0x40ee95
mov ecx, esi
call fcn.0040f0f0
jmp 0x40f0cb
mov eax, dword [esi + 0x658]
test eax, eax
jne 0x40eec3
mov ecx, dword [esi + 0x610]
push 0x80000001
push ecx
push str.SaveEncodeSettings
push str.SoftwareACD_SystemsPhotoEnhancerLite
call fcn.00415700
add esp, 0x10
mov dword [esi + 0x658], eax
mov eax, dword [edi + 0x150]
test eax, eax
je 0x40eef7
test esi, esi
jne 0x40eed5
xor eax, eax
jmp 0x40eed8
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x658]
mov ecx, edi
push edx
push eax
mov eax, dword [esi + 0x610]
push eax
call fcn.0041cde0
cmp eax, 0xfffffff9
je 0x40f0c9
mov eax, dword [esi + 0x658]
test eax, eax
je 0x40ef26
test byte [eax + 4], 1
je 0x40ef26
mov ecx, dword [esi + 0x610]
push 0x80000001
push eax
push ecx
push str.SaveEncodeSettings
push str.SoftwareACD_SystemsPhotoEnhancerLite
call fcn.00415870
add esp, 0x14
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
test esi, esi
stosw word es:[edi], ax
jne 0x40ef3f
mov dword [esp + 0x34], esi
jmp 0x40ef46
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x34], edx
push ebp
push ebx
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], ebx
mov word [esp + 0x4c], 0x54
call dword [0x45b310]
mov byte [eax + esi + 0x509], 0
lea eax, [esp + 0x38]
push eax
call dword [0x45b340]
lea ebp, [esi + 0x364]
push 5
mov ecx, ebp
call fcn.0044b2a9
lea ecx, [esp + 0x58]
call fcn.00415010
mov ecx, dword [esi + 0x610]
push ebx
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x2a4], 0
call fcn.00415070
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40f044
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x614]
mov dword [esp + 0x10], ebx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40efef
push eax
call fcn.00429b20
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x40eff3
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi + 0x618]
cmp ecx, ebx
je 0x40f006
call fcn.004354e0
mov dword [esp + 0x20], eax
mov cl, byte [esi + 0x694]
lea eax, [esi + 0x694]
test cl, cl
je 0x40f024
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
or al, 1
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x658]
push ebp
push 0x40edd0
lea eax, [esp + 0x18]
push edx
push eax
push 1
push ebx
lea ecx, [esp + 0x70]
call fcn.00415240
mov edi, eax
push ebp
push 0x40edd0
lea ecx, [esp + 0x60]
call fcn.004155f0
cmp edi, ebx
jne 0x40f059
mov edi, eax
push ebx
mov ecx, ebp
call fcn.0044b2a9
cmp edi, ebx
pop ebp
jne 0x40f08e
mov ecx, esi
mov dword [esi + 0x654], ebx
call fcn.0040f720
lea ecx, [esp + 0x54]
mov dword [esp + 0x298], 0xffffffff
call fcn.00415060
mov eax, 1
jmp 0x40f0cb
cmp esi, ebx
jne 0x40f096
xor esi, esi
jmp 0x40f099
mov esi, dword [esi + 0x1c]
mov ecx, dword [0x46dcec]
push 0x30
push 0x321
push 0x352
push esi
push ecx
call fcn.00434320
add esp, 0x14
lea ecx, [esp + 0x54]
mov dword [esp + 0x298], 0xffffffff
call fcn.00415060
xor eax, eax
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret