Function at 0x40ad8f
Capabilities:
Delete file

Disassembly:
mov eax, 0x46a42a
call fcn.0045d3c0
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x30]
cmp al, bl
je 0x40adde
cmp byte [esi + 0x31], bl
je 0x40adda
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x80]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x5b], bl
call fcn.004226d0
jmp 0x40ae02
cmp al, bl
jne 0x40ae09
lea ecx, [esi + 0x80]
call fcn.004226e0
test eax, eax
jne 0x40ae09
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov al, 1
jmp 0x40b06d
lea ecx, [ebp - 0x30]
call fcn.00416ed0
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a436
cmp al, bl
jne 0x40ae38
mov eax, dword [edi]
push str.Failed_to_get_temp_file_for_compression
mov ecx, edi
call dword [eax + 0x10]
jmp 0x40b05f
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], bl
call fcn.00422700
push eax
call fcn.0043ff70
add esp, 0xc
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x14], eax
jne 0x40ae7f
mov eax, dword [edi]
push str.Failed_to_open_temp_file__2_
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [edi]
lea ecx, [ebp - 0x30]
call fcn.00422700
push eax
push str.tempFilename
mov ecx, edi
call dword [esi + 0x28]
jmp 0x40b05f
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00440160
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040ef0b
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0043d5d0
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x40aec1
push eax
lea ecx, [ebp - 0x84]
call fcn.0040ef01
cmp byte [esi + 0x30], bl
je 0x40af9b
lea ecx, [ebp - 0xe4]
call fcn.00419d20
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.00422700
push eax
lea ecx, [ebp - 0xe4]
call fcn.00419f90
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.0041ba20
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0x14], eax
jne 0x40af5d
mov eax, dword [edi]
push str.Failed_to_open_file_for_reading__6_
mov ecx, edi
call dword [eax + 0x10]
push edi
lea ecx, [ebp - 0x30]
call fcn.00422700
push eax
call fcn.0041d2d0
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.00419de0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040ef3f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00440190
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004171c0
xor al, al
jmp 0x40b06d
push dword [esi + 0xa8]
lea ecx, [ebp - 0x50]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.0040ef4a
push ebx
mov byte [ebp - 0xd], al
push dword [ebp + 0x14]
call fcn.0043cf40
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.00419de0
jmp 0x40afd4
push dword [esi + 0xa8]
lea eax, [ebp - 0x50]
lea ecx, [esi + 0x80]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call fcn.004226e0
push eax
lea ecx, [esi + 0x80]
call fcn.00422700
push eax
lea ecx, [ebp - 0x84]
call fcn.0040f0db
mov byte [ebp - 0xd], al
push edi
push dword [ebp - 0x14]
call fcn.0043cf40
cmp byte [esi + 0x5b], bl
pop ecx
pop ecx
je 0x40b000
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.004226f0
test eax, eax
je 0x40b000
mov ecx, edi
call fcn.00422700
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
mov byte [esi + 0x5b], 1
call fcn.00422700
push eax
lea ecx, [esi + 0x5c]
call fcn.00417e70
cmp byte [esi + 0x98], bl
lea edi, [esi + 0x98]
lea ecx, [esi + 0x80]
jne 0x40b033
call fcn.004227e0
mov byte [edi], 1
jmp 0x40b038
call fcn.004226d0
mov al, byte [ebp - 0xd]
lea ecx, [ebp - 0x84]
mov byte [esi + 0x30], 1
mov byte [ebp + 0xf], al
mov byte [ebp - 4], 1
call fcn.0040ef3f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00440190
mov bl, byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004171c0
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10