Function at 0x10cff1c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10e607c]
and dword [ebp - 0x34], 0
and dword [ebp - 0x44], 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x44]
mov edi, dword [ebp + 0x10]
push dword [esi + 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 4]
xor ebx, ebx
mov bx, word [eax + 0x940]
push ebx
call fcn.0109c546
test ax, ax
je 0x10cff78
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc
call fcn.0107875a
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.0109ca1f
cmp ax, 1
je 0x10cff73
mov cx, word [ebp - 0x20]
xor ebx, ebx
cmp cx, bx
je 0x10cff9f
cmp cx, 5
je 0x10cff9f
mov ax, 0xfdf8
jmp 0x10cff64
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x24]
cmp edx, eax
jb 0x10cffae
mov dword [esi + 0x48], eax
jmp 0x10cffb1
mov dword [esi + 0x48], edx
mov dword [esi + 0x50], ebx
mov word [esi + 0x58], cx
cmp dword [edi + 0x23f8], ebx
jne 0x10cffdf
lea eax, [edi + 4]
push eax
push 0x1013ca0
push 0x1013c8c
push edi
call fcn.010cefc5
cmp eax, ebx
mov dword [edi], eax
jne 0x10cfff4
jmp 0x10d01d2
push ebx
push ebx
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10d01d2
cmp dword [esi + 0x48], 0xf
push 0xf
push esi
jae 0x10d0019
push dword [ebp - 0x40]
call fcn.010cf6a7
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10d00b3
mov ebx, dword [edi + 0x2044]
jmp 0x10d0024
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.010b1c0d
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 0x3c], 0xd
mov dword [ebp - 0x48], eax
xor eax, eax
mov ax, word [ebx + 0xa]
mov dword [ebp - 0x4c], eax
mov al, byte [ebx + 0xe]
mov byte [ebp - 0x35], al
mov byte [ebp - 0x2d], 0
cmp dword [esi + 0x48], 0xc
push 0xc
push esi
jae 0x10d0067
push dword [ebp - 0x40]
call fcn.010cf6a7
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10d00b3
mov ebx, dword [edi + 0x2044]
jmp 0x10d0072
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.010b1c0d
movzx eax, byte [ebp - 0x2d]
mov ecx, dword [ebx + 2]
add dword [ebp - 0x3c], 0xc
mov dword [edi + eax*8 + 0x2084], ecx
movzx eax, byte [ebp - 0x2d]
mov ecx, dword [ebx + 6]
mov dword [edi + eax*8 + 0x2088], ecx
inc byte [ebp - 0x2d]
mov bx, word [ebx + 0xa]
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10d00c7
push dword [ebp - 0x40]
call fcn.010cf6a7
test ax, ax
mov dword [ebp - 0x34], eax
je 0x10d00cc
lea eax, [edi + 4]
push eax
push edi
push edi
call fcn.010cef6b
mov ax, word [ebp - 0x34]
jmp 0x10cff64
call fcn.010b1c0d
add dword [ebp - 0x3c], ebx
cmp dword [esi + 0x48], 2
push 2
push esi
jae 0x10d00f3
push dword [ebp - 0x40]
call fcn.010cf6a7
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10d00b3
mov eax, dword [edi + 0x2044]
mov bx, word [eax]
jmp 0x10d0102
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x38]
mov bx, word [eax + ecx]
call fcn.010b1c0d
add dword [ebp - 0x3c], 2
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10d0122
push dword [ebp - 0x40]
call fcn.010cf6a7
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10d00b3
jmp 0x10d0127
call fcn.010b1c0d
add dword [ebp - 0x3c], ebx
mov ax, word [ebp - 0x3c]
cmp ax, word [ebp - 0x48]
jb 0x10d0046
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi + 0x23f8]
jle 0x10d01b5
push dword [edi]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x2d]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10d01d2
push dword [edi]
push eax
lea eax, [ebp - 0x48]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10d01d2
push dword [edi]
push eax
lea eax, [ebp - 0x4c]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10d01d2
push dword [edi]
push eax
push eax
lea eax, [ebp - 0x35]
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10d01d2
push dword [edi]
movzx eax, byte [ebp - 0x2d]
push eax
lea eax, [edi + 0x2084]
push 8
push eax
call ebx
movzx ecx, byte [ebp - 0x2d]
add esp, 0x10
cmp ecx, eax
jne 0x10d01d2
test byte [ebp - 0x35], 0x30
je 0x10cfff4
push 0
push 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10d01de
mov dword [ebp - 0x34], 0xfffffdf3
jmp 0x10d00b3
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x23f8], eax
jmp 0x10d00be