Function at 0x10003520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a5cf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0x34], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10002f30
test eax, eax
je 0x10003575
mov edi, eax
jmp 0x1000373e
movzx eax, word [edi + 4]
xorps xmm0, xmm0
inc ax
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 2
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 3
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 4
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 5
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 0x18]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [edi + 0x28], 0
mov cl, byte [ebp + 0x1c]
jne 0x100036bc
and cl, 0xef
jmp 0x100036bf
or cl, 0x10
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 6
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, cl
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
add ax, 7
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp + 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
mov dword [ebp - 4], 2
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 0x1c