Function at 0x4443a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49411c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
push esi
push edi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc8], esi
push dword [esi]
push str.Checking___s__n
call fcn.004012d0
add esp, 8
cmp dword [esi + 0x34], 0
jne 0x44441e
push str._tno_parent_game_state_n
call fcn.004012d0
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.00403ab0
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movlpd qword [ebp - 0x58], xmm0
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 1
call fcn.004534a0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
sub ecx, edx
je 0x444473
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov esi, dword [ebp - 0x54]
xor al, al
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x29], al
mov dword [ebp - 0x28], esi
test esi, esi
jg 0x44456f
jl 0x444492
cmp edi, ecx
jae 0x4444ae
lea eax, [edi + edx]
mov dword [ebp - 0x20], eax
mov al, byte [eax]
test al, al
je 0x4444ae
cmp dword [ebp - 0x20], 0
je 0x4444ae
test al, al
js 0x4444ae
and al, 0x7f
cmp al, 0x40
je 0x4444e8
test esi, esi
jg 0x44456f
jl 0x4444c0
cmp edi, ecx
jae 0x44456f
mov al, byte [edx + edi]
lea ecx, [edx + edi]
test al, al
je 0x44456f
test ecx, ecx
je 0x44456f
test al, al
js 0x44456f
and al, 0x7f
cmp al, 0x21
jne 0x44456f
lea ecx, [edx + edi]
mov dl, byte [ecx]
test dl, dl
je 0x44456c
test ecx, ecx
je 0x44456c
test dl, dl
js 0x444500
mov eax, 1
jmp 0x444561
mov al, dl
and al, 0xe0
cmp al, 0xc0
jne 0x444518
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x44456c
mov eax, 2
jmp 0x444561
mov al, dl
and al, 0xf0
cmp al, 0xe0
jne 0x444539
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x44456c
mov al, byte [ecx + 2]
and al, 0xc0
cmp al, 0x80
jne 0x44456c
mov eax, 3
jmp 0x444561
and dl, 0xf8
cmp dl, 0xf0
jne 0x44456c
mov al, byte [ecx + 1]
and al, 0xc0
cmp al, 0x80
jne 0x44456c
mov al, byte [ecx + 2]
and al, 0xc0
cmp al, 0x80
jne 0x44456c
mov al, byte [ecx + 3]
and al, 0xc0
cmp al, 0x80
jne 0x44456c
mov eax, 4
add edi, eax
mov dword [ebp - 0x58], edi
adc esi, 0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x28], esi
push 0x40
lea ecx, [ebp - 0x60]
call fcn.00404980
test al, al
je 0x4445cd
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
test esi, esi
jl 0x4445a9
jg 0x444593
test edi, edi
jb 0x4445a9
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
test esi, esi
jg 0x4445a9
jl 0x4445a3
cmp edi, eax
jae 0x4445a9
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], esi
push 0x21
lea ecx, [ebp - 0x60]
call fcn.00404980
test al, al
je 0x4445cd
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x54], eax
jg 0x4445cd
jl 0x4445c9
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x58], eax
jae 0x4445cd
mov byte [ebp - 0x29], 1
test esi, esi
mov esi, dword [ebp - 0x50]
jl 0x4445f2
jg 0x4445da
test edi, edi
jb 0x4445f2
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
sub ecx, esi
test eax, eax
jg 0x4445f2
jl 0x4445ec
cmp edi, ecx
jae 0x4445f2
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
sub eax, esi
cmp dword [ebp - 0x54], 0
jg 0x444d20
jl 0x44460c
cmp dword [ebp - 0x58], eax
jae 0x444d20
mov ecx, dword [ebp - 0x58]
add ecx, esi
cmp byte [ecx], 0
je 0x444d20
call fcn.00469d30
test eax, eax
je 0x444d20
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], 0x40
lea edx, [ebp - 0x14]
mov dword [ebp - 0x94], 0
sub edx, esi
xor eax, eax
mov esi, edx
mov dword [ebp - 0x28], eax
xor ecx, ecx
sar esi, 2
xor edi, edi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x20], edx
test esi, esi
je 0x444695
push esi
lea ecx, [ebp - 0x94]
call fcn.0045e7a0
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x94]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0046c970
mov eax, dword [ebp - 0x8c]
lea ecx, [edi + esi*4]
add esp, 0xc
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x28], eax
sub ecx, edi
mov byte [ebp - 4], 2
sub esp, 0xc
mov dword [ebp - 0x20], ecx
mov esi, esp
mov eax, ecx
sar eax, 2
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test eax, eax
je 0x4446e9
push eax
mov ecx, esi
call fcn.0045e7a0
push dword [ebp - 0x20]
mov esi, dword [esi]
push edi
push esi
call fcn.0046c970
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
lea eax, [esi + eax*4]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x60]
call fcn.00404520
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
test edi, edi
je 0x444754
mov eax, dword [ebp - 0x28]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
cmp ecx, 0x1000
jb 0x444729
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x444d74
mov edi, edx
push ecx
push edi
call fcn.0046b5ea
mov al, byte [ebp - 0x11]
add esp, 8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
test al, al
je 0x444d1d
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], 0x40
lea edx, [ebp - 0x14]
mov dword [ebp - 0xa0], 0
sub edx, esi
xor eax, eax
mov esi, edx
mov dword [ebp - 0x28], eax
xor ecx, ecx
sar esi, 2
xor edi, edi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x20], edx
test esi, esi
je 0x4447ca
push esi
lea ecx, [ebp - 0xa0]
call fcn.0045e7a0
push dword [ebp - 0x20]
mov edi, dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0046c970
mov eax, dword [ebp - 0x98]
lea ecx, [edi + esi*4]
add esp, 0xc
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x28], eax
sub ecx, edi
mov byte [ebp - 4], 3
sub esp, 0xc
mov dword [ebp - 0x20], ecx
mov esi, esp
mov eax, ecx
sar eax, 2
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test eax, eax
je 0x44481e
push eax
mov ecx, esi
call fcn.0045e7a0
push dword [ebp - 0x20]
mov esi, dword [esi]
push edi
push esi
call fcn.0046c970
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
lea eax, [esi + eax*4]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x60]
call fcn.00404620
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
test edi, edi
je 0x444889
mov eax, dword [ebp - 0x28]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
cmp ecx, 0x1000
jb 0x44485e
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x444d74
mov edi, edx
push ecx
push edi
call fcn.0046b5ea
mov al, byte [ebp - 0x11]
add esp, 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
test al, al
je 0x444d07
lea edi, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x40
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xc0], 0
sub eax, edi
xor edx, edx
mov edi, eax
mov dword [ebp - 0x28], edx
xor ecx, ecx
sar edi, 2
xor esi, esi
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edx
test edi, edi
je 0x444920
push edi
lea ecx, [ebp - 0xbc]
call fcn.0045e7a0
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0xbc]
lea eax, [ebp - 0xc4]
push eax
push esi
mov dword [ebp - 0x28], esi
call fcn.0046c970
mov edx, dword [ebp - 0x28]
lea esi, [esi + edi*4]
mov ecx, dword [ebp - 0xb4]
add esp, 0xc
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
xor eax, eax
mov byte [ebp - 4], 4
sub esi, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xa8], eax
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0xb0], 0
sar eax, 2
xor edi, edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x444985
push eax
lea ecx, [ebp - 0xb0]
call fcn.0045e7a0
mov edi, dword [ebp - 0xb0]
push esi
push dword [ebp - 0x24]
push edi
call fcn.0046c970
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x38], eax
sub ecx, edi
mov byte [ebp - 4], 5
sub esp, 0xc
mov dword [ebp - 0x1c], ecx
mov esi, esp
mov eax, ecx
sar eax, 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test eax, eax
je 0x4449d9
push eax
mov ecx, esi
call fcn.0045e7a0
push dword [ebp - 0x1c]
mov esi, dword [esi]
push edi
push esi
call fcn.0046c970
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea eax, [esi + eax*4]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x60]
call fcn.00404000
push edx
push eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x88]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
push eax
call fcn.00403e40
mov byte [ebp - 4], 4
test edi, edi
je 0x444a55
mov eax, dword [ebp - 0x38]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
cmp ecx, 0x1000
jb 0x444a2d
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x444d74
mov edi, edx
push ecx
push edi
call fcn.0046b5ea
add esp, 8
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x74]
mov eax, ecx
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x30], esi
sub eax, esi
jne 0x444a91
mov byte [ebp - 0x11], al
cmp ecx, dword [ebp - 0x70]
je 0x444a7b
mov byte [ecx], al
mov ecx, dword [ebp - 0x74]
inc ecx
mov dword [ebp - 0x74], ecx
jmp 0x444a8b
lea eax, [ebp - 0x11]
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00463560
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x30], esi
mov eax, ecx
sub eax, esi
cmp byte [eax + esi - 1], 0
je 0x444ac7
mov byte [ebp - 0x11], 0
cmp ecx, dword [ebp - 0x70]
je 0x444ab1
mov byte [ecx], 0
mov ecx, dword [ebp - 0x74]
inc ecx
mov dword [ebp - 0x74], ecx
jmp 0x444ac1
lea eax, [ebp - 0x11]
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00463560
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x30], esi
mov edi, dword [ebp - 0x80]
sub ecx, esi
cmp dword [ebp - 0x7c], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x64], 0
jg 0x444b14
jl 0x444ae0
cmp edi, ecx
jae 0x444b14
cmp byte [esi + edi], 0
lea eax, [esi + edi]
je 0x444b14
mov ecx, eax
call fcn.00469d30
cmp eax, 0x21
jne 0x444b14
lea ecx, [esi + edi]
call fcn.00469cb0
cdq
test edx, edx
jl 0x444b10
jg 0x444b08
test eax, eax
je 0x444b10
add edi, eax
mov dword [ebp - 0x80], edi
adc dword [ebp - 0x7c], edx
mov byte [ebp - 0x11], 1
lea eax, [esi + edi]
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x444c2d
xor edi, edi
cmp byte [eax], 0
je 0x444b37
nop dword [eax]
inc edi
cmp byte [edi + eax], 0
jne 0x444b30
add edi, 1
mov esi, eax
mov ecx, edi
mov edx, 0xffffffff
je 0x444b5f
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x4aa840]
sub ecx, 1
jne 0x444b45
mov esi, dword [ebp - 0xc8]
not edx
mov dword [ebp - 0x38], edx
mov eax, dword [esi + 0x34]
mov esi, dword [eax + 0xc1c]
mov eax, dword [eax + 0xc20]
sub eax, esi
sar eax, 2
imul ecx, eax, 0xaaaaaaab
mov eax, edx
xor edx, edx
div ecx
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [edx + edx*2]
mov ecx, dword [esi + eax*4]
mov eax, dword [esi + eax*4 + 4]
sub eax, ecx
mov dword [ebp - 0x3c], ecx
sar eax, 2
imul eax, eax, 0xcccccccd
mov dword [ebp - 0x24], eax
test eax, eax
je 0x444c2a
mov eax, dword [ebp - 0x38]
add ecx, 4
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
nop dword [eax]
cmp dword [ecx - 4], eax
jne 0x444c1c
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, esi
cmp edi, eax
jne 0x444c16
test edi, edi
je 0x444bef
xor edx, edx
test edi, edi
je 0x444bef
mov eax, dword [ebp - 0xcc]
sub esi, eax
mov cl, byte [eax]
cmp cl, byte [esi + eax]
jne 0x444c10
inc edx
inc eax
cmp edx, edi
jb 0x444be2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x30]
lea eax, [eax + eax*4]
movzx edx, dl
cmp dword [ecx + eax*4 + 0x10], 0
mov eax, 1
cmovne edx, eax
jmp 0x444c30
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
inc edx
add ecx, 0x14
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
cmp edx, esi
jb 0x444bc0
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x64]
mov al, dl
xor al, 1
cmp byte [ebp - 0x11], 0
movzx ecx, al
movzx eax, dl
cmove ecx, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
test cl, cl
movzx eax, al
mov ecx, 1
cmove eax, ecx
mov dword [ebp - 0x34], eax
test esi, esi
je 0x444c9e
mov ecx, dword [ebp - 0x70]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x444c7f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x444d74
push ecx
push esi
call fcn.0046b5ea
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test edx, edx
jne 0x444cb1
mov esi, dword [ebp - 0x50]
jmp 0x4445f2
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x444cd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x444d74
push ecx
push edx
call fcn.0046b5ea
mov esi, dword [ebp - 0x50]
add esp, 8
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
jmp 0x4445f2
push str.No_flag_name_found_after_an___in_a_Menu_Name_n
call fcn.004012d0
mov esi, dword [ebp - 0x50]
add esp, 4
mov byte [ebp - 0x34], 1
jmp 0x444d30
mov esi, dword [ebp - 0x50]
cmp byte [ebp - 0x29], 0
je 0x444d30
cmp byte [ebp - 0x34], 0
sete al
mov byte [ebp - 0x34], al
test esi, esi
je 0x444d5d
mov ecx, dword [ebp - 0x48]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x444d53
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x444d74
push ecx
push esi
call fcn.0046b5ea
add esp, 8
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047bdf3
int3