Function at 0x4eaa60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2dc0
call fcn.0049d540
mov eax, dword [0x52a098]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov dword [ebp - 0x2dbc], eax
xor eax, eax
push esi
mov dword [ebp - 0x2d98], eax
mov esi, ecx
mov dword [ebp - 0x2d88], eax
mov dword [ebp - 0x2db4], eax
lea eax, [ebp - 0x274]
push edi
push eax
mov dword [ebp - 0x2da8], edx
mov dword [ebp - 0x2d9c], esi
movlpd qword [ebp - 0x2d94], xmm0
movlpd qword [ebp - 0x2da4], xmm0
call fcn.004eb110
add esp, 4
test eax, eax
jne 0x4eaade
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049ca3f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x254]
mov eax, ebx
mov edi, dword [ebp - 0x250]
or eax, edi
mov dword [ebp - 0x2d70], ebx
mov dword [ebp - 0x2d78], edi
jne 0x4eab12
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049ca3f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2da8]
mov ecx, esi
call fcn.004eb240
test eax, eax
jne 0x4eaafc
test byte [ebp - 0x268], 0x21
jne 0x4eaacb
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4eab3e
cmp ax, 8
jne 0x4eaacb
push 0x1e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x238]
mov eax, dword [esi + 0x38]
push dword [ebp - 0x23c]
push dword [esi + 0x44]
call eax
add esp, 0x14
cmp eax, 0x1e
jne 0x4eaacb
cmp dword [ebp - 0x28], 0x4034b50
jne 0x4eaacb
movzx eax, word [ebp - 0xe]
cdq
mov esi, eax
mov ecx, edx
movzx eax, word [ebp - 0xc]
cdq
add esi, eax
adc ecx, edx
add esi, dword [ebp - 0x23c]
adc ecx, dword [ebp - 0x238]
add esi, 0x1e
mov edx, esi
mov dword [ebp - 0x2d80], esi
adc ecx, 0
add edx, ebx
mov eax, ecx
mov dword [ebp - 0x2d84], ecx
mov ecx, dword [ebp - 0x2d9c]
adc eax, edi
cmp eax, dword [ecx + 4]
jb 0x4eabc2
ja 0x4eaacb
cmp edx, dword [ecx]
ja 0x4eaacb
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4eac07
mov edx, dword [ebp - 0x250]
add eax, esi
xorps xmm0, xmm0
mov dword [ebp - 0x2d7c], ebx
movlpd qword [ebp - 0x2dac], xmm0
mov edi, ebx
mov ebx, dword [ebp - 0x2da8]
mov esi, dword [ebp - 0x2dac]
mov dword [ebp - 0x2d74], eax
mov dword [ebp - 0x2d68], edx
mov dword [ebp - 0x2db0], edx
jmp 0x4eac7b
test edi, edi
ja 0x4eac1f
jb 0x4eac15
cmp ebx, 0x10000
jae 0x4eac1f
mov eax, ebx
mov dword [ebp - 0x2db0], edi
jmp 0x4eac2c
xor esi, esi
mov eax, 0x10000
mov dword [ebp - 0x2db0], esi
push eax
push 1
push dword [ecx + 0x34]
mov dword [ebp - 0x2d7c], eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov dword [ebp - 0x2d74], eax
test eax, eax
je 0x4eaacb
mov ecx, dword [ebp - 0x2d9c]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x250]
mov esi, ebx
movlpd qword [ebp - 0x2dac], xmm0
mov ebx, edi
mov eax, dword [ebp - 0x2da8]
mov edi, dword [ebp - 0x2dac]
mov dword [ebp - 0x2d68], eax
cmp word [ebp - 0x266], 0
mov dword [ebp - 0x2d6c], esi
je 0x4eaefb
mov eax, dword [ecx + 0x28]
push 0x8000
push 1
push dword [ecx + 0x34]
mov dword [ebp - 0x2d64], 0
call eax
add esp, 0xc
mov dword [ebp - 0x2db4], eax
test eax, eax
jne 0x4eacbd
or ebx, 0xffffffff
jmp 0x4eb0b4
mov eax, dword [ebp - 0x2d90]
mov edx, dword [ebp - 0x2d68]
mov dword [ebp - 0x2db8], eax
mov eax, dword [ebp - 0x2d94]
mov dword [ebp - 0x2d90], eax
mov eax, dword [ebp - 0x2da0]
mov dword [ebp - 0x2d78], eax
mov eax, dword [ebp - 0x2da4]
mov dword [ebp - 0x2d70], eax
nop dword [eax]
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ebp - 0x2db4]
and ecx, 0x7fff
add eax, ecx
mov dword [ebp - 0x2da0], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x2d6c], eax
mov eax, edi
or eax, edx
jne 0x4eadd3
mov ecx, dword [ebp - 0x2d9c]
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eadd3
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4ead60
mov eax, dword [ebp - 0x2d7c]
jb 0x4ead56
cmp eax, esi
jae 0x4ead60
mov edi, eax
mov dword [ebp - 0x2d68], edx
jmp 0x4ead68
mov edi, esi
mov dword [ebp - 0x2d68], ebx
mov eax, dword [ecx + 0x38]
push edi
push dword [ebp - 0x2d74]
push dword [ebp - 0x2d84]
push dword [ebp - 0x2d80]
push dword [ecx + 0x44]
call eax
add esp, 0x14
xor ecx, ecx
cmp eax, edi
jne 0x4eacb5
mov edx, dword [ebp - 0x2d68]
cmp ecx, edx
jne 0x4eacb5
add dword [ebp - 0x2d80], edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x2d94], xmm0
adc dword [ebp - 0x2d84], edx
sub esi, edi
mov eax, dword [ebp - 0x2d90]
mov ecx, dword [ebp - 0x2d94]
sbb ebx, edx
mov dword [ebp - 0x2db8], eax
mov dword [ebp - 0x2d90], ecx
jmp 0x4eadd9
mov ecx, dword [ebp - 0x2d90]
mov eax, esi
mov dword [ebp - 0x2da8], edi
or eax, ebx
je 0x4eadec
mov eax, 2
jmp 0x4eadee
xor eax, eax
mov edx, dword [ebp - 0x2d74]
push eax
lea eax, [ebp - 0x2d6c]
push eax
push dword [ebp - 0x2da0]
lea eax, [ebp - 0x2da8]
push dword [ebp - 0x2db4]
lea edx, [ecx + edx]
push eax
lea ecx, [ebp - 0x2d64]
call fcn.004ec3c0
mov ecx, dword [ebp - 0x2da8]
add esp, 0x14
mov edx, dword [ebp - 0x2d68]
sub edi, ecx
mov dword [ebp - 0x2d98], eax
mov eax, dword [ebp - 0x2d6c]
sbb edx, 0
add dword [ebp - 0x2d90], ecx
mov dword [ebp - 0x2d68], edx
adc dword [ebp - 0x2db8], 0
test eax, eax
je 0x4eaef3
push dword [ebp - 0x2dbc]
push eax
push 1
push dword [ebp - 0x2da0]
call fcn.004bcf31
mov ecx, dword [ebp - 0x2d6c]
add esp, 0x10
cmp eax, ecx
jne 0x4eacb5
mov edx, dword [ebp - 0x2da0]
push ecx
mov ecx, dword [ebp - 0x2d88]
call fcn.004edf60
mov ecx, dword [ebp - 0x2d78]
add esp, 4
mov dword [ebp - 0x2d88], eax
mov eax, dword [ebp - 0x2d70]
add eax, dword [ebp - 0x2d6c]
mov dword [ebp - 0x2d70], eax
adc ecx, 0
mov dword [ebp - 0x2d78], ecx
cmp ecx, dword [ebp - 0x248]
ja 0x4eacb5
jb 0x4eaed3
cmp eax, dword [ebp - 0x24c]
ja 0x4eacb5
mov edx, dword [ebp - 0x2d68]
mov ecx, dword [ebp - 0x2d98]
cmp ecx, 1
je 0x4ead00
cmp ecx, 2
je 0x4ead00
jmp 0x4eaf5f
mov eax, dword [ebp - 0x2d70]
jmp 0x4eaed9
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
je 0x4eaf78
test edx, edx
jne 0x4eaacb
mov edi, dword [ebp - 0x254]
cmp edi, 0xffffffff
ja 0x4eaacb
push dword [ebp - 0x2dbc]
mov ebx, dword [ebp - 0x2d74]
push edi
push 1
push ebx
call fcn.004bcf31
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x4eaf56
cmp ecx, dword [ebp - 0x250]
jne 0x4eaf56
push edi
mov edx, ebx
call fcn.004edf60
add esp, 4
mov dword [ebp - 0x2d88], eax
xor ecx, ecx
jmp 0x4eaf5f
or ecx, 0xffffffff
mov dword [ebp - 0x2d98], ecx
test ecx, ecx
jne 0x4eb0ae
mov ecx, dword [ebp - 0x2d70]
mov edx, dword [ebp - 0x2d78]
jmp 0x4eb083
mov eax, esi
or eax, ebx
je 0x4eb077
mov eax, dword [ebp - 0x2da0]
mov edi, dword [ebp - 0x2da4]
mov dword [ebp - 0x2d78], eax
mov dword [ebp - 0x2d70], edi
jmp 0x4eafa6
mov ecx, dword [ebp - 0x2d9c]
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4eafc2
mov eax, dword [ebp - 0x2d7c]
jb 0x4eafbc
cmp eax, esi
jae 0x4eafc2
mov esi, eax
mov edi, edx
jmp 0x4eafc4
mov edi, ebx
mov eax, dword [ecx + 0x38]
push esi
push dword [ebp - 0x2d74]
push dword [ebp - 0x2d84]
push dword [ebp - 0x2d80]
push dword [ecx + 0x44]
call eax
add esp, 0x14
xor ecx, ecx
cmp eax, esi
jne 0x4eacb5
cmp ecx, edi
jne 0x4eacb5
mov edx, dword [ebp - 0x2d74]
mov ecx, dword [ebp - 0x2d88]
push esi
call fcn.004edf60
push dword [ebp - 0x2dbc]
mov dword [ebp - 0x2d88], eax
push esi
push 1
push dword [ebp - 0x2d74]
call fcn.004bcf31
add esp, 0x14
xor ecx, ecx
cmp eax, esi
jne 0x4eacb5
cmp ecx, edi
jne 0x4eacb5
add dword [ebp - 0x2d80], esi
mov ecx, dword [ebp - 0x2d70]
adc dword [ebp - 0x2d84], edi
add ecx, esi
mov edx, dword [ebp - 0x2d78]
adc edx, edi
mov dword [ebp - 0x2d70], ecx
sub dword [ebp - 0x2d6c], esi
mov esi, dword [ebp - 0x2d6c]
mov eax, esi
sbb ebx, edi
mov dword [ebp - 0x2d78], edx
or eax, ebx
jne 0x4eafa0
jmp 0x4eb083
mov edx, dword [ebp - 0x2da0]
mov ecx, dword [ebp - 0x2da4]
cmp ecx, dword [ebp - 0x24c]
jne 0x4eacb5
cmp edx, dword [ebp - 0x248]
jne 0x4eacb5
mov eax, dword [ebp - 0x2d88]
cmp eax, dword [ebp - 0x25c]
je 0x4eb0ae
or ebx, 0xffffffff
jmp 0x4eb0b4
mov ebx, dword [ebp - 0x2d98]
mov esi, dword [ebp - 0x2d9c]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eb0d4
push dword [ebp - 0x2d74]
mov eax, dword [esi + 0x2c]
push dword [esi + 0x34]
call eax
add esp, 8
mov eax, dword [ebp - 0x2db4]
test eax, eax
je 0x4eb0ea
push eax
push dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
call eax
add esp, 8
mov ecx, dword [ebp - 8]
xor eax, eax
test ebx, ebx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0049ca3f
mov esp, ebp
pop ebp
ret