Function at 0x4f7c90
Capabilities:
Clear file content
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x693538]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
test al, 1
jne 0x4f7ce2
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
mov ebx, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x693528
cmp dword [edi + 0x1c], 0
jne 0x4f7d23
mov eax, dword [0x693628]
test eax, eax
jne 0x4f7d20
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x64]
mov ecx, 0x1000
test eax, eax
cmovle eax, ecx
mov dword [0x693628], eax
mov dword [edi + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
and eax, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0x28], edx
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 8], ecx
jne 0x4f7dd7
push 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0
push 0
push dword [edi]
mov dword [ebp - 0x1c], 0
call eax
test eax, eax
jne 0x4f7dc6
mov eax, dword [0x693538]
test al, 1
jne 0x4f7d90
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x14]
or edx, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x693528
jmp 0x4f817d
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], ecx
xor ebx, ebx
test byte [edi + 0x20], 4
jne 0x4f7ed8
push ebx
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], edx
push esi
push ecx
push edx
push dword [edi]
mov dword [ebp - 0x1c], ecx
call eax
test eax, eax
jne 0x4f7e2e
call fcn.0048d0f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push eax
mov dword [ebp - 0x14], eax
mov edx, dword [edx + 0x18]
call edx
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x14]
movq qword [eax], xmm0
mov dword [eax + 8], esi
or eax, 0xffffffff
or edx, eax
jmp 0x4f817d
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea eax, [esi + eax*8]
mov dword [ebp - 0x18], eax
cmp esi, eax
jae 0x4f8179
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [esi + 4]
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f7e70
add ebx, dword [ebp - 8]
add esi, 8
cmp esi, dword [ebp - 0x18]
jb 0x4f7e42
jmp 0x4f8179
mov eax, dword [0x693538]
test al, 1
jne 0x4f7e9f
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x14]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
or eax, 0xffffffff
or edx, eax
jmp 0x4f817d
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
call fcn.004d7540
mov dword [ebp - 0xc], eax
add esp, 8
dec eax
add eax, dword [edi + 0x1c]
cdq
idiv dword [edi + 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [eax*8 + 8]
call fcn.005bea30
mov eax, esp
mov dword [ebp - 0x1c], eax
mov edi, eax
lea eax, [ebx + esi*8]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
cmp ebx, eax
jae 0x4f7f3f
xor ecx, ecx
cmp dword [ebx + 4], ecx
jbe 0x4f7f38
lea ecx, [ecx]
mov eax, dword [ebx]
add eax, ecx
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
add edi, 8
add ecx, dword [esi + 0x1c]
cmp ecx, dword [ebx + 4]
jb 0x4f7f20
mov eax, dword [ebp - 0x44]
add ebx, 8
cmp ebx, eax
jb 0x4f7f16
mov ecx, dword [ebp - 8]
mov eax, ecx
push 0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
sar eax, 0x1f
mov eax, dword [ebp - 0x28]
push 1
push 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi + 0x1c]
xorps xmm0, xmm0
mov edx, dword [ebp - 0xc]
mov ebx, edx
mov dword [ebp - 0x30], eax
movlpd qword [ebp - 0x10], xmm0
lea eax, [ecx - 1]
test edx, eax
je 0x4f7fa8
mov eax, edx
cdq
mov edi, eax
mov eax, edx
add edi, dword [ebp - 0x28]
mov edx, ecx
adc eax, dword [ebp - 8]
imul edx, dword [ebp - 0x2c]
jmp 0x4f7fae
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40]
push eax
push 0
push edx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFileGather]
test eax, eax
jne 0x4f806e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4f804d
mov eax, dword [0x693538]
test al, 1
jne 0x4f800a
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x14], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x30]
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x14]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x4f817d
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4f7fdb
cmp dword [ebp - 0x1c], ebx
cmovb ebx, dword [ebp - 0x1c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jl 0x4f8179
jg 0x4f808b
test edi, edi
je 0x4f8179
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4f8096
mov esi, dword [esi]
push 0
push 0x10000080
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f80f1
mov eax, dword [0x693538]
test al, 1
jne 0x4f80e5
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x4f7ea5
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push 0
push edx
push ecx
push eax
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
test eax, eax
jne 0x4f812b
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
call fcn.0048d0f0
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x4f7e05
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f8171
call fcn.0048d0f0
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov dword [ebp - 0x14], eax
mov edx, dword [edx + 0x18]
call edx
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x14]
push edi
movq qword [eax], xmm0
mov dword [eax + 8], esi
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
or eax, 0xffffffff
or edx, eax
jmp 0x4f817d
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
xor edx, edx
mov eax, ebx
lea esp, [ebp - 0x74]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x14