Function at 0x1037148
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov eax, 0x10a21f2
call fcn.0103cb38
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 6
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 0x28], 0x8007054f
mov dword [esi + 0xa4], 7
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x10371cf
call fcn.0104b97d
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 1
jl 0x10371b1
or dword [ebp - 4], edi
jmp 0x103737d
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
call fcn.0103654c
push esi
lea ecx, [ebp - 0x34]
call fcn.010365e5
jmp 0x10373c7
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10371f4
push ebx
lea eax, [ebp + 0xc]
push eax
push 3
push 0x10048f8
push edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x103722b
call fcn.0104b97d
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 1
jge 0x1037372
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
call fcn.0103654c
push esi
lea ecx, [ebp - 0x34]
call fcn.010365e5
jmp 0x10373c0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
push dword [esi + 0x80]
lea edx, [ebp - 0x24]
xor ecx, ecx
mov byte [ebp - 4], 1
call fcn.01045267
mov esi, eax
cmp esi, ebx
jge 0x1037276
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ebx
call fcn.01036573
push esi
lea ecx, [ebp - 0x34]
call fcn.010365e5
jmp 0x10373b8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov esi, 0x10047c8
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x100473c
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
movsd dword es:[edi], dword [esi]
push 3
push ebx
mov byte [ebp - 4], 2
movsd dword es:[edi], dword [esi]
call fcn.01040fe8
mov esi, eax
cmp esi, ebx
jge 0x10372f3
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ebx
call fcn.01036573
push esi
lea ecx, [ebp - 0x34]
call fcn.010365e5
lea ecx, [ebp - 0x18]
call fcn.0101d150
lea ecx, [ebp - 0x24]
call fcn.0101d150
push dword [ebp + 8]
jmp 0x10373c1
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x1037334
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ebx
call fcn.0101d150
lea ecx, [ebp - 0x24]
call fcn.0101d150
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10048b0
call fcn.010365bb
jmp 0x10373c7
mov edi, dword [ebp + 8]
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10373ad
call fcn.0104b97d
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 1
jl 0x1037392
lea ecx, [ebp - 0x18]
call fcn.0101d150
lea ecx, [ebp - 0x24]
call fcn.0101d150
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10048b0
call fcn.01036afa
jmp 0x10373c7
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
call fcn.0103654c
push esi
lea ecx, [ebp - 0x34]
call fcn.010365e5
jmp 0x10373b0
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x18]
call fcn.0101d150
lea ecx, [ebp - 0x24]
call fcn.0101d150
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8