Function at 0x4251a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f7f8
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.00612dc0
mov eax, dword [0x68b740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0x1280], 0
mov al, byte [0x63abb8]
mov byte [ebp - 0x1224], al
push 0x103
push 0
lea ecx, [ebp - 0x1223]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dl, byte [0x63abb8]
mov byte [ebp - 0x11c], dl
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x1268], 0
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KPakFile::constructor_void_]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1264], 0
mov dword [ebp - 0x1260], 0
lea ecx, [ebp - 0x127c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KFile::constructor_void_]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
cmp dword [ebp + 8], 0
jne 0x425282
jmp 0x425403
lea edx, [ebp - 0x1224]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x1280], eax
cmp dword [ebp - 0x1280], 0
jne 0x4252a8
jmp 0x425403
lea eax, [ebp - 0x11c]
push eax
push 0
push str.KSG_
lea ecx, [ebp - 0x1224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x1280], eax
cmp dword [ebp - 0x1280], 0
jne 0x4252d7
jmp 0x425403
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x127c]
call dword [sym.imp.engine.dll_public:_int___thiscall_KFile::Create_char_const__]
mov dword [ebp - 0x1280], eax
cmp dword [ebp - 0x1280], 0
jne 0x4252fe
jmp 0x425403
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_int___thiscall_KPakFile::Open_char_const__]
mov dword [ebp - 0x1280], eax
cmp dword [ebp - 0x1280], 0
jne 0x425329
jmp 0x425403
mov dword [ebp - 0x1264], 1
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_unsigned_long_int___thiscall_KPakFile::Size_void_]
mov dword [ebp - 0x1260], eax
cmp dword [ebp - 0x1260], 0
jle 0x4253a5
push 0x1000
lea ecx, [ebp - 0x111c]
push ecx
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_unsigned_long_int___thiscall_KPakFile::Read_void___unsigned_int_]
mov dword [ebp - 0x1268], eax
cmp dword [ebp - 0x1268], 0
jne 0x425377
jmp 0x4253a5
mov edx, dword [ebp - 0x1268]
push edx
lea eax, [ebp - 0x111c]
push eax
lea ecx, [ebp - 0x127c]
call dword [sym.imp.engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
mov ecx, dword [ebp - 0x1260]
sub ecx, dword [ebp - 0x1268]
mov dword [ebp - 0x1260], ecx
jmp 0x425345
cmp dword [ebp - 0x1264], 0
je 0x4253c4
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KPakFile::Close_void_]
mov dword [ebp - 0x1264], 0
cmp dword [ebp - 0x10], 0
je 0x4253dd
lea ecx, [ebp - 0x127c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KFile::Close_void_]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x4253f9
jmp 0x425403
mov dword [ebp - 0x126c], 1
cmp dword [ebp - 0x1264], 0
je 0x425422
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KPakFile::Close_void_]
mov dword [ebp - 0x1264], 0
cmp dword [ebp - 0x10], 0
je 0x42543b
lea ecx, [ebp - 0x127c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KFile::Close_void_]
mov dword [ebp - 0x10], 0
movsx eax, byte [ebp - 0x11c]
test eax, eax
je 0x42545a
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x11c], 0
mov edx, dword [ebp - 0x126c]
mov dword [ebp - 0x1284], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x127c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KFile::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x125c]
call dword [sym.imp.engine.dll_public:_void___thiscall_KPakFile::destructor_void_]
mov eax, dword [ebp - 0x1284]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00612c78
mov esp, ebp
pop ebp
ret