Function at 0x448a8c
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10038
call fcn.0044f0d0
mov eax, dword [0x470008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10018], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x1001c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x10034], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x10038], eax
mov edi, edx
lea eax, [ebp - 0x1002c]
mov dword [ebp - 0x10030], ecx
push eax
push ecx
mov dword [ebp - 0x10014], ebx
mov dword [ebp - 0x10010], edx
mov dword [ebp - 0x10008], edx
mov dword [ebp - 0x1000c], edx
mov dword [ebp - 0x10020], edx
mov dword [ebp - 0x1002c], edx
mov dword [ebp - 0x10028], edx
call fcn.00449804
mov esi, eax
test esi, esi
js 0x448e1a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
test ecx, ecx
jb 0x448b55
ja 0x448b2b
test eax, eax
je 0x448b55
mov edx, dword [ebp - 0x10028]
mov dword [ebp - 0x10024], edx
cmp ecx, edx
ja 0x448b4d
jb 0x448b47
mov ebx, dword [ebp - 0x1002c]
cmp eax, ebx
jae 0x448b67
mov ebx, eax
mov edx, ecx
jmp 0x448b61
mov ebx, dword [ebp - 0x1002c]
jmp 0x448b67
mov edx, dword [ebp - 0x10028]
mov ebx, dword [ebp - 0x1002c]
mov dword [ebp - 0x10024], edx
push dword [ebp - 0x10034]
mov ecx, dword [ebp - 0x1001c]
xor eax, eax
push dword [ebp - 0x10018]
push dword [ebp - 0x10030]
push 1
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push edx
push ebx
call dword [0x4503dc]
call dword [ebp - 0x1001c]
sub eax, 1
je 0x448baf
sub eax, 1
je 0x448bb8
sub eax, 1
jne 0x448bbb
and dword [ebp - 0x1001c], edi
jmp 0x448bbb
xor eax, eax
inc eax
mov dword [ebp - 0x10010], eax
xor edi, edi
inc edi
push 0
push 0
push dword [ebp - 0x10024]
push ebx
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x448c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448bf9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x448c00
mov esi, 0x80004005
push esi
push 0x460
push str.c:_agent_work18_swix_srclibsdutil_fileutil.cpp
call fcn.00403953
mov ecx, dword [ebp - 0x10008]
mov edx, ecx
mov eax, dword [ebp - 0x10010]
mov ebx, dword [ebp - 0x10014]
mov edi, dword [ebp - 0x10038]
test edi, edi
je 0x448c30
mov dword [edi], eax
test ebx, ebx
je 0x448c39
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f1b3
leave
ret 0x20
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x448c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448c79
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x448c80
mov esi, 0x80004005
push esi
push 0x465
jmp 0x448c06
mov ecx, dword [ebp - 0x10008]
mov edx, ecx
test edi, edi
jne 0x448c18
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x448caa
cmp dword [ebp + 0x14], edi
jne 0x448caa
mov eax, 0x10000
jmp 0x448ce7
cmp edx, dword [ebp + 0x14]
ja 0x448c18
jb 0x448cbd
cmp ecx, edi
jae 0x448c18
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp + 0x14]
sbb ecx, edx
test ecx, ecx
jb 0x448ce1
ja 0x448cd3
cmp eax, 0x10000
jbe 0x448ce1
and dword [ebp - 0x10028], 0
mov eax, 0x10000
jmp 0x448ce7
mov dword [ebp - 0x10028], ecx
push 0
lea ecx, [ebp - 0x10020]
mov dword [ebp - 0x10020], eax
push ecx
push eax
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10030]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448ddb
cmp dword [ebp - 0x10020], 0
je 0x448e09
push dword [ebp - 0x10020]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10018]
call fcn.00449c34
mov ecx, dword [ebp - 0x10008]
mov esi, eax
mov edx, dword [ebp - 0x1000c]
test esi, esi
js 0x448c18
add ecx, dword [ebp - 0x10020]
mov eax, dword [ebp - 0x1001c]
adc edx, 0
mov dword [ebp - 0x10008], ecx
mov dword [ebp - 0x1000c], edx
test eax, eax
je 0x448c9a
push dword [ebp - 0x10034]
push dword [ebp - 0x10018]
push dword [ebp - 0x10030]
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push ecx
push dword [ebp - 0x10024]
mov ecx, eax
push ebx
call dword [0x4503dc]
call dword [ebp - 0x1001c]
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ebp - 0x1000c]
sub eax, 1
je 0x448dd3
sub eax, 1
je 0x448c18
sub eax, 1
jne 0x448c9a
and dword [ebp - 0x1001c], eax
jmp 0x448c9a
xor eax, eax
inc eax
jmp 0x448c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448df2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x448df9
mov esi, 0x80004005
push esi
push 0x46e
push str.c:_agent_work18_swix_srclibsdutil_fileutil.cpp
call fcn.00403953
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ebp - 0x1000c]
jmp 0x448c18
mov ecx, edi
mov edx, ecx
mov eax, ecx
jmp 0x448c24