Function at 0x408fd0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x442c69
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x30]
test al, al
je 0x409044
mov cl, byte [esi + 0x31]
test cl, cl
je 0x409040
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov dword [eax], 0
mov dword [ecx], 0
mov dword [edx], 0
lea ecx, [esi + 0x80]
mov byte [esi + 0x30], 0
mov byte [esi + 0x5b], 0
call fcn.00427da0
mov al, 1
jmp 0x409334
test al, al
jne 0x409081
lea ecx, [esi + 0x80]
call fcn.00406c10
test eax, eax
jne 0x409081
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov dword [eax], 0
mov dword [ecx], 0
mov dword [edx], 0
mov al, 1
jmp 0x409334
lea ecx, [esp + 0x14]
call fcn.00416690
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov dword [esp + 0xe0], 0
call fcn.00408600
mov edi, dword [esp + 0xf0]
lea ecx, [esp + 0x13]
push edi
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], 0
call fcn.00406c10
push eax
call fcn.00428fb0
mov ebx, eax
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
jne 0x40910c
mov edx, dword [edi]
push str.Failed_to_open_temp_file
mov ecx, edi
call dword [edx + 0x10]
mov esi, dword [edi]
lea ecx, [esp + 0x14]
call fcn.00406c10
push eax
push str.tempFilename
mov ecx, edi
call dword [esi + 0x28]
lea ecx, [esp + 0x14]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00416820
xor al, al
jmp 0x409334
push ebx
lea ecx, [esp + 0x34]
call fcn.00429030
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 1
call fcn.0040bab0
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 2
call fcn.00427ef0
mov eax, dword [esi + 0xb0]
lea ecx, [esp + 0x44]
push eax
call fcn.0040baa0
mov al, byte [esi + 0x30]
test al, al
je 0x409247
lea ecx, [esp + 0x78]
call fcn.00419470
lea ecx, [esi + 0x5c]
mov byte [esp + 0xdc], 3
call fcn.00406c10
push eax
lea ecx, [esp + 0x7c]
call fcn.004196e0
lea ecx, [esp + 0x78]
push edi
push ecx
call fcn.00417f70
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x4091f7
mov edx, dword [edi]
push str.Failed_to_open_file_for_reading__6_
mov ecx, edi
call dword [edx + 0x10]
push edi
lea ecx, [esp + 0x18]
call fcn.00406c10
push eax
call fcn.00418b40
add esp, 8
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], 2
call fcn.00419530
lea ecx, [esp + 0x44]
mov byte [esp + 0xdc], 1
call fcn.0040baf0
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 0
call fcn.00429080
lea ecx, [esp + 0x14]
mov dword [esp + 0xdc], ebp
call fcn.00416820
xor al, al
jmp 0x409334
mov eax, dword [esi + 0xa4]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
push eax
mov eax, dword [esp + 0xe8]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebp
lea ecx, [esp + 0x5c]
call fcn.0040bb00
push 0
push ebp
mov byte [esp + 0x1b], al
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], 2
call fcn.00419530
jmp 0x40928e
mov edx, dword [esi + 0xa4]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0xe8]
push eax
lea ebp, [esi + 0x80]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
call fcn.00406c10
push eax
mov ecx, ebp
call fcn.0041a8d0
push eax
lea ecx, [esp + 0x60]
call fcn.0040bd30
mov byte [esp + 0x13], al
push edi
push ebx
call fcn.004288f0
mov al, byte [esi + 0x5b]
add esp, 8
test al, al
je 0x4092bb
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.004160c0
test eax, eax
je 0x4092bb
mov ecx, edi
call fcn.00406c10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esi + 0x5b], 1
call fcn.00406c10
push eax
lea ecx, [esi + 0x5c]
call fcn.00416e10
mov al, byte [esi + 0x94]
lea ecx, [esi + 0x80]
test al, al
jne 0x4092ef
call fcn.0041a980
mov byte [esi + 0x94], 1
jmp 0x4092f4
call fcn.00427da0
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x44]
mov byte [esi + 0x30], 1
mov byte [esp + 0xdc], 1
call fcn.0040baf0
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 0
call fcn.00429080
lea ecx, [esp + 0x14]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00416820
mov al, bl
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd0
ret 0x10