Function at 0x4247ae
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c156
call fcn.0041a49c
sub esp, 0xd4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x30]
cmp al, bl
je 0x4247f7
cmp byte [esi + 0x31], bl
je 0x4247f3
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x80]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x5b], bl
call fcn.00407120
jmp 0x424815
cmp al, bl
jne 0x42481c
lea ecx, [esi + 0x80]
call fcn.00419a90
test eax, eax
jne 0x42481c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov al, 1
jmp 0x424a6a
lea ecx, [ebp - 0x30]
call fcn.00402a10
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call fcn.00423f97
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], bl
call fcn.00419a90
push eax
call fcn.004165a0
add esp, 0xc
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x14], eax
jne 0x42487c
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.00419a90
push eax
push str.tempFilename
mov ecx, edi
call dword [esi + 0x28]
jmp 0x424a5c
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00416700
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00426148
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0042f8d0
mov eax, dword [esi + 0xb0]
cmp eax, ebx
je 0x4248be
push eax
lea ecx, [ebp - 0x84]
call fcn.0042613e
cmp byte [esi + 0x30], bl
je 0x424998
lea ecx, [ebp - 0xe0]
call fcn.00404670
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.00419a90
push eax
lea ecx, [ebp - 0xe0]
call fcn.004048b0
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.004057b0
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0x14], eax
jne 0x42495a
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.00419a90
push eax
call fcn.00406330
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xe0]
call fcn.00404730
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0042617c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00416730
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402a80
xor al, al
jmp 0x424a6a
push dword [esi + 0xa4]
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.00426187
push ebx
mov byte [ebp - 0xd], al
push dword [ebp + 0x14]
call fcn.00412e70
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xe0]
call fcn.00404730
jmp 0x4249d1
push dword [esi + 0xa4]
lea eax, [ebp - 0x50]
lea ecx, [esi + 0x80]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call fcn.00419a90
push eax
lea ecx, [esi + 0x80]
call fcn.004199e0
push eax
lea ecx, [ebp - 0x84]
call fcn.00426300
mov byte [ebp - 0xd], al
push edi
push dword [ebp - 0x14]
call fcn.00412e70
cmp byte [esi + 0x5b], bl
pop ecx
pop ecx
je 0x4249fd
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.004023f0
test eax, eax
je 0x4249fd
mov ecx, edi
call fcn.00419a90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
mov byte [esi + 0x5b], 1
call fcn.00419a90
push eax
lea ecx, [esi + 0x5c]
call fcn.00402f90
cmp byte [esi + 0x94], bl
lea edi, [esi + 0x94]
lea ecx, [esi + 0x80]
jne 0x424a30
call fcn.004071e0
mov byte [edi], 1
jmp 0x424a35
call fcn.00407120
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.0042617c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00416730
mov bl, byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402a80
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10