Function at 0x4ea8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2dc0
call fcn.0049d4f0
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.004eaf90
add esp, 4
test eax, eax
jne 0x4ea95e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049ca1b
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 0x4ea992
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049ca1b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2da8]
mov ecx, esi
call fcn.004eb0c0
test eax, eax
jne 0x4ea97c
test byte [ebp - 0x268], 0x21
jne 0x4ea94b
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4ea9be
cmp ax, 8
jne 0x4ea94b
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 0x4ea94b
cmp dword [ebp - 0x28], 0x4034b50
jne 0x4ea94b
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 0x4eaa42
ja 0x4ea94b
cmp edx, dword [ecx]
ja 0x4ea94b
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4eaa87
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 0x4eaafb
test edi, edi
ja 0x4eaa9f
jb 0x4eaa95
cmp ebx, 0x10000
jae 0x4eaa9f
mov eax, ebx
mov dword [ebp - 0x2db0], edi
jmp 0x4eaaac
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 0x4ea94b
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 0x4ead7b
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 0x4eab3d
or ebx, 0xffffffff
jmp 0x4eaf34
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 0x4eac53
mov ecx, dword [ebp - 0x2d9c]
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eac53
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4eabe0
mov eax, dword [ebp - 0x2d7c]
jb 0x4eabd6
cmp eax, esi
jae 0x4eabe0
mov edi, eax
mov dword [ebp - 0x2d68], edx
jmp 0x4eabe8
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 0x4eab35
mov edx, dword [ebp - 0x2d68]
cmp ecx, edx
jne 0x4eab35
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 0x4eac59
mov ecx, dword [ebp - 0x2d90]
mov eax, esi
mov dword [ebp - 0x2da8], edi
or eax, ebx
je 0x4eac6c
mov eax, 2
jmp 0x4eac6e
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.004ec240
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 0x4ead73
push dword [ebp - 0x2dbc]
push eax
push 1
push dword [ebp - 0x2da0]
call fcn.004bcf11
mov ecx, dword [ebp - 0x2d6c]
add esp, 0x10
cmp eax, ecx
jne 0x4eab35
mov edx, dword [ebp - 0x2da0]
push ecx
mov ecx, dword [ebp - 0x2d88]
call fcn.004edde0
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 0x4eab35
jb 0x4ead53
cmp eax, dword [ebp - 0x24c]
ja 0x4eab35
mov edx, dword [ebp - 0x2d68]
mov ecx, dword [ebp - 0x2d98]
cmp ecx, 1
je 0x4eab80
cmp ecx, 2
je 0x4eab80
jmp 0x4eaddf
mov eax, dword [ebp - 0x2d70]
jmp 0x4ead59
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
je 0x4eadf8
test edx, edx
jne 0x4ea94b
mov edi, dword [ebp - 0x254]
cmp edi, 0xffffffff
ja 0x4ea94b
push dword [ebp - 0x2dbc]
mov ebx, dword [ebp - 0x2d74]
push edi
push 1
push ebx
call fcn.004bcf11
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x4eadd6
cmp ecx, dword [ebp - 0x250]
jne 0x4eadd6
push edi
mov edx, ebx
call fcn.004edde0
add esp, 4
mov dword [ebp - 0x2d88], eax
xor ecx, ecx
jmp 0x4eaddf
or ecx, 0xffffffff
mov dword [ebp - 0x2d98], ecx
test ecx, ecx
jne 0x4eaf2e
mov ecx, dword [ebp - 0x2d70]
mov edx, dword [ebp - 0x2d78]
jmp 0x4eaf03
mov eax, esi
or eax, ebx
je 0x4eaef7
mov eax, dword [ebp - 0x2da0]
mov edi, dword [ebp - 0x2da4]
mov dword [ebp - 0x2d78], eax
mov dword [ebp - 0x2d70], edi
jmp 0x4eae26
mov ecx, dword [ebp - 0x2d9c]
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4eae42
mov eax, dword [ebp - 0x2d7c]
jb 0x4eae3c
cmp eax, esi
jae 0x4eae42
mov esi, eax
mov edi, edx
jmp 0x4eae44
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 0x4eab35
cmp ecx, edi
jne 0x4eab35
mov edx, dword [ebp - 0x2d74]
mov ecx, dword [ebp - 0x2d88]
push esi
call fcn.004edde0
push dword [ebp - 0x2dbc]
mov dword [ebp - 0x2d88], eax
push esi
push 1
push dword [ebp - 0x2d74]
call fcn.004bcf11
add esp, 0x14
xor ecx, ecx
cmp eax, esi
jne 0x4eab35
cmp ecx, edi
jne 0x4eab35
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 0x4eae20
jmp 0x4eaf03
mov edx, dword [ebp - 0x2da0]
mov ecx, dword [ebp - 0x2da4]
cmp ecx, dword [ebp - 0x24c]
jne 0x4eab35
cmp edx, dword [ebp - 0x248]
jne 0x4eab35
mov eax, dword [ebp - 0x2d88]
cmp eax, dword [ebp - 0x25c]
je 0x4eaf2e
or ebx, 0xffffffff
jmp 0x4eaf34
mov ebx, dword [ebp - 0x2d98]
mov esi, dword [ebp - 0x2d9c]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eaf54
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 0x4eaf6a
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.0049ca1b
mov esp, ebp
pop ebp
ret