Function at 0x100a1a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eabe0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
push 0x1027b574
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x3c], vtable.Base::lock::scoped_lock_class_Base::lock::critical_section_.0
mov dword [ebp - 0x38], 0x1027b570
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dl, dl
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.100a1ca0
push 0
push 0
push 2
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
push 0
cmovae eax, dword [ebp - 0x54]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a1b1d
mov dl, 1
lea ecx, [ebp - 0x6c]
call fcn.100a1ca0
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push 0
cmovae eax, dword [ebp - 0x6c]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x58], 8
mov esi, eax
jb 0x100a1b00
push dword [ebp - 0x6c]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
cmp esi, 0xffffffff
je 0x100a1bf0
push 0
lea eax, [ebp - 0x38]
push eax
push 4
push 0x10232224
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a1be9
cmp dword [ebp - 0x38], 4
jne 0x100a1be9
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
push dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a1be9
cmp dword [ebp - 0x38], 0x10
jne 0x100a1be9
mov eax, dword [ebp - 0x70]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x100a1b7d
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.1009f850
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a1be9
cmp dword [ebp - 0x38], 0x10
jne 0x100a1be9
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
mov edx, dword [edi + 0x10]
movdqu xmmword [ebp - 0x34], xmm0
jb 0x100a1bb8
mov edi, dword [edi]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1009f850
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100a1be9
cmp dword [ebp - 0x38], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 8
jb 0x100a1c01
push dword [ebp - 0x54]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
push 0x1027b574
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 0xc