Function at 0x471cd0
Capabilities:
Check if file exists
Clear file content
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4ead98
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov esi, ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], ecx
xor ebx, ebx
push eax
mov ecx, esi
mov dword [esp + 0xa8], ebx
call fcn.00418770
push 0xffffffffffffffff
lea ecx, [esi + 0x1ec]
mov dword [esi], vtable.Clunet::CCluFile.0
push ebx
lea edx, [esp + 0xb8]
mov ebp, 7
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0xb0], 1
mov word [ecx + 4], bx
call fcn.00401640
mov eax, dword [esp + 0xcc]
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esi + 0x208], eax
mov dword [esi + 0x20c], edi
mov dword [esi + 0x214], ecx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21e], ebx
mov dword [esi + 0x222], ebx
mov dword [esi + 0x22a], ebx
mov dword [esi + 0x22e], ebx
mov dword [esi + 0x232], ebx
mov dword [esi + 0x236], ebx
mov dword [esi + 0x23e], ebx
mov dword [esi + 0x242], ebx
mov dword [esi + 0x246], ebx
mov dword [esi + 0x24a], ebx
mov dword [esi + 0x24e], ebx
mov dword [esi + 0x26a], ebp
mov dword [esi + 0x266], ebx
mov word [esi + 0x256], bx
lea ecx, [esi + 0x282]
push ebx
mov byte [esp + 0xa8], 4
mov byte [esi + 0x26f], bl
mov byte [esi + 0x270], bl
mov dword [esi + 0x272], ebx
mov dword [esi + 0x276], ebx
mov dword [esi + 0x27a], ebx
mov dword [esi + 0x27e], ebx
call fcn.00411700
fldz
push 0x40
fstp qword [esi + 0x29e]
lea edx, [esp + 0x60]
push ebx
push edx
mov byte [esi + 0x28c], bl
mov dword [esi + 0x28e], ebx
mov dword [esi + 0x292], ebx
mov dword [esi + 0x296], ebx
mov dword [esi + 0x29a], ebx
mov byte [esi + 0x21c], bl
call fcn.004c16f0
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp eax, ebx
je 0x471eab
call fcn.00419310
mov ecx, dword [esp + 0x68]
cmp ecx, dword [eax + 0x90]
jb 0x471ea4
ja 0x471e85
mov edx, dword [esp + 0x64]
cmp edx, dword [eax + 0x8c]
jbe 0x471ea4
call fcn.00419310
mov ecx, dword [esp + 0x70]
cmp ecx, dword [eax + 0x98]
ja 0x471eab
jb 0x471ea4
mov edx, dword [esp + 0x6c]
cmp edx, dword [eax + 0x94]
ja 0x471eab
mov byte [esi + 0x21c], 1
cmp byte [esi + 0x21c], bl
je 0x471ecd
call fcn.00419310
mov eax, dword [eax + 0xac]
push eax
call fcn.00419310
mov ecx, dword [eax + 0xa4]
push ecx
jmp 0x471ee5
call fcn.00419310
mov edx, dword [eax + 0xac]
push edx
call fcn.00419310
mov eax, dword [eax + 0x9c]
push eax
call fcn.004abe30
add esp, 8
call fcn.00419310
mov ecx, dword [eax + 0xac]
push ecx
push ebx
push 0x68c820
call fcn.004c16f0
mov edx, dword [esp + 0xd8]
add esp, 0xc
push ebx
push 0xa00000
push edi
push edx
mov dword [0x78c820], ebx
mov dword [0x78c824], ebx
call fcn.004c8e90
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x44], edx
ja 0x471f35
cmp ecx, ebp
jbe 0x471f3c
mov ecx, 1
jmp 0x471f3e
xor ecx, ecx
add eax, ecx
cmp eax, ebp
mov dword [esi + 0x210], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ebp
jbe 0x47217f
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
mov eax, dword [esi + 0x210]
add eax, 0xffffffff
cmp dword [esp + 0x18], eax
mov ebx, 0xa00000
jne 0x471f96
mov ebx, dword [esp + 0xcc]
imul eax, eax, 0xa00000
sub ebx, eax
mov edi, dword [esp + 0x3c]
cmp edi, ebp
mov al, byte [esp + 0x17]
mov byte [esp + 0x30], 0
mov byte [esp + 0x48], al
je 0x47203f
mov ecx, edi
call fcn.004402a0
cmp eax, dword [esp + 0x18]
jbe 0x47203f
mov eax, dword [edi + 4]
test eax, eax
je 0x471fe3
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x471fe8
call fcn.004c000c
mov eax, dword [edi + 4]
add eax, dword [esp + 0x2c]
je 0x47203f
mov ebp, dword [eax + 0xc]
movzx eax, word [eax + 0x18]
movzx ecx, ax
cmp cx, 3
je 0x472018
movzx ecx, ax
cmp cx, 5
je 0x472018
movzx eax, ax
cmp ax, 0x1000
mov byte [esp + 0x30], 0
jne 0x47201d
mov byte [esp + 0x30], 1
cmp dword [esi + 0x214], 1
jne 0x47203f
cmp byte [esp + 0x17], 0
jne 0x47203f
mov ecx, dword [esp + 0x34]
cmp ebp, ebx
lea edx, [ecx + ebp]
setb byte [esp + 0x17]
mov dword [esp + 0x40], edx
push 0xe2
call fcn.004aef0e
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
xor eax, eax
cmp edi, eax
mov byte [esp + 0xa4], 5
je 0x4720b6
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x8c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 7
push eax
mov word [ecx + 4], ax
lea eax, [esp + 0xf4]
push eax
call fcn.00401640
push esi
mov ecx, edi
call fcn.004ab6a0
mov edi, eax
jmp 0x4720b8
xor edi, edi
movzx ecx, byte [esi + 0x21c]
push ecx
mov ecx, edi
mov byte [esp + 0xa8], 4
mov dword [esp + 0x3c], edi
call fcn.004a9530
mov eax, dword [esi + 0x22a]
test eax, eax
jne 0x4720e1
xor edx, edx
jmp 0x4720ec
mov edx, dword [esi + 0x22e]
sub edx, eax
sar edx, 2
test eax, eax
je 0x472112
mov ecx, dword [esi + 0x232]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x472112
mov eax, dword [esi + 0x22e]
mov dword [eax], edi
add eax, 4
mov dword [esi + 0x22e], eax
jmp 0x472138
mov edi, dword [esi + 0x22e]
cmp eax, edi
jbe 0x472121
call fcn.004c000c
lea edx, [esp + 0x38]
push edx
push edi
lea ecx, [esi + 0x226]
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.004112d0
xor eax, eax
add dword [esp + 0x24], ebx
adc dword [esp + 0x28], eax
cmp dword [esi + 0x214], 1
jne 0x472151
add dword [esp + 0x1c], ebp
jmp 0x472155
add dword [esp + 0x1c], ebx
adc dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x2c], 0x2c
add dword [esp + 0x34], 0xa00000
add eax, 1
xor ebp, ebp
cmp eax, dword [esi + 0x210]
mov dword [esp + 0x18], eax
jb 0x471f73
mov eax, dword [esp + 0xb4]
mov edi, 8
cmp dword [esp + 0xc8], edi
jae 0x47219b
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
mov byte [esi + 0x26e], al
je 0x4721e6
cmp dword [esi + 0x204], edi
jb 0x4721c1
mov eax, dword [esi + 0x1f0]
jmp 0x4721c7
lea eax, [esi + 0x1f0]
push ebp
push 0x10000000
push 3
push ebp
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x2a6], eax
jmp 0x4721f0
mov dword [esi + 0x2a6], 0xffffffff
cmp dword [esi + 0x214], 1
jne 0x472239
cmp byte [esp + 0x17], 0
je 0x472239
mov eax, dword [esi + 0x2a6]
cmp eax, 0xffffffff
je 0x472239
mov edx, dword [esp + 0x40]
push ebp
lea ecx, [esp + 0x28]
push ecx
xor ecx, ecx
push ecx
push edx
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x472239
mov eax, dword [esi + 0x2a6]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call fcn.00419310
cmp dword [eax + 0x154], ebp
jne 0x472262
mov eax, dword [esi + 0x2a6]
cmp eax, 0xffffffff
je 0x472262
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2a6], 0xffffffff
lea ecx, [esi + 0x2aa]
push ecx
lea ecx, [esi + 0x282]
call fcn.004113f0
push 1
mov ecx, esi
call fcn.0040ca60
cmp dword [esp + 0xc8], edi
jb 0x472296
mov edx, dword [esp + 0xb4]
push edx
call fcn.004aef39
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x30