Function at 0x4ce800
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5e63df
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x90]
mov esi, ecx
mov ecx, dword [esp + 0x8c]
mov dword [esi + 8], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x98]
lea ebx, [esi + 0x20]
mov dword [esi], vtable.MOD::CModelProg.0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
xor ebp, ebp
xor edx, edx
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], ebp
mov dword [esp + 0x1c], esi
mov word [ebx + 4], dx
push 4
mov dword [esp + 0x84], ebp
lea edi, [esi + 0xbc]
call fcn.00506f00
add esp, 4
cmp eax, ebp
je 0x4ce8a6
mov dword [eax], edi
jmp 0x4ce8a8
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
push 4
mov byte [esp + 0x84], 1
lea edi, [esi + 0xdc]
call fcn.00506f00
add esp, 4
cmp eax, ebp
je 0x4ce8d6
mov dword [eax], edi
jmp 0x4ce8d8
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [esi + 0x3c]
push 0x40
push eax
mov byte [esp + 0x8c], 2
call fcn.0057e6bb
mov edi, dword [esp + 0x20]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4ce910
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebx
call fcn.00439ce0
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov dword [esp + 0x20], 0x5c
call fcn.00456450
cmp eax, 0xffffffff
je 0x4ce95b
mov ecx, dword [esi + 0x34]
dec ecx
cmp eax, ecx
je 0x4ce95b
push 1
push 0x5f1164
mov ecx, ebx
call fcn.00439740
lea edi, [esi + 4]
xor eax, eax
mov dword [edi], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], ax
lea eax, [esi + 0x3c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov byte [esp + 0x88], 3
call fcn.004c91b0
push eax
lea edx, [esp + 0x24]
push ebx
push edx
mov byte [esp + 0x8c], 4
call fcn.0043bca0
add esp, 0xc
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 5
call fcn.00439be0
mov ebx, 8
cmp dword [esp + 0x38], ebx
jb 0x4ce9d8
mov eax, dword [esp + 0x24]
push eax
call fcn.00506f70
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], cx
mov byte [esp + 0x80], 3
cmp dword [esp + 0x54], ebx
jb 0x4cea06
mov edx, dword [esp + 0x40]
push edx
call fcn.00506f70
add esp, 4
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x4cea14
lea eax, [esp + 0x5c]
push edi
push ebp
push ebp
push eax
call fcn.00401c00
cmp dword [edi], ebp
je 0x4ceac0
lea eax, [esi + 0xbc]
push eax
push str.DBFilesClient_box_save_itemdb2.txt
mov ecx, esi
call fcn.004ce640
lea eax, [esi + 0xdc]
push eax
push str.DBFilesClient_box_save_credispdbc.txt
mov ecx, esi
call fcn.004ce640
mov eax, dword [edi]
push str.tmpcustom_
push eax
mov ecx, esi
call fcn.004cc400
mov ecx, dword [edi]
push str.tmpcustom_
push ecx
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.004cc550
mov edx, dword [edi]
push str.tmpcustom_
push edx
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004cc6a0
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.004cd4f0
mov ecx, esi
call fcn.004cd7b0
mov eax, dword [edi]
cmp eax, ebp
je 0x4cea9d
push eax
call fcn.00402170
mov dword [edi], ebp
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x4ceaab
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.004c8040
jmp 0x4ceb17
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], ebx
jae 0x4ceace
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.004c8040
mov edx, dword [edi]
push str.tmpcustom_
push edx
mov ecx, esi
call fcn.004cc400
mov dword [esi + 0x14], eax
mov eax, dword [edi]
push str.tmpcustom_
push eax
mov ecx, esi
call fcn.004cc550
mov ecx, dword [edi]
push str.tmpcustom_
push ecx
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004cc6a0
mov dword [esi + 0x1c], eax
cmp dword [esp + 0x70], ebx
jb 0x4ceb2a
mov edx, dword [esp + 0x5c]
push edx
call fcn.00506f70
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005792fc
add esp, 0x70
ret 0x14