Function at 0x101c77a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov edx, edi
sub edx, dword [ecx + 0xc]
add esi, 0x17
shr edx, 0xf
mov ecx, edx
imul ecx, ecx, 0x204
lea ecx, [ecx + eax + 0x144]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi - 4]
and esi, 0xfffffff0
dec ecx
cmp esi, ecx
lea edi, [ecx + edi - 4]
mov ebx, dword [edi]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], ebx
jle 0x101c8ae
test bl, 1
jne 0x101c8a7
add ebx, ecx
cmp esi, ebx
jg 0x101c8a7
mov ecx, dword [ebp - 4]
sar ecx, 4
dec ecx
cmp ecx, 0x3f
mov dword [ebp - 8], ecx
jbe 0x101c781
push 0x3f
pop ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jne 0x101c7cc
cmp ecx, 0x20
mov ebx, 0x80000000
jae 0x101c7ad
shr ebx, cl
mov ecx, dword [ebp - 8]
lea ecx, [ecx + eax + 4]
not ebx
and dword [eax + edx*4 + 0x44], ebx
dec byte [ecx]
jne 0x101c7cc
mov ecx, dword [ebp + 8]
and dword [ecx], ebx
jmp 0x101c7cc
add ecx, 0xffffffe0
shr ebx, cl
mov ecx, dword [ebp - 8]
lea ecx, [ecx + eax + 4]
not ebx
and dword [eax + edx*4 + 0xc4], ebx
dec byte [ecx]
jne 0x101c7cc
mov ecx, dword [ebp + 8]
and dword [ecx + 4], ebx
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 4]
mov dword [ecx + 4], ebx
mov ecx, dword [edi + 4]
mov edi, dword [edi + 8]
mov dword [ecx + 8], edi
mov ecx, dword [ebp + 0x10]
sub ecx, esi
add dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x101c895
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
sar edi, 4
dec edi
cmp edi, 0x3f
lea ecx, [ecx + esi - 4]
jbe 0x101c806
push 0x3f
pop edi
mov ebx, dword [ebp - 0xc]
lea ebx, [ebx + edi*8]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ecx + 8], ebx
mov dword [ebx + 4], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 8]
jne 0x101c883
mov cl, byte [edi + eax + 4]
mov byte [ebp + 0x13], cl
inc cl
cmp edi, 0x20
mov byte [edi + eax + 4], cl
jae 0x101c85a
cmp byte [ebp + 0x13], 0
jne 0x101c852
mov ecx, edi
mov ebx, 0x80000000
shr ebx, cl
mov ecx, dword [ebp + 8]
or dword [ecx], ebx
lea eax, [eax + edx*4 + 0x44]
mov ecx, edi
jmp 0x101c87a
cmp byte [ebp + 0x13], 0
jne 0x101c870
lea ecx, [edi - 0x20]
mov ebx, 0x80000000
shr ebx, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 4], ebx
lea eax, [eax + edx*4 + 0xc4]
lea ecx, [edi - 0x20]
mov edx, 0x80000000
shr edx, cl
or dword [eax], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea eax, [edx + esi - 4]
mov dword [eax], ecx
mov dword [ecx + eax - 4], ecx
jmp 0x101c898
mov edx, dword [ebp + 0xc]
lea eax, [esi + 1]
mov dword [edx - 4], eax
mov dword [edx + esi - 8], eax
jmp 0x101c9e3
xor eax, eax
jmp 0x101c9e6
jge 0x101c9e3
mov ebx, dword [ebp + 0xc]
sub dword [ebp + 0x10], esi
lea ecx, [esi + 1]
mov dword [ebx - 4], ecx
lea ebx, [ebx + esi - 4]
mov esi, dword [ebp + 0x10]
sar esi, 4
dec esi
cmp esi, 0x3f
mov dword [ebp + 0xc], ebx
mov dword [ebx - 4], ecx
jbe 0x101c8d9
push 0x3f
pop esi
test byte [ebp - 4], 1
jne 0x101c963
mov esi, dword [ebp - 4]
sar esi, 4
dec esi
cmp esi, 0x3f
jbe 0x101c8f2
push 0x3f
pop esi
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
jne 0x101c93c
cmp esi, 0x20
mov ebx, 0x80000000
jae 0x101c91d
mov ecx, esi
shr ebx, cl
lea esi, [esi + eax + 4]
not ebx
and dword [eax + edx*4 + 0x44], ebx
dec byte [esi]
jne 0x101c939
mov ecx, dword [ebp + 8]
and dword [ecx], ebx
jmp 0x101c939
lea ecx, [esi - 0x20]
shr ebx, cl
lea ecx, [esi + eax + 4]
not ebx
and dword [eax + edx*4 + 0xc4], ebx
dec byte [ecx]
jne 0x101c939
mov ecx, dword [ebp + 8]
and dword [ecx + 4], ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
mov dword [ecx + 4], esi
mov esi, dword [edi + 8]
mov ecx, dword [edi + 4]
mov dword [ecx + 8], esi
mov esi, dword [ebp + 0x10]
add esi, dword [ebp - 4]
mov dword [ebp + 0x10], esi
sar esi, 4
dec esi
cmp esi, 0x3f
jbe 0x101c963
push 0x3f
pop esi
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + esi*8]
mov edi, dword [ecx + 4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edi
mov dword [ecx + 4], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx + 8], ebx
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
jne 0x101c9da
mov cl, byte [esi + eax + 4]
mov byte [ebp + 0xf], cl
inc cl
cmp esi, 0x20
mov byte [esi + eax + 4], cl
jae 0x101c9b1
cmp byte [ebp + 0xf], 0
jne 0x101c9a9
mov ecx, esi
mov edi, 0x80000000
shr edi, cl
mov ecx, dword [ebp + 8]
or dword [ecx], edi
lea eax, [eax + edx*4 + 0x44]
mov ecx, esi
jmp 0x101c9d1
cmp byte [ebp + 0xf], 0
jne 0x101c9c7
lea ecx, [esi - 0x20]
mov edi, 0x80000000
shr edi, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 4], edi
lea eax, [eax + edx*4 + 0xc4]
lea ecx, [esi - 0x20]
mov edx, 0x80000000
shr edx, cl
or dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [eax + ebx - 4], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret