Function at 0x4087d0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d959
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 0x408841
mov cl, byte [esi + 0x31]
test cl, cl
je 0x40883d
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 + 0x7c]
mov byte [esi + 0x30], 0
mov byte [esi + 0x5b], 0
call fcn.00423dc0
mov al, 1
jmp 0x408b22
test al, al
jne 0x40887b
lea ecx, [esi + 0x7c]
call fcn.004065f0
test eax, eax
jne 0x40887b
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 0x408b22
lea ecx, [esp + 0x14]
call fcn.004144c0
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov dword [esp + 0xe0], 0
call fcn.00407f30
mov edi, dword [esp + 0xf0]
lea ecx, [esp + 0x13]
push edi
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], 0
call fcn.004065f0
push eax
call fcn.00425400
mov ebx, eax
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
jne 0x408906
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.004065f0
push eax
push str.tempFilename
mov ecx, edi
call dword [esi + 0x28]
lea ecx, [esp + 0x14]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00414650
xor al, al
jmp 0x408b22
push ebx
lea ecx, [esp + 0x34]
call fcn.00425480
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 1
call fcn.0040b270
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 2
call fcn.00423f20
mov eax, dword [esi + 0xac]
mov dword [esp + 0x74], eax
mov al, byte [esi + 0x30]
test al, al
je 0x408a3b
lea ecx, [esp + 0x78]
call fcn.004185e0
lea ecx, [esi + 0x5c]
mov byte [esp + 0xdc], 3
call fcn.004065f0
push eax
lea ecx, [esp + 0x7c]
call fcn.00418850
lea eax, [esp + 0x78]
push edi
push eax
call fcn.00415a60
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x4089eb
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.004065f0
push eax
call fcn.00416630
add esp, 8
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], 2
call fcn.004186a0
lea ecx, [esp + 0x44]
mov byte [esp + 0xdc], 1
call fcn.0040b2b0
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 0
call fcn.004254d0
lea ecx, [esp + 0x14]
mov dword [esp + 0xdc], ebp
call fcn.00414650
xor al, al
jmp 0x408b22
mov eax, dword [esi + 0xa0]
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.0040b2c0
push 0
push ebp
mov byte [esp + 0x1b], al
call fcn.00424e00
add esp, 8
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], 2
call fcn.004186a0
jmp 0x408a7f
mov edx, dword [esi + 0xa0]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0xe8]
push eax
lea ebp, [esi + 0x7c]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
call fcn.004065f0
push eax
mov ecx, ebp
call fcn.004172a0
push eax
lea ecx, [esp + 0x60]
call fcn.0040b4f0
mov byte [esp + 0x13], al
push edi
push ebx
call fcn.00424e00
mov al, byte [esi + 0x5b]
add esp, 8
test al, al
je 0x408aac
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.00413f00
test eax, eax
je 0x408aac
mov ecx, edi
call fcn.004065f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esi + 0x5b], 1
call fcn.004065f0
push eax
lea ecx, [esi + 0x5c]
call fcn.004149b0
mov al, byte [esi + 0x90]
lea ecx, [esi + 0x7c]
test al, al
jne 0x408add
call fcn.00417350
mov byte [esi + 0x90], 1
jmp 0x408ae2
call fcn.00423dc0
mov bl, byte [esp + 0x13]
lea ecx, [esp + 0x44]
mov byte [esi + 0x30], 1
mov byte [esp + 0xdc], 1
call fcn.0040b2b0
lea ecx, [esp + 0x30]
mov byte [esp + 0xdc], 0
call fcn.004254d0
lea ecx, [esp + 0x14]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00414650
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