Function at 0x10003cf0
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 0x10003d45
mov edi, eax
jmp 0x1000406a
movzx eax, word [edi + 4]
xorps xmm0, xmm0
inc ax
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
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
inc ax
mov dword [ebp - 0x30], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
movzx eax, al
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
mov eax, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
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
mov eax, dword [ebp + 0xc]
movzx eax, al
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]
add ax, 3
movzx eax, ax
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
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
mov eax, dword [ebp + 0x10]
movzx eax, al
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
mov eax, dword [ebp + 0x14]
shr eax, 8
movzx eax, al
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
mov eax, dword [ebp + 0x14]
movzx eax, al
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
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
shr eax, 8
movzx eax, al
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]
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
mov eax, dword [ebp + 0x18]
movzx eax, al
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]
cmp byte [edi + 0x28], 0
mov cl, byte [ebp + 0x1c]
jne 0x10003fe8
and cl, 0xef
jmp 0x10003feb
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