Function at 0x4a4d50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4fa019
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4ce0]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x30]
test al, al
je 0x4a4dd1
cmp byte [esi + 0x31], 0
je 0x4a4dcd
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
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.00454750
mov al, 1
jmp 0x4a50fd
test al, al
jne 0x4a4e0e
lea ecx, [esi + 0x80]
call fcn.004c06c0
test eax, eax
jne 0x4a4e0e
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
mov dword [eax], 0
mov dword [ecx], 0
mov dword [edx], 0
mov al, 1
jmp 0x4a50fd
lea ecx, [esp + 0x18]
call fcn.00451c20
lea edi, [esi + 0xb4]
mov ecx, edi
mov dword [esp + 0xec], 0
call fcn.004c49f0
test eax, eax
je 0x4a4e4f
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004c06c0
push eax
push str.ckZ.dat
call fcn.004587d0
add esp, 0xc
jmp 0x4a4e61
lea ecx, [esp + 0x18]
push ecx
push str.ckZ.dat
call fcn.00458a20
add esp, 8
mov edi, dword [esp + 0x100]
push edi
lea edx, [esp + 0x1b]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f], 0
call fcn.004c06c0
push eax
call fcn.0048a1f0
add esp, 0xc
cmp byte [esp + 0x17], 0
mov ebx, eax
jne 0x4a4ecf
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push str.Failed_to_open_temp_file__2_
mov ecx, edi
call edx
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.004c06c0
push eax
mov eax, dword [esi + 0x28]
push str.tempFilename
mov ecx, edi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xec], 0xffffffff
call fcn.00451e70
xor al, al
jmp 0x4a50fd
push 0
push 0
push 0
push ebx
lea ecx, [esp + 0x44]
call fcn.0048a3e0
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0xf0], 1
call fcn.004bc6b0
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xf0], 2
call fcn.0048d470
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4a4f18
push eax
lea ecx, [esp + 0x58]
call fcn.004bc6a0
cmp byte [esi + 0x30], 0
je 0x4a5012
lea ecx, [esp + 0x88]
call fcn.004537d0
lea ecx, [esi + 0x5c]
mov byte [esp + 0xec], 3
call fcn.004c06c0
push eax
lea ecx, [esp + 0x8c]
call fcn.00453a60
lea ecx, [esp + 0x88]
push edi
push ecx
call fcn.00456880
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x4a4fbf
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push str.Failed_to_open_file_for_reading__6_
mov ecx, edi
call eax
push edi
lea ecx, [esp + 0x1c]
call fcn.004c06c0
push eax
call fcn.00457810
add esp, 8
lea ecx, [esp + 0x88]
mov byte [esp + 0xec], 2
call fcn.00453880
lea ecx, [esp + 0x54]
mov byte [esp + 0xec], 1
call fcn.004bc6d0
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], 0
call fcn.0048a450
jmp 0x4a4eb4
mov ecx, dword [esi + 0xa4]
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
push ecx
mov ecx, dword [esp + 0xf8]
push edx
push eax
push ecx
lea edx, [esp + 0x44]
push edx
push ebp
lea ecx, [esp + 0x6c]
call fcn.004bc6e0
push 0
push ebp
mov byte [esp + 0x1f], al
call fcn.004661e0
add esp, 8
lea ecx, [esp + 0x88]
mov byte [esp + 0xec], 2
call fcn.00453880
jmp 0x4a5059
mov eax, dword [esi + 0xa4]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0xf8]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
lea ebp, [esi + 0x80]
push ecx
mov ecx, ebp
call fcn.004c06c0
push eax
mov ecx, ebp
call fcn.004c4070
push eax
lea ecx, [esp + 0x70]
call fcn.004bc910
mov byte [esp + 0x17], al
push edi
push ebx
call fcn.004661e0
add esp, 8
cmp byte [esi + 0x5b], 0
je 0x4a5085
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.004c49f0
test eax, eax
je 0x4a5085
mov ecx, edi
call fcn.004c06c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esi + 0x5b], 1
call fcn.004c06c0
push eax
lea ecx, [esi + 0x5c]
call fcn.00452a60
cmp byte [esi + 0x94], 0
lea ecx, [esi + 0x80]
jne 0x4a50b8
call fcn.004547b0
mov byte [esi + 0x94], 1
jmp 0x4a50bd
call fcn.00454750
mov bl, byte [esp + 0x17]
lea ecx, [esp + 0x54]
mov byte [esi + 0x30], 1
mov byte [esp + 0xec], 1
call fcn.004bc6d0
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], 0
call fcn.0048a450
lea ecx, [esp + 0x18]
mov dword [esp + 0xec], 0xffffffff
call fcn.00451e70
mov al, bl
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret 0x10