Function at 0x4ca0e8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004054dc
xor eax, eax
push ebp
push 0x4ca42e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1a8], 0xffffffff
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xba], 0
jne 0x4ca15d
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x13c]
or al, byte [0x4ca43c]
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x13c], al
mov eax, dword [ebp - 0xc]
add eax, 0x214
mov edx, dword [ebp - 4]
call fcn.0040507c
jmp 0x4ca413
xor edx, edx
push ebp
push 0x4ca3a5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x224]
test eax, eax
je 0x4ca17d
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x4ca197
push 1
lea ecx, [ebp - 0x2e]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x224]
mov eax, dword [ebp - 0xc]
call fcn.004c788c
mov eax, dword [ebp - 0xc]
add eax, 0x214
mov edx, dword [ebp - 4]
call fcn.0040507c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1a8], 0xffffffff
je 0x4ca39b
mov eax, dword [ebp - 0xc]
add eax, 0x1a8
call fcn.004c06c4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004054ec
mov edx, eax
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.004c589c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x168]
call fcn.00405438
jne 0x4ca1fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca413
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ca208
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1ac]
mov edx, 0x22
call fcn.0040a880
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1a8], esi
inc esi
jne 0x4ca243
push 1
mov ecx, 0x2afa
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c1784
call fcn.00404a54
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x220]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a8]
xor edx, edx
call fcn.004bfe4c
cmp edx, 0xffffffff
jne 0x4ca28c
cmp eax, 0xffffffff
jne 0x4ca28c
push 1
mov ecx, 0x2b00
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c1784
call fcn.00404a54
lea edx, [ebp - 0x2e]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a8]
mov ecx, 0x16
call fcn.0040a8d8
cmp eax, 0x16
setne al
cmp dword [ebp - 0x2e], 0x6054b50
setne dl
or al, dl
je 0x4ca2ce
push 1
mov ecx, 0x2b03
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c1784
call fcn.00404a54
mov word [ebp - 0x1a], bx
mov dword [ebp - 0x18], 0xffffffea
mov dword [ebp - 0x14], 0xffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a8]
mov edx, 1
call fcn.004bfe4c
cmp edx, 0xffffffff
jne 0x4ca31b
cmp eax, 0xffffffff
jne 0x4ca31b
push 1
mov ecx, 0x2b00
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c1784
call fcn.00404a54
mov byte [ebp - 0xd], 1
lea edx, [ebp - 0x2e]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a8]
mov ecx, 0x16
call fcn.0040a904
cmp eax, 0x16
je 0x4ca352
push 1
mov ecx, 0x2b16
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c1784
call fcn.00404a54
mov eax, dword [ebp - 8]
call fcn.004054ec
mov edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a8]
mov ecx, ebx
call fcn.0040a904
cmp ebx, eax
je 0x4ca388
push 1
mov ecx, 0x2b02
mov dl, 1
mov eax, dword [0x4c1604]
call fcn.004c1784
call fcn.00404a54
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1a8]
push eax
call sub.kernel32.dll_SetEndOfFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca3f8
mov eax, dword [ebp - 0xc]
add eax, 0x1a8
call fcn.004c06c4
cmp byte [ebp - 0xd], 0
je 0x4ca413
mov eax, dword [ebp - 0xc]
call fcn.004c823c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca435
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040504c
ret