Function at 0x4a1a20
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x78]
call fcn.004a1940
mov eax, dword [ebp - 0x78]
and eax, dword [ebp - 0x74]
cmp eax, 0xffffffff
je 0x4a1a52
mov ecx, dword [ebp - 0x70]
and ecx, dword [ebp - 0x6c]
cmp ecx, 0xffffffff
jne 0x4a1a7a
mov ecx, dword [ebp + 0x14]
call fcn.0045c1a0
mov dword [ebp - 0x10], eax
push 0x16
mov ecx, dword [ebp - 0x10]
call fcn.0048ae70
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x78]
call fcn.004a19b0
mov eax, dword [ebp - 0x14]
jmp 0x4a1cc8
cmp dword [ebp - 0x64], 0
jl 0x4a1bf8
jg 0x4a1a90
cmp dword [ebp - 0x68], 0
jbe 0x4a1bf8
push 0x53
push str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
push 2
push 1
push 0x1000
call fcn.00479d40
add esp, 0x14
push eax
lea ecx, [ebp - 4]
call fcn.004563f0
lea ecx, [ebp - 4]
call fcn.004568d0
movzx edx, al
test edx, edx
jne 0x4a1af0
mov ecx, dword [ebp + 0x14]
call fcn.0045c1a0
mov dword [ebp - 0x18], eax
push 0xc
mov ecx, dword [ebp - 0x18]
call fcn.0045c2e0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 4]
call fcn.004568b0
lea ecx, [ebp - 0x78]
call fcn.004a19b0
mov eax, dword [ebp - 0x1c]
jmp 0x4a1cc8
push 0x8000
mov eax, dword [ebp + 8]
push eax
call fcn.0047d5f0
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x64], 0
jl 0x4a1b1e
jg 0x4a1b15
cmp dword [ebp - 0x68], 0x1000
jb 0x4a1b1e
mov dword [ebp - 8], 0x1000
jmp 0x4a1b24
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 4]
call fcn.00456460
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00488860
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4a1bb1
mov ecx, dword [ebp + 0x14]
call fcn.00477a90
mov dword [ebp - 0x24], eax
push 5
mov ecx, dword [ebp - 0x24]
call fcn.004642b0
movzx eax, al
test eax, eax
je 0x4a1b81
mov ecx, dword [ebp + 0x14]
call fcn.0045c1a0
mov dword [ebp - 0x28], eax
push 0xd
mov ecx, dword [ebp - 0x28]
call fcn.0045c2e0
mov ecx, dword [ebp + 0x14]
call fcn.0045c1a0
mov dword [ebp - 0x2c], eax
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.0048ae70
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 4]
call fcn.004568b0
lea ecx, [ebp - 0x78]
call fcn.004a19b0
mov eax, dword [ebp - 0x30]
jmp 0x4a1cc8
mov eax, dword [ebp - 0xc]
cdq
mov ecx, dword [ebp - 0x68]
sub ecx, eax
mov eax, dword [ebp - 0x64]
sbb eax, edx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jg 0x4a1b04
jl 0x4a1bdb
cmp dword [ebp - 0x68], 0
ja 0x4a1b04
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047d5f0
add esp, 8
lea ecx, [ebp - 4]
call fcn.004568b0
jmp 0x4a1cb6
cmp dword [ebp - 0x64], 0
jg 0x4a1cb6
jl 0x4a1c0e
cmp dword [ebp - 0x68], 0
jae 0x4a1cb6
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004837a0
add esp, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
and eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
jne 0x4a1c5a
mov ecx, dword [ebp + 0x14]
call fcn.0045c1a0
mov dword [ebp - 0x38], eax
push 0
mov ecx, dword [ebp - 0x38]
call fcn.0048ae70
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x78]
call fcn.004a19b0
mov eax, dword [ebp - 0x3c]
jmp 0x4a1cc8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004939e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4a1cb6
mov ecx, dword [ebp + 0x14]
call fcn.00477a90
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.0045c2e0
mov ecx, dword [ebp + 0x14]
call fcn.0045c1a0
mov dword [ebp - 0x48], eax
push 0xd
mov ecx, dword [ebp - 0x48]
call fcn.0045c2e0
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x78]
call fcn.004a19b0
mov eax, dword [ebp - 0x4c]
jmp 0x4a1cc8
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x78]
call fcn.004a19b0
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret