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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
push ebx
mov ebx, ecx
push esi
push edi
test al, 1
jne 0x4339fb
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov esi, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x34]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
cmp dword [ebx + 0x1c], 0
jne 0x433a3c
mov eax, dword [0x6c9ac0]
test eax, eax
jne 0x433a39
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x70]
mov ecx, 0x1000
test eax, eax
cmovle eax, ecx
mov dword [0x6c9ac0], eax
mov dword [ebx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
and eax, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x10], ecx
jne 0x433adc
push 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push ecx
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x30], 0
call eax
test eax, eax
jne 0x433acb
mov eax, dword [0x6c9a40]
test al, 1
jne 0x433a95
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x20], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x24]
or edx, eax
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
jmp 0x433e4e
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
xor edi, edi
test byte [ebx + 0x20], 4
jne 0x433b95
push edi
lea esi, [ebp - 0x34]
mov dword [ebp - 0x34], edx
push esi
push ecx
push edx
push dword [ebx]
mov dword [ebp - 0x30], ecx
call eax
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x433a7a
mov esi, dword [ebp + 0x10]
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
cmp esi, eax
jae 0x433b3a
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x433b41
add edi, dword [ebp - 0x10]
add esi, 8
cmp esi, dword [ebp - 0xc]
jb 0x433b11
mov eax, edi
jmp 0x433e4c
mov eax, dword [0x6c9a40]
test al, 1
jne 0x433b5c
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x20], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
or eax, 0xffffffff
or edx, eax
jmp 0x433e4e
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00433570
mov dword [ebp - 0x1c], eax
dec eax
add eax, dword [ebx + 0x1c]
cdq
idiv dword [ebx + 0x1c]
mov dword [ebp - 0x50], eax
lea eax, [eax*8 + 8]
call fcn.005ed890
mov eax, esp
mov dword [ebp - 0x2c], eax
mov esi, eax
lea eax, [edi + 8]
mov dword [ebp - 0x38], eax
cmp edi, eax
jae 0x433bf6
lea ebx, [ebx]
xor ecx, ecx
cmp dword [edi + 4], ecx
jbe 0x433bef
mov eax, dword [edi]
add eax, ecx
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
add ecx, dword [ebx + 0x1c]
cmp ecx, dword [edi + 4]
jb 0x433bd7
mov eax, dword [ebp - 0x38]
add edi, 8
cmp edi, eax
jb 0x433bd0
mov edi, dword [ebp - 0x10]
mov eax, edi
push 0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
sar eax, 0x1f
mov eax, dword [ebp - 0xc]
push 1
push 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
mov esi, ecx
mov eax, dword [ebx + 0x1c]
dec eax
movlpd qword [ebp - 0x24], xmm0
test ecx, eax
je 0x433c5e
mov eax, ecx
cdq
add dword [ebp - 0xc], eax
mov ecx, edx
adc ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x1c]
imul ecx, dword [ebp - 0x50]
jmp 0x433c6a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push ecx
push dword [ebp - 0x2c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFileGather]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x433d62
call edi
cmp eax, 0x3e5
je 0x433cec
mov eax, dword [0x6c9a40]
test al, 1
jne 0x433cae
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call edi
mov dword [ebp - 0x24], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x20], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x433e4e
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x433d5b
mov eax, dword [0x6c9a40]
test al, 1
jne 0x433d1d
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call edi
mov dword [ebp - 0x24], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x20], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x433e4e
cmp dword [ebp - 0x2c], esi
cmovb esi, dword [ebp - 0x2c]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jl 0x433e4a
jg 0x433d81
cmp dword [ebp - 0xc], 0
jbe 0x433e4a
add ebx, 4
cmp dword [ebx + 0x14], 8
jb 0x433d8c
mov ebx, dword [ebx]
push 0
push 0x10000080
push 3
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x433dd3
mov eax, dword [0x6c9a40]
test al, 1
jne 0x433dc7
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
jmp 0x433b62
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
push 0
push edx
push ecx
push eax
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
test eax, eax
jne 0x433dfc
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
jmp 0x433dac
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x433e42
call fcn.00424d70
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 - 0x24], eax
mov edx, dword [edx + 0x18]
call edx
mov byte [ebp - 0x20], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
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 0x433e4e
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
mov eax, esi
xor edx, edx
lea esp, [ebp - 0x84]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 0x14