Function at 0x4f3e20
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 [0x686300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x68f4b8]
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 0x4f3e72
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov ebx, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x68f4a8
cmp dword [edi + 0x1c], 0
jne 0x4f3eb3
mov eax, dword [0x68f5a8]
test eax, eax
jne 0x4f3eb0
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 [0x68f5a8], 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 0x4f3f67
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 0x4f3f56
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4f3f20
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
jmp 0x4f430d
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 0x4f4068
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 0x4f3fbe
call fcn.00489620
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 0x4f430d
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea eax, [esi + eax*8]
mov dword [ebp - 0x18], eax
cmp esi, eax
jae 0x4f4309
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 0x4f4000
add ebx, dword [ebp - 8]
add esi, 8
cmp esi, dword [ebp - 0x18]
jb 0x4f3fd2
jmp 0x4f4309
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4f402f
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
or eax, 0xffffffff
or edx, eax
jmp 0x4f430d
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
call fcn.004d3640
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.005bc090
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 0x4f40cf
xor ecx, ecx
cmp dword [ebx + 4], ecx
jbe 0x4f40c8
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 0x4f40b0
mov eax, dword [ebp - 0x44]
add ebx, 8
cmp ebx, eax
jb 0x4f40a6
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 0x4f4138
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 0x4f413e
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 0x4f41fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4f41dd
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4f419a
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x14], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x4f430d
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 0x4f416b
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 0x4f4309
jg 0x4f421b
test edi, edi
je 0x4f4309
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4f4226
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 0x4f4281
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4f4275
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x4f4035
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 0x4f42bb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
call fcn.00489620
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x4f3f95
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f4301
call fcn.00489620
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 0x4f430d
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.005b7dc4
mov esp, ebp
pop ebp
ret 0x14