Function at 0x5d7550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 4], 0
jne 0x5d7588
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
test ecx, ecx
jl 0x5d75e2
jg 0x5d759d
test eax, eax
jb 0x5d75e2
cmp byte [ebx + 0x36], 0
jne 0x5d75e2
cmp eax, dword [ebx + 0x18]
jne 0x5d75ad
cmp ecx, dword [ebx + 0x1c]
je 0x5d75ee
push 0x28
push str.E_jp2.cpp_
lea ecx, [ebp - 0x34]
call fcn.005b0a70
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
push 0x6b02f0
mov dword [ebp - 4], 0
call dword [eax + 8]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.005b0cb0
jmp 0x5d75ee
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0xc], 0
push esi
jne 0x5d7616
cmp dword [ebx + 0x10], 0
jne 0x5d7616
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x5d760b
push eax
call fcn.004b28c1
add esp, 4
mov word [ebx + 0x35], 0
jmp 0x5d76b7
cmp byte [ebx + 0x35], 0
jne 0x5d76c5
mov ecx, ebx
mov byte [ebx + 0x35], 1
call fcn.005dff60
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x5d76c5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x5d7652
mov eax, dword [ecx]
push dword [ebx + 0x18]
push edx
mov eax, dword [eax + 0x10]
call eax
test al, al
sete al
mov byte [ebx + 0x34], al
jmp 0x5d76ac
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5d7679
push eax
push dword [ebx + 0x18]
push 1
push edx
call fcn.00636939
mov ecx, dword [ebx + 0xc]
add esp, 0x10
cmp eax, dword [ebx + 0x18]
setne al
mov byte [ebx + 0x34], al
jmp 0x5d76a0
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x5d769a
mov eax, dword [esi]
mov ecx, esi
push dword [ebx + 0x18]
push edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebx + 0xc]
test al, al
sete al
mov byte [ebx + 0x34], al
jmp 0x5d76a0
cmp byte [ecx + 0x10], 0
je 0x5d76ac
mov eax, dword [ebx + 0x18]
add dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x1c]
adc dword [ecx + 0x1c], eax
push dword [ebx + 0x30]
call fcn.004b28c1
add esp, 4
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x14], 0
cmp byte [ebx + 0x36], 0
je 0x5d77b7
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5d77b7
mov ecx, dword [eax + 8]
push edi
test ecx, ecx
je 0x5d7752
push ecx
call fcn.004c4c46
mov edx, dword [ebx + 0xc]
mov esi, dword [edx + 0x18]
mov ecx, esi
sub ecx, dword [ebx + 0x20]
mov edi, dword [edx + 0x1c]
mov eax, edi
sbb eax, dword [ebx + 0x24]
sub ecx, 0x10
mov dword [edx + 0x18], ecx
sbb eax, 0
mov dword [edx + 0x1c], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 8]
call fcn.006366c6
add esp, 0xc
mov ecx, ebx
call fcn.005dff60
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], edi
push dword [eax + 8]
call fcn.006366c6
mov eax, dword [ebx + 0xc]
add esp, 8
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], edi
jmp 0x5d77b6
cmp dword [eax + 0xc], 0
je 0x5d77b6
mov edi, dword [eax + 0x18]
mov ecx, edi
mov ebx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x14]
mov esi, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
add esi, 0x10
mov eax, ebx
adc edx, 0
sub ecx, esi
mov dword [edi + 0x18], ecx
mov ecx, edi
sbb eax, edx
push edx
push esi
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.005dff60
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0x1c]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], ebx
mov ebx, esi
pop edi
cmp byte [ebx + 8], 0
mov dword [ebx + 4], 0
pop esi
je 0x5d77d0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5d77d0
mov byte [eax + 0x20], 1
cmp byte [ebx + 0x34], 0
mov ecx, dword [ebp - 0xc]
sete al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret