Function at 0x4d94a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
test esi, esi
push ebx
push ebp
push edi
jne 0x4d94b4
lea eax, [esi + 4]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [ecx + 0x10]
shr edx, 1
cmp eax, edx
jb 0x4d94c7
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x10], ebp
je 0x4d99df
mov eax, dword [esi + 4]
mov dl, byte [ebp]
mov ebx, eax
shr ebx, 1
lea edi, [ebx + 2]
cmp edi, 0x7fffffff
mov byte [esp + 0xc], 0xff
mov byte [esp + 0xd], dl
jbe 0x4d951e
mov eax, dword [esi]
test eax, eax
je 0x4d9512
push eax
call fcn.0045da90
add esp, 4
and dword [esi + 4], 1
mov dword [esi], 0
mov eax, 2
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
and eax, 1
cmp edi, ebx
jne 0x4d952c
mov eax, dword [esi]
jmp 0x4d95c4
test eax, eax
je 0x4d954e
mov eax, dword [esi]
push edi
push eax
call fcn.0045d790
mov ecx, dword [esi + 4]
and ecx, 1
lea edx, [edi + edi]
add esp, 8
or ecx, edx
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x4d95c4
mov ebp, 1
cmp edi, ebp
jb 0x4d955d
add ebp, ebp
cmp ebp, edi
jbe 0x4d9557
mov eax, dword [esi]
mov ecx, ebx
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x4d9573
fadd dword [0x6c0a38]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4d9592
mov edx, 1
shl edx, cl
jmp 0x4d9594
xor edx, edx
cmp edx, ebx
jae 0x4d959a
add edx, edx
cmp edx, ebp
je 0x4d95b2
push ebp
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x4d9512
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x10]
and edx, 1
lea ecx, [edi + edi]
or edx, ecx
mov dword [esi + 4], edx
test eax, eax
je 0x4d9512
mov edx, dword [esi]
mov ax, word [esp + 0xc]
add edx, ebx
mov word [edx], ax
cmp dword [esi + 0x10], 0
je 0x4d9628
mov edx, dword [esi + 4]
shr edx, 1
cmp edx, dword [esi + 0x24]
jb 0x4d9628
mov eax, dword [esi + 0x10]
test eax, eax
mov ecx, dword [esi]
je 0x4d9600
push eax
push edx
push 1
push ecx
call fcn.00608896
add esp, 0x10
jmp 0x4d9602
xor eax, eax
mov ecx, dword [esi + 4]
shr ecx, 1
cmp eax, ecx
jne 0x4d9512
mov eax, dword [esi]
test eax, eax
je 0x4d9628
push eax
call fcn.0045da90
add esp, 4
and dword [esi + 4], 1
mov dword [esi], 0
mov dx, word [ebp + 0xc]
add dx, word [ebp + 0x14]
add dx, 2
rol dx, 8
movzx eax, dx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov ebx, eax
shr ebx, 1
lea edi, [ebx + 2]
cmp edi, 0x7fffffff
ja 0x4d94f9
and eax, 1
cmp edi, ebx
jne 0x4d9663
mov eax, dword [esi]
jmp 0x4d96f9
test eax, eax
je 0x4d9685
mov ecx, dword [esi]
push edi
push ecx
call fcn.0045d790
mov edx, dword [esi + 4]
and edx, 1
lea ecx, [edi + edi]
add esp, 8
or edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x4d96f9
mov ebp, 1
cmp edi, ebp
jb 0x4d9696
mov edi, edi
add ebp, ebp
cmp ebp, edi
jbe 0x4d9690
mov eax, dword [esi]
mov edx, ebx
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x4d96ac
fadd dword [0x6c0a38]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4d96cb
mov edx, 1
shl edx, cl
jmp 0x4d96cd
xor edx, edx
cmp edx, ebx
jae 0x4d96d3
add edx, edx
cmp edx, ebp
je 0x4d96eb
push ebp
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x4d9512
mov ecx, dword [esi + 4]
and ecx, 1
lea edx, [edi + edi]
or ecx, edx
mov dword [esi + 4], ecx
test eax, eax
je 0x4d9512
mov eax, dword [esi]
mov cx, word [esp + 0xc]
add eax, ebx
mov word [eax], cx
cmp dword [esi + 0x10], 0
je 0x4d975d
mov edx, dword [esi + 4]
shr edx, 1
cmp edx, dword [esi + 0x24]
jb 0x4d975d
mov eax, dword [esi + 0x10]
test eax, eax
mov ecx, dword [esi]
je 0x4d9735
push eax
push edx
push 1
push ecx
call fcn.00608896
add esp, 0x10
jmp 0x4d9737
xor eax, eax
mov edx, dword [esi + 4]
shr edx, 1
cmp eax, edx
jne 0x4d9512
mov eax, dword [esi]
test eax, eax
je 0x4d975d
push eax
call fcn.0045da90
add esp, 4
and dword [esi + 4], 1
mov dword [esi], 0
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0xc]
test ebp, ebp
mov dword [esp + 0xc], ebp
je 0x4d989e
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov ebx, eax
shr ebx, 1
lea edi, [ebx + ebp]
cmp edi, 0x7fffffff
ja 0x4d94f9
and eax, 1
cmp edi, ebx
jne 0x4d979b
mov eax, dword [esi]
jmp 0x4d9833
test eax, eax
je 0x4d97bd
mov ecx, dword [esi]
push edi
push ecx
call fcn.0045d790
mov ecx, dword [esi + 4]
lea edx, [edi + edi]
and ecx, 1
add esp, 8
or edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x4d9833
mov ebp, 1
cmp edi, ebp
jb 0x4d97cc
add ebp, ebp
cmp ebp, edi
jbe 0x4d97c6
mov eax, dword [esi]
mov edx, ebx
test edx, edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
jge 0x4d97e2
fadd dword [0x6c0a38]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4d9801
mov edx, 1
shl edx, cl
jmp 0x4d9803
xor edx, edx
cmp edx, ebx
jae 0x4d9809
add edx, edx
cmp edx, ebp
je 0x4d9821
push ebp
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x4d9512
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0xc]
lea ecx, [edi + edi]
and edx, 1
or ecx, edx
mov dword [esi + 4], ecx
test eax, eax
je 0x4d9512
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push ebp
push eax
add ecx, ebx
push ecx
call fcn.0060d1b0
add esp, 0xc
cmp dword [esi + 0x10], 0
je 0x4d989e
mov edx, dword [esi + 4]
shr edx, 1
cmp edx, dword [esi + 0x24]
jb 0x4d989e
mov eax, dword [esi + 0x10]
test eax, eax
mov ecx, dword [esi]
je 0x4d9876
push eax
push edx
push 1
push ecx
call fcn.00608896
add esp, 0x10
jmp 0x4d9878
xor eax, eax
mov edx, dword [esi + 4]
shr edx, 1
cmp eax, edx
jne 0x4d9512
mov eax, dword [esi]
test eax, eax
je 0x4d989e
push eax
call fcn.0045da90
add esp, 4
and dword [esi + 4], 1
mov dword [esi], 0
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x14]
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x4d99df
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov ebx, eax
shr ebx, 1
lea edi, [ebx + ebp]
cmp edi, 0x7fffffff
ja 0x4d94f9
and eax, 1
cmp edi, ebx
jne 0x4d98dc
mov eax, dword [esi]
jmp 0x4d9974
test eax, eax
je 0x4d98fe
mov ecx, dword [esi]
push edi
push ecx
call fcn.0045d790
mov ecx, dword [esi + 4]
lea edx, [edi + edi]
and ecx, 1
add esp, 8
or edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x4d9974
mov ebp, 1
cmp edi, ebp
jb 0x4d990d
add ebp, ebp
cmp ebp, edi
jbe 0x4d9907
mov eax, dword [esi]
mov edx, ebx
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x4d9923
fadd dword [0x6c0a38]
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4d9942
mov edx, 1
shl edx, cl
jmp 0x4d9944
xor edx, edx
cmp edx, ebx
jae 0x4d994a
add edx, edx
cmp edx, ebp
je 0x4d9962
push ebp
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x4d9512
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x14]
lea ecx, [edi + edi]
and edx, 1
or ecx, edx
mov dword [esi + 4], ecx
test eax, eax
je 0x4d9512
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push ebp
push eax
add ecx, ebx
push ecx
call fcn.0060d1b0
add esp, 0xc
cmp dword [esi + 0x10], 0
je 0x4d99df
mov edx, dword [esi + 4]
shr edx, 1
cmp edx, dword [esi + 0x24]
jb 0x4d99df
mov eax, dword [esi + 0x10]
test eax, eax
mov ecx, dword [esi]
je 0x4d99b7
push eax
push edx
push 1
push ecx
call fcn.00608896
add esp, 0x10
jmp 0x4d99b9
xor eax, eax
mov edx, dword [esi + 4]
shr edx, 1
cmp eax, edx
jne 0x4d9512
mov eax, dword [esi]
test eax, eax
je 0x4d99df
push eax
call fcn.0045da90
add esp, 4
and dword [esi + 4], 1
mov dword [esi], 0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret