Function at 0x10d0bc1
Capabilities:
Clear file content

Disassembly:
push 0x10
mov eax, 0x11b9a7e
call fcn.010aa5f6
mov esi, ecx
push 0x104
lea ecx, [ebp - 0x18]
call fcn.01081fbb
xor ebx, ebx
push 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.01081fbb
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 4], 2
cmp dword [esi + 0x44], ebx
jne 0x10d0c27
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x14]
call fcn.010ceec5
lea ecx, [ebp - 0x1c]
call fcn.0107d6e4
lea ecx, [ebp - 0x18]
call fcn.0107d6e4
xor al, al
call fcn.010aa6e2
ret 0x28
cmp dword [esi + 0x40], 0xffffffff
je 0x10d0c34
mov ecx, esi
call fcn.010cfc28
mov eax, dword [esi + 0x50]
cmp byte [eax], bl
je 0x10d0c7c
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10d0c4a
lea edi, [eax + 0x90]
jmp 0x10d0c4c
xor edi, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x1ac
push 0x247
push 0x1015400
call fcn.010b32f7
push eax
push edi
call fcn.01084781
push eax
call fcn.010855f6
add esp, 0x28
push 1
push dword [ebp + 0x18]
lea eax, [ebp - 0xd]
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.010d004e
test al, al
je 0x10d0c05
cmp byte [ebp - 0xd], bl
jne 0x10d0cad
push 0x2010004
jmp 0x10d0bff
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x1015538
push 0x1008688
call fcn.010ac155
test eax, eax
jne 0x10d0c05
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.01097a4d
push 0x1c
lea ecx, [ebp - 0x14]
mov byte [esi + 0x58], 1
call fcn.010cf8e2
test al, al
je 0x10d0c05
push ebx
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov byte [esi + 0x58], bl
call fcn.010cfc76
mov byte [esi + 0x58], 1
cmp al, bl
je 0x10d0c05
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call fcn.010cf9c8
test al, al
je 0x10d0c05
cmp byte [ebp + 0xb], bl
je 0x10d0d3e
mov ecx, esi
call fcn.010cf7b6
test al, al
jne 0x10d0d3e
push 0x2010005
jmp 0x10d0bff
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push eax
push ecx
push dword [esi + 0x40]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10d0c05
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10d0d76
push 0x201000a
jmp 0x10d0bff
mov ecx, esi
cmp byte [ebp + 0x28], bl
je 0x10d0da0
push dword [ebp + 0x20]
push dword [ebp + 0x2c]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.010d0378
test al, al
jne 0x10d0ddc
push 0x2010002
jmp 0x10d0bff
mov edi, dword [ebp + 0x1c]
push edi
lea eax, [ebp + 0x2b]
push eax
call fcn.010d0103
test al, al
je 0x10d0c05
cmp byte [ebp + 0x2b], bl
jne 0x10d0dce
push dword [ebp + 0x20]
mov ecx, dword [edi + 4]
push dword [ebp + 0x2c]
mov eax, dword [edi]
push 1
push edi
push ecx
push eax
mov ecx, esi
jmp 0x10d0d8d
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetFileValidData]
test eax, eax
jne 0x10d0e1a
mov eax, dword [esi + 0x50]
cmp byte [eax], bl
je 0x10d0e1a
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10d0e04
add eax, 0x90
jmp 0x10d0e06
xor eax, eax
push 0x10154a0
push eax
call fcn.01084781
push eax
call fcn.010855f6
add esp, 0xc
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x40], 0xffffffff
lea ecx, [ebp - 0x14]
mov byte [esi + 0x4d], bl
call fcn.010ceec5
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
mov ecx, esi
call fcn.010cf553
test eax, eax
jne 0x10d0c05
push dword [ebp + 0x24]
lea eax, [ebp - 0x18]
push 0xc0000000
push eax
mov ecx, esi
mov byte [esi + 0x58], bl
call fcn.010cfc76
mov byte [esi + 0x58], 1
cmp al, bl
je 0x10d0c05
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call fcn.010cf9c8
test al, al
je 0x10d0c05
cmp byte [ebp + 0xb], bl
je 0x10d0eab
push 0x2010006
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x14]
call fcn.010ceec5
lea ecx, [ebp - 0x1c]
call fcn.0107d6e4
lea ecx, [ebp - 0x18]
call fcn.0107d6e4
mov al, bl
jmp 0x10d0c1f
mov byte [esi + 0x4d], 1
mov bl, 1
jmp 0x10d0e8c