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

Disassembly:
mov eax, 0x109dc62
call fcn.0103c548
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 0x1036be5
call fcn.0104b39a
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 1
jl 0x1036bc7
or dword [ebp - 4], edi
jmp 0x1036d93
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
call fcn.01035f8f
push esi
lea ecx, [ebp - 0x34]
call fcn.01036028
jmp 0x1036ddd
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1036c0a
push ebx
lea eax, [ebp + 0xc]
push eax
push 3
push 0x10048f0
push edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1036c41
call fcn.0104b39a
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 1
jge 0x1036d88
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
call fcn.01035f8f
push esi
lea ecx, [ebp - 0x34]
call fcn.01036028
jmp 0x1036dd6
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.01044cc5
mov esi, eax
cmp esi, ebx
jge 0x1036c8c
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.01035fb6
push esi
lea ecx, [ebp - 0x34]
call fcn.01036028
jmp 0x1036dce
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov esi, 0x10047b0
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x1004724
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.010409e4
mov esi, eax
cmp esi, ebx
jge 0x1036d09
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.01035fb6
push esi
lea ecx, [ebp - 0x34]
call fcn.01036028
lea ecx, [ebp - 0x18]
call fcn.0101cd79
lea ecx, [ebp - 0x24]
call fcn.0101cd79
push dword [ebp + 8]
jmp 0x1036dd7
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x1036d4a
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ebx
call fcn.0101cd79
lea ecx, [ebp - 0x24]
call fcn.0101cd79
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10048a8
call fcn.01035ffe
jmp 0x1036ddd
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 0x1036dc3
call fcn.0104b39a
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 1
jl 0x1036da8
lea ecx, [ebp - 0x18]
call fcn.0101cd79
lea ecx, [ebp - 0x24]
call fcn.0101cd79
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], 0x10048a8
call fcn.01036510
jmp 0x1036ddd
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
call fcn.01035f8f
push esi
lea ecx, [ebp - 0x34]
call fcn.01036028
jmp 0x1036dc6
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x18]
call fcn.0101cd79
lea ecx, [ebp - 0x24]
call fcn.0101cd79
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