Function at 0x4ee910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2dc0
call fcn.0049f130
mov eax, dword [0x52f098]
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.004eefc0
add esp, 4
test eax, eax
jne 0x4ee98e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049e623
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 0x4ee9c2
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049e623
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2da8]
mov ecx, esi
call fcn.004ef0f0
test eax, eax
jne 0x4ee9ac
test byte [ebp - 0x268], 0x21
jne 0x4ee97b
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4ee9ee
cmp ax, 8
jne 0x4ee97b
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 0x4ee97b
cmp dword [ebp - 0x28], 0x4034b50
jne 0x4ee97b
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 0x4eea72
ja 0x4ee97b
cmp edx, dword [ecx]
ja 0x4ee97b
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4eeab7
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 0x4eeb2b
test edi, edi
ja 0x4eeacf
jb 0x4eeac5
cmp ebx, 0x10000
jae 0x4eeacf
mov eax, ebx
mov dword [ebp - 0x2db0], edi
jmp 0x4eeadc
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 0x4ee97b
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 0x4eedab
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 0x4eeb6d
or ebx, 0xffffffff
jmp 0x4eef64
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 0x4eec83
mov ecx, dword [ebp - 0x2d9c]
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eec83
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4eec10
mov eax, dword [ebp - 0x2d7c]
jb 0x4eec06
cmp eax, esi
jae 0x4eec10
mov edi, eax
mov dword [ebp - 0x2d68], edx
jmp 0x4eec18
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 0x4eeb65
mov edx, dword [ebp - 0x2d68]
cmp ecx, edx
jne 0x4eeb65
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 0x4eec89
mov ecx, dword [ebp - 0x2d90]
mov eax, esi
mov dword [ebp - 0x2da8], edi
or eax, ebx
je 0x4eec9c
mov eax, 2
jmp 0x4eec9e
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.004f02c0
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 0x4eeda3
push dword [ebp - 0x2dbc]
push eax
push 1
push dword [ebp - 0x2da0]
call fcn.004beb51
mov ecx, dword [ebp - 0x2d6c]
add esp, 0x10
cmp eax, ecx
jne 0x4eeb65
mov edx, dword [ebp - 0x2da0]
push ecx
mov ecx, dword [ebp - 0x2d88]
call fcn.004f1e60
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 0x4eeb65
jb 0x4eed83
cmp eax, dword [ebp - 0x24c]
ja 0x4eeb65
mov edx, dword [ebp - 0x2d68]
mov ecx, dword [ebp - 0x2d98]
cmp ecx, 1
je 0x4eebb0
cmp ecx, 2
je 0x4eebb0
jmp 0x4eee0f
mov eax, dword [ebp - 0x2d70]
jmp 0x4eed89
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
je 0x4eee28
test edx, edx
jne 0x4ee97b
mov edi, dword [ebp - 0x254]
cmp edi, 0xffffffff
ja 0x4ee97b
push dword [ebp - 0x2dbc]
mov ebx, dword [ebp - 0x2d74]
push edi
push 1
push ebx
call fcn.004beb51
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x4eee06
cmp ecx, dword [ebp - 0x250]
jne 0x4eee06
push edi
mov edx, ebx
call fcn.004f1e60
add esp, 4
mov dword [ebp - 0x2d88], eax
xor ecx, ecx
jmp 0x4eee0f
or ecx, 0xffffffff
mov dword [ebp - 0x2d98], ecx
test ecx, ecx
jne 0x4eef5e
mov ecx, dword [ebp - 0x2d70]
mov edx, dword [ebp - 0x2d78]
jmp 0x4eef33
mov eax, esi
or eax, ebx
je 0x4eef27
mov eax, dword [ebp - 0x2da0]
mov edi, dword [ebp - 0x2da4]
mov dword [ebp - 0x2d78], eax
mov dword [ebp - 0x2d70], edi
jmp 0x4eee56
mov ecx, dword [ebp - 0x2d9c]
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4eee72
mov eax, dword [ebp - 0x2d7c]
jb 0x4eee6c
cmp eax, esi
jae 0x4eee72
mov esi, eax
mov edi, edx
jmp 0x4eee74
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 0x4eeb65
cmp ecx, edi
jne 0x4eeb65
mov edx, dword [ebp - 0x2d74]
mov ecx, dword [ebp - 0x2d88]
push esi
call fcn.004f1e60
push dword [ebp - 0x2dbc]
mov dword [ebp - 0x2d88], eax
push esi
push 1
push dword [ebp - 0x2d74]
call fcn.004beb51
add esp, 0x14
xor ecx, ecx
cmp eax, esi
jne 0x4eeb65
cmp ecx, edi
jne 0x4eeb65
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 0x4eee50
jmp 0x4eef33
mov edx, dword [ebp - 0x2da0]
mov ecx, dword [ebp - 0x2da4]
cmp ecx, dword [ebp - 0x24c]
jne 0x4eeb65
cmp edx, dword [ebp - 0x248]
jne 0x4eeb65
mov eax, dword [ebp - 0x2d88]
cmp eax, dword [ebp - 0x25c]
je 0x4eef5e
or ebx, 0xffffffff
jmp 0x4eef64
mov ebx, dword [ebp - 0x2d98]
mov esi, dword [ebp - 0x2d9c]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4eef84
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 0x4eef9a
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.0049e623
mov esp, ebp
pop ebp
ret