Function at 0x424dfc
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c896
call fcn.0041ab0c
sub esp, 0xd4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x30]
cmp al, bl
je 0x424e45
cmp byte [esi + 0x31], bl
je 0x424e41
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.004077e0
jmp 0x424e63
cmp al, bl
jne 0x424e6a
lea ecx, [esi + 0x80]
call fcn.004070f0
test eax, eax
jne 0x424e6a
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 0x4250b8
lea ecx, [ebp - 0x30]
call fcn.00403b60
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call fcn.004245e5
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], bl
call fcn.004070f0
push eax
call fcn.00417020
add esp, 0xc
cmp byte [ebp - 0xd], bl
mov dword [ebp - 0x14], eax
jne 0x424eca
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.004070f0
push eax
push str.tempFilename
mov ecx, edi
call dword [esi + 0x28]
jmp 0x4250aa
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.00417180
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00426796
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0042ff10
mov eax, dword [esi + 0xb0]
cmp eax, ebx
je 0x424f0c
push eax
lea ecx, [ebp - 0x84]
call fcn.0042678c
cmp byte [esi + 0x30], bl
je 0x424fe6
lea ecx, [ebp - 0xe0]
call fcn.00402800
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.004070f0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00402a40
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.00405e70
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0x14], eax
jne 0x424fa8
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.004070f0
push eax
call fcn.004069e0
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xe0]
call fcn.004028c0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.004267ca
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004171b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403bd0
xor al, al
jmp 0x4250b8
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.004267d5
push ebx
mov byte [ebp - 0xd], al
push dword [ebp + 0x14]
call fcn.00413930
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xe0]
call fcn.004028c0
jmp 0x42501f
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.004070f0
push eax
lea ecx, [esi + 0x80]
call fcn.0041a380
push eax
lea ecx, [ebp - 0x84]
call fcn.0042694e
mov byte [ebp - 0xd], al
push edi
push dword [ebp - 0x14]
call fcn.00413930
cmp byte [esi + 0x5b], bl
pop ecx
pop ecx
je 0x42504b
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.00403540
test eax, eax
je 0x42504b
mov ecx, edi
call fcn.004070f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
mov byte [esi + 0x5b], 1
call fcn.004070f0
push eax
lea ecx, [esi + 0x5c]
call fcn.00404140
cmp byte [esi + 0x94], bl
lea edi, [esi + 0x94]
lea ecx, [esi + 0x80]
jne 0x42507e
call fcn.004078a0
mov byte [edi], 1
jmp 0x425083
call fcn.004077e0
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.004267ca
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004171b0
mov bl, byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403bd0
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10