Function at 0x45af8e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e9e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::constructor_void_]
mov dword [ebp - 4], 0
push 0x80
lea eax, [ebp - 0x8c]
push eax
call fcn.0045b269
add esp, 8
mov byte [ebp - 0x98], 0
cmp dword [0x4c1f44], 0
jne 0x45aff9
cmp dword [0x4c1f4c], 0
jg 0x45aff9
cmp dword [0x4c1f54], 0
jle 0x45b1f6
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_int___thiscall_KFile::Create_char__]
test eax, eax
jne 0x45b015
jmp 0x45b1f6
mov byte [ebp - 0xbc], 0
xor edx, edx
mov dword [ebp - 0xbb], edx
mov dword [ebp - 0xb7], edx
mov dword [ebp - 0xb3], edx
mov dword [ebp - 0xaf], edx
mov word [ebp - 0xab], dx
mov byte [ebp - 0xa9], dl
mov dword [ebp - 0xbc], 0x46445400
cmp dword [0x4c1f44], 0
je 0x45b071
mov eax, dword [0x4c1f44]
cmp dword [eax], 0
jle 0x45b071
mov ecx, dword [0x4c1f44]
mov edx, dword [ecx]
add edx, 4
mov dword [ebp - 0xb8], edx
mov eax, dword [0x4c1f4c]
mov dword [ebp - 0xb4], eax
mov ecx, dword [0x4c1f54]
mov dword [ebp - 0xb0], ecx
push 0x14
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp eax, 0x14
je 0x45b0a7
jmp 0x45b1f6
cmp dword [0x4c1f44], 0
je 0x45b0d7
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [0x4c1f44]
push ecx
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp eax, dword [ebp - 0xb8]
je 0x45b0d7
jmp 0x45b1f6
mov edx, dword [0x4c1f48]
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0x90], 0
jmp 0x45b0fe
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [0x4c1f4c]
jge 0x45b155
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 0xc]
add eax, 0xc
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xc0]
add edx, 4
push edx
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp eax, dword [ebp - 0xc4]
je 0x45b145
jmp 0x45b155
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
mov dword [ebp - 0xc0], ecx
jmp 0x45b0ef
mov edx, dword [0x4c1f50]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x94], 0
jmp 0x45b17c
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
cmp ecx, dword [0x4c1f54]
jge 0x45b1d3
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0xc]
add eax, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xa8]
add edx, 4
push edx
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp eax, dword [ebp - 0xc8]
je 0x45b1c3
jmp 0x45b1d3
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
jmp 0x45b16d
mov edx, dword [ebp - 0x90]
cmp edx, dword [0x4c1f4c]
jge 0x45b1ef
mov eax, dword [ebp - 0x94]
cmp eax, dword [0x4c1f54]
jl 0x45b1f6
mov byte [ebp - 0x98], 1
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::Close_void_]
mov ecx, dword [ebp - 0x98]
and ecx, 0xff
test ecx, ecx
jne 0x45b236
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.Engine.dll_void___cdecl_g_GetFullPath_char___char__]
add esp, 8
lea ecx, [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dl, byte [ebp - 0x98]
mov byte [ebp - 0x1d0], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::destructor_void_]
mov al, byte [ebp - 0x1d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret