Function at 0x10029540
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 0x10055b45
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x280
mov eax, dword [0x1006d050]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1fc], edi
mov eax, dword [ebx + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x224], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x204], eax
mov eax, dword [str.noname]
mov dword [edi + 8], eax
mov ax, word [0x10066190]
mov word [edi + 0xc], ax
mov al, byte [0x10066192]
mov byte [edi + 0xe], al
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 0x14], 0
movups xmmword [edi + 0x18], xmm0
push 0x80
movups xmmword [edi + 0x28], xmm0
push eax
mov word [edi + 0x38], ax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xc4], eax
lea eax, [edi + 0x3c]
push eax
mov dword [ebp - 0x13c], esi
mov word [edi + 0xc8], 0xff00
call fcn.10034580
xor eax, eax
mov dword [edi + 0xd0], 0x1000000
add esp, 0xc
mov byte [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov byte [edi + 0xdc], 0
mov word [edi + 0xdd], ax
mov byte [edi + 0xdf], al
mov word [edi + 0xe4], ax
mov dword [edi + 0xe8], eax
mov dword [edi + 0xec], eax
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], 0x5000000
push 0xc
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], eax
call fcn.10032986
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x108], eax
mov dword [ebp - 4], 0
push 0xc
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
call fcn.10032986
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x110], eax
mov dword [edi + 0x118], 0
mov dword [edi + 0x11c], 0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x148], 0xf
mov byte [edi + 0x134], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x160], 0xf
mov byte [edi + 0x14c], 0
mov dword [edi + 0x164], 0
mov dword [edi + 0x174], 0
mov dword [edi + 0x178], 0xf
mov byte [edi + 0x164], 0
push esi
push str.Loading_custom_script__s...
push 3
call fcn.10024270
mov al, byte [ebx + 0xc]
add esp, 0xc
mov byte [edi + 0xc6], al
mov byte [edi + 0xdc], al
lea eax, [ebp - 0x138]
mov byte [edi + 0xdf], 1
push 0xb8
push 0
push eax
mov byte [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0x100], 0
call fcn.10034580
add esp, 0xc
mov dword [ebp - 0x138], 0x10066100
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x128]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1fc], 0x10
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc8], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xcc], 0x58
movlpd qword [ebp - 0x130], xmm0
call fcn.10018d40
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x13c], eax
lea ecx, [ebp - 0x128]
call fcn.10018ae0
cmp dword [ebx + 0x14], 0
mov byte [ebp - 4], 0xb
je 0x100299c2
mov esi, dword [ebp - 0x204]
test esi, esi
je 0x1002a1fe
cmp byte [esi + 0xdf], 0
je 0x1002a21f
mov eax, dword [esi + 0xf4]
mov dword [edi + 0xf4], eax
cmp byte [esi + 0xdf], 0
mov al, byte [0x10095db8]
je 0x100298b8
mov al, byte [esi + 0x130]
mov ecx, esi
mov byte [edi + 0x130], al
call fcn.10025f00
mov ecx, eax
lea edx, [eax + 1]
mov dword [ebp - 0x1fc], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100298d0
sub eax, dword [ebp - 0x1fc]
push eax
push ecx
lea ecx, [edi + 0x134]
call fcn.1000b290
mov ecx, esi
call fcn.10025f80
mov esi, eax
lea ecx, [esi + 1]
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x100298f6
sub esi, ecx
lea ecx, [edi + 0x14c]
push esi
push eax
call fcn.1000b290
mov esi, dword [ebp - 0x204]
mov ecx, esi
call fcn.10026000
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x1fc], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10029924
sub edx, dword [ebp - 0x1fc]
lea ecx, [edi + 0x164]
push edx
push eax
call fcn.1000b290
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
sub eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [esi + 0xe0]
mov dword [edi + 0x104], esi
add esi, 0x108
mov dword [edi + 0xe0], eax
cmp dword [esi + 4], 0x15555555
mov eax, dword [esi]
mov dword [ebp - 0x1fc], eax
je 0x1002a240
mov dword [ebp - 0x208], esi
mov byte [ebp - 4], 0xc
push 0xc
mov dword [ebp - 0x204], 0
call fcn.10032986
mov edx, dword [ebp - 0x1fc]
add esp, 4
mov dword [eax + 8], edi
inc dword [esi + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
jmp 0x1002a16b
mov byte [ebp - 0x1fc], 0
lea edx, [ebp - 0x13c]
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x4c]
call fcn.10016240
add esp, 4
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x220]
call fcn.100241d0
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000d3b0
lea ecx, [ebp - 0x220]
call fcn.1000aa30
lea ecx, [ebp - 0x4c]
call fcn.100237c0
test al, al
jne 0x10029b4d
mov byte [ebp - 0x1fc], al
lea ecx, [ebp - 0x34]
push dword [ebp - 0x1fc]
call fcn.1002baa0
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x4c]
call fcn.10022d50
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10022a40
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.1000aa30
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
test esi, esi
jne 0x1002a26b
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000c3f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x220]
mov byte [ebp - 0x1fc], 0
mov edx, str..cs4
push dword [ebp - 0x1fc]
call fcn.1000ba90
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x34]
call fcn.10022920
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
call fcn.1000aa30
lea ecx, [ebp - 0x34]
call fcn.100237c0
test al, al
je 0x10029ae3
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
push eax
call fcn.1000afc0
jmp 0x10029b41
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs3
call fcn.1000ba90
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x34]
call fcn.10022920
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
call fcn.1000aa30
lea ecx, [ebp - 0x34]
call fcn.100237c0
test al, al
je 0x1002a24a
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000aa00
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs4
call fcn.1000ba90
add esp, 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x4c]
call fcn.10022d50
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.10022a40
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1000aa30
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
test esi, esi
jne 0x10029bb4
mov dword [edi + 0xf4], 0x4040000
jmp 0x10029c19
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs3
call fcn.1000ba90
add esp, 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x4c]
call fcn.10022d50
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.10022a40
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1000aa30
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
test esi, esi
jne 0x10029c19
mov dword [edi + 0xf4], 0x3000000
cmp dword [edi + 0xf4], 0x5000000
mov esi, dword [ebp - 0x204]
jne 0x10029d0a
test esi, esi
je 0x10029d0a
movzx eax, byte [edi + 0xdf]
mov ecx, esi
imul eax, eax, 0xe0
sub ecx, eax
je 0x10029d0a
mov eax, dword [esi + 0xf4]
lea ecx, [ebp - 0x34]
mov dword [edi + 0xf4], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000c3f0
mov byte [ebp - 4], 0x14
mov eax, dword [edi + 0xf4]
cmp eax, 0x4040000
jne 0x10029c9d
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs4
call fcn.1000ba90
add esp, 4
mov byte [ebp - 4], 0x15
jmp 0x10029cc8
cmp eax, 0x3000000
jne 0x10029cfe
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs3
call fcn.1000ba90
add esp, 4
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x34]
call fcn.10022920
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x14
call fcn.1000aa30
lea ecx, [ebp - 0x34]
call fcn.100237c0
test al, al
je 0x10029cfe
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000aa00
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000a8d0
push ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x17
push ecx
mov ecx, eax
call fcn.1000b820
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x134]
call fcn.10015e40
lea ecx, [ebp - 0x220]
call fcn.1000aea0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000c2d0
push ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x18
push ecx
mov ecx, eax
call fcn.1000b820
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x14c]
call fcn.10015e40
lea ecx, [ebp - 0x220]
call fcn.1000aea0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000aa30
mov al, byte [0x10095db8]
test esi, esi
je 0x10029e03
cmp byte [esi + 0xdf], 0
je 0x10029db2
mov al, byte [esi + 0x130]
mov byte [edi + 0x130], al
cmp byte [esi + 0xdf], 0
jne 0x10029dd6
cmp dword [0x10095e00], 0x10
mov esi, 0x10095dec
cmovae esi, dword [0x10095dec]
jmp 0x10029de4
add esi, 0x164
cmp dword [esi + 0x14], 0x10
jb 0x10029de4
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10029df0
sub ecx, edx
push ecx
push esi
lea ecx, [edi + 0x164]
jmp 0x10029e31
lea ecx, [edi + 0x164]
mov byte [edi + 0x130], al
cmp ecx, 0x10095ef4
je 0x10029e36
cmp dword [0x10095f08], 0x10
mov eax, 0x10095ef4
push dword [0x10095f04]
cmovae eax, dword [0x10095ef4]
push eax
call fcn.1000b290
push 0xb8
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.10034580
add esp, 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x4c]
push eax
call fcn.1000b820
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x1f8]
cmovae eax, dword [ebp - 0x34]
sub esp, 8
push 0x20
push eax
call fcn.100214b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
call fcn.1000aea0
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x1f8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ecx + 0x10], 6
push dword [ecx + 0xc]
call fcn.10016d70
push 2
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.10021710
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x1f8]
call fcn.10021630
push 0
push 0
push 0
mov esi, dword [eax + 8]
lea ecx, [ebp - 0x1f8]
add esi, dword [eax]
call fcn.10021710
cmp byte [ebx + 0xc], 0
je 0x10029f0d
mov eax, dword [0x10093a20]
cmp byte [eax], 0
jne 0x1002a28c
mov byte [eax], 1
mov eax, dword [0x10091be8]
mov dword [0x10093a3c], 0xffffffff
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
jmp 0x10029f1c
push esi
call fcn.10032f11
add esp, 4
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
push 0
push esi
push eax
lea ecx, [ebp - 0x1f8]
call fcn.10021810
or ecx, 0xffffffff
xor edx, edx
test esi, esi
je 0x10029f52
mov eax, dword [edi + 0x10]
movzx eax, byte [edx + eax]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10064280]
mov eax, dword [edi + 0x10]
cmp edx, esi
jb 0x10029f37
lea eax, [ebp - 0x4c]
mov dword [edi + 0xe0], ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000c3f0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x1fc], 0
mov edx, str..cs3
push dword [ebp - 0x1fc]
call fcn.1000ba90
add esp, 4
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x1d
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1fc], 0x284011
call fcn.10022d50
mov ecx, eax
mov eax, 0x284013
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10022a40
test eax, eax
je 0x1002a02d
mov byte [ebp - 0x204], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x204]
mov edx, str..cs4
call fcn.1000ba90
add esp, 4
lea eax, [ebp - 0x294]
mov dword [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1fc], 0x284017
call fcn.10022d50
mov ecx, eax
mov eax, 0x28401f
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x220]
push eax
call fcn.10022a40
mov byte [ebp - 0x1fd], 0
test eax, eax
jne 0x1002a034
mov byte [ebp - 0x1fd], 1
mov eax, dword [ebp - 0x204]
test al, 8
je 0x1002a058
and eax, 0xfffffff7
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x204], eax
call fcn.1000aa30
mov eax, dword [ebp - 0x204]
test al, 4
je 0x1002a076
and eax, 0xfffffffb
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x204], eax
call fcn.1000aa30
mov eax, dword [ebp - 0x204]
test al, 2
je 0x1002a094
and eax, 0xfffffffd
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x204], eax
call fcn.1000aa30
mov eax, dword [ebp - 0x204]
mov dword [ebp - 4], 0x1c
test al, 1
je 0x1002a0a7
lea ecx, [ebp - 0x34]
call fcn.1000aa30
cmp byte [ebp - 0x1fd], 0
je 0x1002a0ed
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
call fcn.1002baa0
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp - 0x7c]
call fcn.10022920
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x1c
call fcn.1000aa30
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000c2d0
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
push ecx
mov ecx, eax
call fcn.1000b820
lea ecx, [ebp - 0x240]
call fcn.1000aa30
mov eax, dword [ebp - 0x54]
lea edx, [edi + 8]
xorps xmm0, xmm0
movq qword [edx], xmm0
test eax, eax
je 0x1002a148
mov ecx, 7
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push ecx
push eax
push edx
call fcn.10033ff0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.1000aea0
lea ecx, [ebp - 0x7c]
call fcn.1000aa30
lea ecx, [ebp - 0x1f8]
call fcn.100212a0
lea ecx, [ebp - 0x4c]
call fcn.1000aa30
mov dword [0x10095db4], edi
lea ecx, [ebp - 0x138]
mov byte [edi + 0xe5], 1
call fcn.100212a0
jmp 0x1002a1dc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10032978
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push str.Trying_to_create_external_thread_from_label_without_parent_thread
lea ecx, [ebp - 0x24c]
call fcn.10022750
push 0x1006b760
lea eax, [ebp - 0x24c]
push eax
call fcn.10033f81
push str.Only_custom_threads_can_spawn_children_threads_from_label
lea ecx, [ebp - 0x258]
call fcn.10022750
push 0x1006b760
lea eax, [ebp - 0x258]
push eax
call fcn.10033f81
push str.list_too_long
call fcn.10031267
push str.File_does_not_exists
lea ecx, [ebp - 0x264]
call fcn.10022750
push 0x1006b760
lea eax, [ebp - 0x264]
push eax
call fcn.10033f81
push str.File_does_not_exists
lea ecx, [ebp - 0x270]
call fcn.10022750
push 0x1006b760
lea eax, [ebp - 0x270]
push eax
call fcn.10033f81
push str.Starting_of_custom_mission_when_other_mission_loaded
lea ecx, [ebp - 0x27c]
call fcn.10022750
push 0x1006b760
lea eax, [ebp - 0x27c]
push eax
call fcn.10033f81
int3