Function at 0x459224
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push esi
push edi
lea edi, [ebp - 0x1c0]
mov ecx, 0x6d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::constructor_void_]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], 0
push 0x80
lea eax, [ebp - 0x8c]
push eax
call fcn.004594cb
add esp, 8
mov byte [ebp - 0x90], 0
cmp dword [0x4a2e2c], 0
jne 0x4592a3
cmp dword [0x4a2e34], 0
jle 0x459425
mov esi, esp
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_int___thiscall_KFile::Create_char__]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
jne 0x4592c8
jmp 0x459425
mov byte [ebp - 0xb0], 0
xor edx, edx
mov dword [ebp - 0xaf], edx
mov dword [ebp - 0xab], edx
mov dword [ebp - 0xa7], edx
mov word [ebp - 0xa3], dx
mov byte [ebp - 0xa1], dl
mov dword [ebp - 0xb0], 0x46445400
cmp dword [0x4a2e2c], 0
je 0x45931e
mov eax, dword [0x4a2e2c]
cmp dword [eax], 0
jle 0x45931e
mov ecx, dword [0x4a2e2c]
mov edx, dword [ecx]
add edx, 4
mov dword [ebp - 0xac], edx
mov eax, dword [0x4a2e34]
mov dword [ebp - 0xa8], eax
mov esi, esp
push 0x10
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, 0x10
je 0x459351
jmp 0x459425
cmp dword [0x4a2e2c], 0
je 0x459389
mov esi, esp
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [0x4a2e2c]
push eax
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, dword [ebp - 0xac]
je 0x459389
jmp 0x459425
mov ecx, dword [0x4a2e30]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xb4], 0
jmp 0x4593b0
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
cmp eax, dword [0x4a2e34]
jge 0x459410
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0xc]
add edx, 0xc
mov dword [ebp - 0xb8], edx
mov esi, esp
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xa0]
add ecx, 4
push ecx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, dword [ebp - 0xb8]
je 0x459400
jmp 0x459410
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx]
mov dword [ebp - 0xa0], eax
jmp 0x4593a1
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [0x4a2e34]
jl 0x459425
mov byte [ebp - 0x90], 1
mov esi, esp
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::Close_void_]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov edx, dword [ebp - 0x90]
and edx, 0xff
test edx, edx
jne 0x459480
mov esi, esp
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call dword [sym.imp.Engine.dll_void___cdecl_g_GetFullPath_char___char__]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov al, byte [ebp - 0x90]
mov byte [ebp - 0x1c0], al
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x9c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::destructor_void_]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov al, byte [ebp - 0x1c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x1c0
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret