Function at 0x408570
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x439194
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00425380
mov edi, dword [esp + 0xf4]
mov dword [esp + 0xe0], 0
test edi, edi
jne 0x4085b4
lea edi, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00414020
lea eax, [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0xe4], 1
call fcn.00407b90
lea ecx, [esp + 0x13]
push edi
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], 0
call fcn.004235e0
push eax
call fcn.00424c90
mov ebx, eax
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
jne 0x408627
test edi, edi
je 0x408700
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 + 0x18]
call fcn.004235e0
push eax
push str.tempFilename
mov ecx, edi
call dword [esi + 0x2c]
jmp 0x408700
push ebx
lea ecx, [esp + 0x38]
call fcn.00424d10
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 2
call fcn.0040aed0
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 3
call fcn.00423800
mov eax, dword [esi + 0xac]
mov dword [esp + 0x78], eax
mov al, byte [esi + 0x30]
test al, al
je 0x40877c
lea ecx, [esp + 0x7c]
call fcn.004180d0
lea ecx, [esi + 0x5c]
mov byte [esp + 0xe0], 4
call fcn.004235e0
push eax
lea ecx, [esp + 0x80]
call fcn.00418340
lea eax, [esp + 0x7c]
push edi
push eax
call fcn.004155b0
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x40872c
test edi, edi
je 0x4086ba
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 + 0x1c]
call fcn.004235e0
push eax
call fcn.00416170
add esp, 8
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 3
call fcn.00418190
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 2
call fcn.0040af10
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 1
call fcn.00424d60
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 0
call fcn.004141b0
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004253c0
xor al, al
jmp 0x408874
mov eax, dword [esi + 0xa0]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf0]
push eax
mov eax, dword [esp + 0xec]
push ecx
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
lea ecx, [esp + 0x60]
call fcn.0040af20
push 0
push ebp
mov byte [esp + 0x1b], al
call fcn.004246e0
add esp, 8
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 3
call fcn.00418190
jmp 0x4087c0
mov edx, dword [esi + 0xa0]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xf0]
push edx
mov edx, dword [esp + 0xec]
push eax
lea ebp, [esi + 0x7c]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, ebp
call fcn.004235e0
push eax
mov ecx, ebp
call fcn.00416de0
push eax
lea ecx, [esp + 0x64]
call fcn.0040b120
mov byte [esp + 0x13], al
push edi
push ebx
call fcn.004246e0
mov al, byte [esi + 0x5b]
add esp, 8
test al, al
je 0x4087ed
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.00413a80
test eax, eax
je 0x4087ed
mov ecx, edi
call fcn.004235e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esi + 0x5b], 1
call fcn.004235e0
push eax
lea ecx, [esi + 0x5c]
call fcn.00414510
mov al, byte [esi + 0x90]
lea ecx, [esi + 0x7c]
test al, al
jne 0x40881e
call fcn.00416e50
mov byte [esi + 0x90], 1
jmp 0x408823
call fcn.004236c0
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x48]
mov byte [esi + 0x30], 1
mov byte [esp + 0xe0], 2
call fcn.0040af10
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 1
call fcn.00424d60
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 0
call fcn.004141b0
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004253c0
mov al, bl
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd4
ret 0x10