Function at 0x4f4820
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 [0x689300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6924b8]
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 0x4f4872
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
mov ebx, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x6924a8
cmp dword [edi + 0x1c], 0
jne 0x4f48b3
mov eax, dword [0x6925a8]
test eax, eax
jne 0x4f48b0
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 [0x6925a8], 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 0x4f4967
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 0x4f4956
mov eax, dword [0x6924b8]
test al, 1
jne 0x4f4920
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x6924a8
push eax
mov eax, dword [0x6924a8]
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], 0x6924a8
jmp 0x4f4d0d
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 0x4f4a68
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 0x4f49be
call fcn.00489560
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 0x4f4d0d
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea eax, [esi + eax*8]
mov dword [ebp - 0x18], eax
cmp esi, eax
jae 0x4f4d09
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 0x4f4a00
add ebx, dword [ebp - 8]
add esi, 8
cmp esi, dword [ebp - 0x18]
jb 0x4f49d2
jmp 0x4f4d09
mov eax, dword [0x6924b8]
test al, 1
jne 0x4f4a2f
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x6924a8
push eax
mov eax, dword [0x6924a8]
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], 0x6924a8
or eax, 0xffffffff
or edx, eax
jmp 0x4f4d0d
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
call fcn.004d40f0
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.005bca40
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 0x4f4acf
xor ecx, ecx
cmp dword [ebx + 4], ecx
jbe 0x4f4ac8
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 0x4f4ab0
mov eax, dword [ebp - 0x44]
add ebx, 8
cmp ebx, eax
jb 0x4f4aa6
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 0x4f4b38
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 0x4f4b3e
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 0x4f4bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4f4bdd
mov eax, dword [0x6924b8]
test al, 1
jne 0x4f4b9a
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x14], eax
mov ecx, 0x6924a8
push eax
mov eax, dword [0x6924a8]
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], 0x6924a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x4f4d0d
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 0x4f4b6b
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 0x4f4d09
jg 0x4f4c1b
test edi, edi
je 0x4f4d09
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4f4c26
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 0x4f4c81
mov eax, dword [0x6924b8]
test al, 1
jne 0x4f4c75
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x4f4a35
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 0x4f4cbb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
call fcn.00489560
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x4f4995
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f4d01
call fcn.00489560
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 0x4f4d0d
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.005b8774
mov esp, ebp
pop ebp
ret 0x14