Function at 0x4eaa40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2dc0
call fcn.0049d520
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.004eb0f0
add esp, 4
test eax, eax
jne 0x4eaabe
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049ca2c
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 0x4eaaf2
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049ca2c
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2da8]
mov ecx, esi
call fcn.004eb220
test eax, eax
jne 0x4eaadc
test byte [ebp - 0x268], 0x21
jne 0x4eaaab
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4eab1e
cmp ax, 8
jne 0x4eaaab
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 0x4eaaab
cmp dword [ebp - 0x28], 0x4034b50
jne 0x4eaaab
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 0x4eaba2
ja 0x4eaaab
cmp edx, dword [ecx]
ja 0x4eaaab
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4eabe7
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 0x4eac5b
test edi, edi
ja 0x4eabff
jb 0x4eabf5
cmp ebx, 0x10000
jae 0x4eabff
mov eax, ebx
mov dword [ebp - 0x2db0], edi
jmp 0x4eac0c
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 0x4eaaab
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 0x4eaedb
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 0x4eac9d
or ebx, 0xffffffff
jmp 0x4eb094
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 0x4eadb3
mov ecx, dword [ebp - 0x2d9c]
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eadb3
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4ead40
mov eax, dword [ebp - 0x2d7c]
jb 0x4ead36
cmp eax, esi
jae 0x4ead40
mov edi, eax
mov dword [ebp - 0x2d68], edx
jmp 0x4ead48
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 0x4eac95
mov edx, dword [ebp - 0x2d68]
cmp ecx, edx
jne 0x4eac95
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 0x4eadb9
mov ecx, dword [ebp - 0x2d90]
mov eax, esi
mov dword [ebp - 0x2da8], edi
or eax, ebx
je 0x4eadcc
mov eax, 2
jmp 0x4eadce
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.004ec3a0
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 0x4eaed3
push dword [ebp - 0x2dbc]
push eax
push 1
push dword [ebp - 0x2da0]
call fcn.004bcee1
mov ecx, dword [ebp - 0x2d6c]
add esp, 0x10
cmp eax, ecx
jne 0x4eac95
mov edx, dword [ebp - 0x2da0]
push ecx
mov ecx, dword [ebp - 0x2d88]
call fcn.004edf40
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 0x4eac95
jb 0x4eaeb3
cmp eax, dword [ebp - 0x24c]
ja 0x4eac95
mov edx, dword [ebp - 0x2d68]
mov ecx, dword [ebp - 0x2d98]
cmp ecx, 1
je 0x4eace0
cmp ecx, 2
je 0x4eace0
jmp 0x4eaf3f
mov eax, dword [ebp - 0x2d70]
jmp 0x4eaeb9
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
je 0x4eaf58
test edx, edx
jne 0x4eaaab
mov edi, dword [ebp - 0x254]
cmp edi, 0xffffffff
ja 0x4eaaab
push dword [ebp - 0x2dbc]
mov ebx, dword [ebp - 0x2d74]
push edi
push 1
push ebx
call fcn.004bcee1
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x4eaf36
cmp ecx, dword [ebp - 0x250]
jne 0x4eaf36
push edi
mov edx, ebx
call fcn.004edf40
add esp, 4
mov dword [ebp - 0x2d88], eax
xor ecx, ecx
jmp 0x4eaf3f
or ecx, 0xffffffff
mov dword [ebp - 0x2d98], ecx
test ecx, ecx
jne 0x4eb08e
mov ecx, dword [ebp - 0x2d70]
mov edx, dword [ebp - 0x2d78]
jmp 0x4eb063
mov eax, esi
or eax, ebx
je 0x4eb057
mov eax, dword [ebp - 0x2da0]
mov edi, dword [ebp - 0x2da4]
mov dword [ebp - 0x2d78], eax
mov dword [ebp - 0x2d70], edi
jmp 0x4eaf86
mov ecx, dword [ebp - 0x2d9c]
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4eafa2
mov eax, dword [ebp - 0x2d7c]
jb 0x4eaf9c
cmp eax, esi
jae 0x4eafa2
mov esi, eax
mov edi, edx
jmp 0x4eafa4
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 0x4eac95
cmp ecx, edi
jne 0x4eac95
mov edx, dword [ebp - 0x2d74]
mov ecx, dword [ebp - 0x2d88]
push esi
call fcn.004edf40
push dword [ebp - 0x2dbc]
mov dword [ebp - 0x2d88], eax
push esi
push 1
push dword [ebp - 0x2d74]
call fcn.004bcee1
add esp, 0x14
xor ecx, ecx
cmp eax, esi
jne 0x4eac95
cmp ecx, edi
jne 0x4eac95
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 0x4eaf80
jmp 0x4eb063
mov edx, dword [ebp - 0x2da0]
mov ecx, dword [ebp - 0x2da4]
cmp ecx, dword [ebp - 0x24c]
jne 0x4eac95
cmp edx, dword [ebp - 0x248]
jne 0x4eac95
mov eax, dword [ebp - 0x2d88]
cmp eax, dword [ebp - 0x25c]
je 0x4eb08e
or ebx, 0xffffffff
jmp 0x4eb094
mov ebx, dword [ebp - 0x2d98]
mov esi, dword [ebp - 0x2d9c]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eb0b4
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 0x4eb0ca
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.0049ca2c
mov esp, ebp
pop ebp
ret