Function at 0x40a8fd
Capabilities:
Delete file

Disassembly:
mov eax, 0x46a3c3
call fcn.0045d3c0
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.00416ed0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x34]
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a436
test al, al
jne 0x40a940
mov eax, dword [edi]
push str.Failed_to_get_temp_file_for_inflating
mov ecx, edi
call dword [eax + 0x10]
jmp 0x40ab23
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xd], bl
call fcn.00422700
push eax
call fcn.0043ff70
add esp, 0xc
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x18], eax
jne 0x40a987
mov eax, dword [edi]
push str.Failed_to_create_temporary_output_file
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [edi]
lea ecx, [ebp - 0x34]
call fcn.00422700
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x28]
jmp 0x40ab23
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x54]
call fcn.00440160
push ebx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0040ef0b
push esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.0043d5d0
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x40a9c9
push eax
lea ecx, [ebp - 0x88]
call fcn.0040ef01
cmp byte [esi + 0x30], bl
mov byte [ebp - 0xd], bl
je 0x40aa21
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x54]
lea ecx, [esi + 0x5c]
push eax
mov dword [ebp + 8], ebx
call fcn.00422700
push eax
lea ecx, [ebp - 0x88]
call fcn.0040fb49
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x40aa98
mov eax, dword [edi]
push str.Failed_to_inflate_from_file_to_temp_file
mov ecx, edi
call dword [eax + 0x10]
mov ebx, dword [edi]
lea ecx, [esi + 0x5c]
call fcn.00422700
push eax
push str.srcFilename
mov ecx, edi
call dword [ebx + 0x28]
xor ebx, ebx
jmp 0x40aa98
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x40aa57
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
lea ecx, [esi + 0xc0]
push ecx
lea ecx, [ebp - 0x54]
push edi
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.0040fdbf
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x40aa98
mov eax, dword [edi]
push str.Failed_to_inflate_from_data_source_to_temp_file
jmp 0x40aa93
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x14], ebx
call fcn.004226e0
push eax
lea ecx, [esi + 0x80]
call fcn.00422700
push eax
lea ecx, [ebp - 0x88]
call fcn.0040feed
cmp al, bl
mov byte [ebp - 0xd], al
jne 0x40aa98
mov eax, dword [edi]
push str.Failed_to_inflate_from_data_buffer_to_temp_file
mov ecx, edi
call dword [eax + 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.0043cf40
cmp byte [esi + 0x5b], bl
pop ecx
pop ecx
je 0x40aac4
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.004226f0
test eax, eax
je 0x40aac4
mov ecx, edi
call fcn.00422700
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x34]
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 0x40aaf7
call fcn.004227e0
mov byte [edi], 1
jmp 0x40aafc
call fcn.004226d0
mov al, byte [ebp - 0xd]
lea ecx, [ebp - 0x88]
mov byte [esi + 0x30], 1
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 1
call fcn.0040ef3f
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00440190
mov bl, byte [ebp + 0xb]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004171c0
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4