Function at 0x441060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x38], edx
mov edx, 1
mov dword [esp + 0x34], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
sub ecx, dword [eax]
sub ecx, 8
sar ecx, 3
sub ecx, esi
je 0x4412c3
mov ebx, dword [edi + 0x10]
dec ecx
mov dword [esp + 0x3c], ecx
test esi, esi
jle 0x4410c7
mov eax, dword [ebx]
lea ecx, [eax + esi*8]
cmp ecx, dword [edi + 8]
jb 0x441107
test esi, esi
jle 0x44116d
mov eax, dword [ebx]
mov ecx, 0x49af08
lea eax, [eax + esi*8]
cmp eax, dword [edi + 8]
cmovb ecx, eax
jmp 0x4411ae
cmp esi, 0xfff0b9d8
jle 0x4410d7
mov eax, dword [edi + 8]
lea ecx, [eax + esi*8]
jmp 0x441107
jne 0x4410e1
mov ecx, dword [edi + 0xc]
add ecx, 0x28
jmp 0x441107
mov eax, dword [ebx]
mov ecx, 0xfff0b9d8
sub ecx, esi
cmp dword [eax + 4], 0x7ff7a516
je 0x4410aa
mov edx, dword [eax]
movzx eax, byte [edx + 6]
cmp ecx, eax
jg 0x4410aa
add edx, 8
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x34]
cmp ecx, 0x49af08
je 0x4410aa
mov ecx, dword [ecx + 4]
mov eax, ecx
and eax, 0x7fffff00
cmp eax, 0x7ff7a500
mov eax, 3
cmovne ecx, eax
and ecx, 0xf
cmp cl, al
jne 0x4410aa
test edx, edx
je 0x441266
push 0
mov edx, esi
mov ecx, edi
call fcn.00425a00
push ecx
movsd qword [esp], xmm0
push 0x49fe88
push dword [esp + 0x44]
call fcn.00427050
add esp, 0x10
test eax, eax
jle 0x441266
mov edx, 1
jmp 0x441268
cmp esi, 0xfff0b9d8
jle 0x44117d
mov eax, dword [edi + 8]
lea ecx, [eax + esi*8]
jmp 0x4411ae
jne 0x441187
mov ecx, dword [edi + 0xc]
add ecx, 0x28
jmp 0x4411ae
mov eax, dword [ebx]
mov ecx, 0xfff0b9d8
sub ecx, esi
cmp dword [eax + 4], 0x7ff7a516
je 0x4411a9
mov edx, dword [eax]
movzx eax, byte [edx + 6]
cmp ecx, eax
jg 0x4411a9
inc ecx
lea ecx, [edx + ecx*8]
jmp 0x4411ae
mov ecx, 0x49af08
mov eax, dword [ecx + 4]
or eax, 0x70
cmp eax, 0x7ff7a574
je 0x441236
mov edx, ecx
mov ecx, edi
call fcn.0042b310
test eax, eax
je 0x4412cf
mov eax, dword [edi + 0xc]
cmp dword [eax + 0xc], 0
jle 0x4411dc
mov ecx, edi
call fcn.00430b00
mov edx, dword [edi + 0x10]
test esi, esi
jle 0x4411f5
mov eax, dword [edx]
mov ecx, 0x49af08
lea eax, [eax + esi*8]
cmp eax, dword [edi + 8]
cmovb ecx, eax
jmp 0x441236
cmp esi, 0xfff0b9d8
jle 0x441205
mov eax, dword [edi + 8]
lea ecx, [eax + esi*8]
jmp 0x441236
jne 0x44120f
mov ecx, dword [edi + 0xc]
add ecx, 0x28
jmp 0x441236
mov edx, dword [edx]
mov ecx, 0xfff0b9d8
sub ecx, esi
cmp dword [edx + 4], 0x7ff7a516
je 0x441231
mov edx, dword [edx]
movzx eax, byte [edx + 6]
cmp ecx, eax
jg 0x441231
inc ecx
lea ecx, [edx + ecx*8]
jmp 0x441236
mov ecx, 0x49af08
mov eax, dword [ecx]
mov ebx, dword [eax + 0xc]
add eax, 0x10
je 0x4412cf
cmp dword [esp + 0x34], 0
je 0x441266
push dword [esp + 0x38]
push ebx
push 1
push eax
call fcn.00470836
add esp, 0x10
cmp eax, ebx
jne 0x441266
mov edx, 1
jmp 0x441268
xor edx, edx
mov ecx, dword [esp + 0x3c]
inc esi
mov dword [esp + 0x34], edx
test ecx, ecx
jne 0x441094
test edx, edx
jne 0x4412c3
call fcn.0045e9ea
mov esi, dword [eax]
mov eax, dword [edi + 8]
push esi
mov dword [eax + 4], 0x7ff7a500
add dword [edi + 8], 8
call fcn.0047183a
add esp, 4
mov edx, eax
mov ecx, edi
call fcn.00425fb0
mov ecx, dword [edi + 8]
mov eax, 3
movd xmm0, esi
cvtdq2pd xmm0, xmm0
movsd qword [ecx], xmm0
add dword [edi + 8], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov edx, esi
mov ecx, edi
call fcn.004278c0
int3