Function at 0x4ee0f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2dc0
call fcn.0049e970
mov eax, dword [0x52e098]
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.004ee7a0
add esp, 4
test eax, eax
jne 0x4ee16e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049de5d
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 0x4ee1a2
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2da8]
mov ecx, esi
call fcn.004ee8d0
test eax, eax
jne 0x4ee18c
test byte [ebp - 0x268], 0x21
jne 0x4ee15b
mov ax, word [ebp - 0x266]
test ax, ax
je 0x4ee1ce
cmp ax, 8
jne 0x4ee15b
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 0x4ee15b
cmp dword [ebp - 0x28], 0x4034b50
jne 0x4ee15b
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 0x4ee252
ja 0x4ee15b
cmp edx, dword [ecx]
ja 0x4ee15b
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4ee297
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 0x4ee30b
test edi, edi
ja 0x4ee2af
jb 0x4ee2a5
cmp ebx, 0x10000
jae 0x4ee2af
mov eax, ebx
mov dword [ebp - 0x2db0], edi
jmp 0x4ee2bc
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 0x4ee15b
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 0x4ee58b
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 0x4ee34d
or ebx, 0xffffffff
jmp 0x4ee744
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 0x4ee463
mov ecx, dword [ebp - 0x2d9c]
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4ee463
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4ee3f0
mov eax, dword [ebp - 0x2d7c]
jb 0x4ee3e6
cmp eax, esi
jae 0x4ee3f0
mov edi, eax
mov dword [ebp - 0x2d68], edx
jmp 0x4ee3f8
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 0x4ee345
mov edx, dword [ebp - 0x2d68]
cmp ecx, edx
jne 0x4ee345
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 0x4ee469
mov ecx, dword [ebp - 0x2d90]
mov eax, esi
mov dword [ebp - 0x2da8], edi
or eax, ebx
je 0x4ee47c
mov eax, 2
jmp 0x4ee47e
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.004efaa0
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 0x4ee583
push dword [ebp - 0x2dbc]
push eax
push 1
push dword [ebp - 0x2da0]
call fcn.004be361
mov ecx, dword [ebp - 0x2d6c]
add esp, 0x10
cmp eax, ecx
jne 0x4ee345
mov edx, dword [ebp - 0x2da0]
push ecx
mov ecx, dword [ebp - 0x2d88]
call fcn.004f1640
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 0x4ee345
jb 0x4ee563
cmp eax, dword [ebp - 0x24c]
ja 0x4ee345
mov edx, dword [ebp - 0x2d68]
mov ecx, dword [ebp - 0x2d98]
cmp ecx, 1
je 0x4ee390
cmp ecx, 2
je 0x4ee390
jmp 0x4ee5ef
mov eax, dword [ebp - 0x2d70]
jmp 0x4ee569
mov eax, dword [ecx + 0x48]
cmp dword [eax + 0x48], 0
je 0x4ee608
test edx, edx
jne 0x4ee15b
mov edi, dword [ebp - 0x254]
cmp edi, 0xffffffff
ja 0x4ee15b
push dword [ebp - 0x2dbc]
mov ebx, dword [ebp - 0x2d74]
push edi
push 1
push ebx
call fcn.004be361
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x4ee5e6
cmp ecx, dword [ebp - 0x250]
jne 0x4ee5e6
push edi
mov edx, ebx
call fcn.004f1640
add esp, 4
mov dword [ebp - 0x2d88], eax
xor ecx, ecx
jmp 0x4ee5ef
or ecx, 0xffffffff
mov dword [ebp - 0x2d98], ecx
test ecx, ecx
jne 0x4ee73e
mov ecx, dword [ebp - 0x2d70]
mov edx, dword [ebp - 0x2d78]
jmp 0x4ee713
mov eax, esi
or eax, ebx
je 0x4ee707
mov eax, dword [ebp - 0x2da0]
mov edi, dword [ebp - 0x2da4]
mov dword [ebp - 0x2d78], eax
mov dword [ebp - 0x2d70], edi
jmp 0x4ee636
mov ecx, dword [ebp - 0x2d9c]
mov edx, dword [ebp - 0x2db0]
cmp edx, ebx
ja 0x4ee652
mov eax, dword [ebp - 0x2d7c]
jb 0x4ee64c
cmp eax, esi
jae 0x4ee652
mov esi, eax
mov edi, edx
jmp 0x4ee654
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 0x4ee345
cmp ecx, edi
jne 0x4ee345
mov edx, dword [ebp - 0x2d74]
mov ecx, dword [ebp - 0x2d88]
push esi
call fcn.004f1640
push dword [ebp - 0x2dbc]
mov dword [ebp - 0x2d88], eax
push esi
push 1
push dword [ebp - 0x2d74]
call fcn.004be361
add esp, 0x14
xor ecx, ecx
cmp eax, esi
jne 0x4ee345
cmp ecx, edi
jne 0x4ee345
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 0x4ee630
jmp 0x4ee713
mov edx, dword [ebp - 0x2da0]
mov ecx, dword [ebp - 0x2da4]
cmp ecx, dword [ebp - 0x24c]
jne 0x4ee345
cmp edx, dword [ebp - 0x248]
jne 0x4ee345
mov eax, dword [ebp - 0x2d88]
cmp eax, dword [ebp - 0x25c]
je 0x4ee73e
or ebx, 0xffffffff
jmp 0x4ee744
mov ebx, dword [ebp - 0x2d98]
mov esi, dword [ebp - 0x2d9c]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x48], 0
jne 0x4ee764
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 0x4ee77a
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.0049de5d
mov esp, ebp
pop ebp
ret