Function at 0x1002a530
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 0x10054295
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x280
mov eax, dword [0x1006c050]
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 [0x100651a4]
mov word [edi + 0xc], ax
mov al, byte [0x100651a6]
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.10034c70
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.100330d6
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.100330d6
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.10025410
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.10034c70
add esp, 0xc
mov dword [ebp - 0x138], 0x10064fec
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.10019860
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.10019600
cmp dword [ebx + 0x14], 0
mov byte [ebp - 4], 0xb
je 0x1002a9b2
mov esi, dword [ebp - 0x204]
test esi, esi
je 0x1002b1ee
cmp byte [esi + 0xdf], 0
je 0x1002b20f
mov eax, dword [esi + 0xf4]
mov dword [edi + 0xf4], eax
cmp byte [esi + 0xdf], 0
mov al, byte [0x10094bb8]
je 0x1002a8a8
mov al, byte [esi + 0x130]
mov ecx, esi
mov byte [edi + 0x130], al
call fcn.100268f0
mov ecx, eax
lea edx, [eax + 1]
mov dword [ebp - 0x1fc], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002a8c0
sub eax, dword [ebp - 0x1fc]
push eax
push ecx
lea ecx, [edi + 0x134]
call fcn.1000c130
mov ecx, esi
call fcn.10026970
mov esi, eax
lea ecx, [esi + 1]
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x1002a8e6
sub esi, ecx
lea ecx, [edi + 0x14c]
push esi
push eax
call fcn.1000c130
mov esi, dword [ebp - 0x204]
mov ecx, esi
call fcn.100269f0
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x1fc], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1002a914
sub edx, dword [ebp - 0x1fc]
lea ecx, [edi + 0x164]
push edx
push eax
call fcn.1000c130
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 0x1002b230
mov dword [ebp - 0x208], esi
mov byte [ebp - 4], 0xc
push 0xc
mov dword [ebp - 0x204], 0
call fcn.100330d6
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 0x1002b15b
mov byte [ebp - 0x1fc], 0
lea edx, [ebp - 0x13c]
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x4c]
call fcn.10016d60
add esp, 4
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x220]
call fcn.10025370
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000e2a0
lea ecx, [ebp - 0x220]
call fcn.1000b8f0
lea ecx, [ebp - 0x4c]
call fcn.10024960
test al, al
jne 0x1002ab3d
mov byte [ebp - 0x1fc], al
lea ecx, [ebp - 0x34]
push dword [ebp - 0x1fc]
call fcn.1002c400
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x4c]
call fcn.10023ef0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10023be0
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.1000b8f0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
test esi, esi
jne 0x1002b25b
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000d340
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x220]
mov byte [ebp - 0x1fc], 0
mov edx, str..cs4
push dword [ebp - 0x1fc]
call fcn.1000c9e0
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x34]
call fcn.10023ac0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
call fcn.1000b8f0
lea ecx, [ebp - 0x34]
call fcn.10024960
test al, al
je 0x1002aad3
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.1000be60
jmp 0x1002ab31
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs3
call fcn.1000c9e0
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x34]
call fcn.10023ac0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
call fcn.1000b8f0
lea ecx, [ebp - 0x34]
call fcn.10024960
test al, al
je 0x1002b23a
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000b8c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs4
call fcn.1000c9e0
add esp, 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x4c]
call fcn.10023ef0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.10023be0
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1000b8f0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
test esi, esi
jne 0x1002aba4
mov dword [edi + 0xf4], 0x4040000
jmp 0x1002ac09
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs3
call fcn.1000c9e0
add esp, 4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x4c]
call fcn.10023ef0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, eax
call fcn.10023be0
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1000b8f0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
test esi, esi
jne 0x1002ac09
mov dword [edi + 0xf4], 0x3000000
cmp dword [edi + 0xf4], 0x5000000
mov esi, dword [ebp - 0x204]
jne 0x1002acfa
test esi, esi
je 0x1002acfa
movzx eax, byte [edi + 0xdf]
mov ecx, esi
imul eax, eax, 0xe0
sub ecx, eax
je 0x1002acfa
mov eax, dword [esi + 0xf4]
lea ecx, [ebp - 0x34]
mov dword [edi + 0xf4], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000d340
mov byte [ebp - 4], 0x14
mov eax, dword [edi + 0xf4]
cmp eax, 0x4040000
jne 0x1002ac8d
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs4
call fcn.1000c9e0
add esp, 4
mov byte [ebp - 4], 0x15
jmp 0x1002acb8
cmp eax, 0x3000000
jne 0x1002acee
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
mov edx, str..cs3
call fcn.1000c9e0
add esp, 4
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x34]
call fcn.10023ac0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x14
call fcn.1000b8f0
lea ecx, [ebp - 0x34]
call fcn.10024960
test al, al
je 0x1002acee
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000b8c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000b790
push ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x17
push ecx
mov ecx, eax
call fcn.1000c6c0
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x134]
call fcn.10016a30
lea ecx, [ebp - 0x220]
call fcn.1000bd40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000d220
push ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x18
push ecx
mov ecx, eax
call fcn.1000c6c0
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x14c]
call fcn.10016a30
lea ecx, [ebp - 0x220]
call fcn.1000bd40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.1000b8f0
mov al, byte [0x10094bb8]
test esi, esi
je 0x1002adf3
cmp byte [esi + 0xdf], 0
je 0x1002ada2
mov al, byte [esi + 0x130]
mov byte [edi + 0x130], al
cmp byte [esi + 0xdf], 0
jne 0x1002adc6
cmp dword [0x10094c00], 0x10
mov esi, 0x10094bec
cmovae esi, dword [0x10094bec]
jmp 0x1002add4
add esi, 0x164
cmp dword [esi + 0x14], 0x10
jb 0x1002add4
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ade0
sub ecx, edx
push ecx
push esi
lea ecx, [edi + 0x164]
jmp 0x1002ae21
lea ecx, [edi + 0x164]
mov byte [edi + 0x130], al
cmp ecx, 0x10094e08
je 0x1002ae26
cmp dword [0x10094e1c], 0x10
mov eax, 0x10094e08
push dword [0x10094e18]
cmovae eax, dword [0x10094e08]
push eax
call fcn.1000c130
push 0xb8
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.10034c70
add esp, 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x4c]
push eax
call fcn.1000c6c0
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.10020ca0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
call fcn.1000bd40
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.100179a0
push 2
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.10020f00
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x1f8]
call fcn.10020e20
push 0
push 0
push 0
mov esi, dword [eax + 8]
lea ecx, [ebp - 0x1f8]
add esi, dword [eax]
call fcn.10020f00
cmp byte [ebx + 0xc], 0
je 0x1002aefd
mov eax, dword [0x100937b4]
cmp byte [eax], 0
jne 0x1002b27c
mov byte [eax], 1
mov eax, dword [0x1009197c]
mov dword [0x1008ed94], 0xffffffff
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
jmp 0x1002af0c
push esi
call fcn.10033661
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.10021000
or ecx, 0xffffffff
xor edx, edx
test esi, esi
je 0x1002af42
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 + 0x10063140]
mov eax, dword [edi + 0x10]
cmp edx, esi
jb 0x1002af27
lea eax, [ebp - 0x4c]
mov dword [edi + 0xe0], ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000d340
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x1fc], 0
mov edx, str..cs3
push dword [ebp - 0x1fc]
call fcn.1000c9e0
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.10023ef0
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.10023be0
test eax, eax
je 0x1002b01d
mov byte [ebp - 0x204], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x204]
mov edx, str..cs4
call fcn.1000c9e0
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.10023ef0
mov ecx, eax
mov eax, 0x28401f
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x220]
push eax
call fcn.10023be0
mov byte [ebp - 0x1fd], 0
test eax, eax
jne 0x1002b024
mov byte [ebp - 0x1fd], 1
mov eax, dword [ebp - 0x204]
test al, 8
je 0x1002b048
and eax, 0xfffffff7
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x204], eax
call fcn.1000b8f0
mov eax, dword [ebp - 0x204]
test al, 4
je 0x1002b066
and eax, 0xfffffffb
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x204], eax
call fcn.1000b8f0
mov eax, dword [ebp - 0x204]
test al, 2
je 0x1002b084
and eax, 0xfffffffd
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x204], eax
call fcn.1000b8f0
mov eax, dword [ebp - 0x204]
mov dword [ebp - 4], 0x1c
test al, 1
je 0x1002b097
lea ecx, [ebp - 0x34]
call fcn.1000b8f0
cmp byte [ebp - 0x1fd], 0
je 0x1002b0dd
mov byte [ebp - 0x1fc], 0
lea ecx, [ebp - 0x220]
push dword [ebp - 0x1fc]
call fcn.1002c400
add esp, 4
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp - 0x7c]
call fcn.10023ac0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x1c
call fcn.1000b8f0
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000d220
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
push ecx
mov ecx, eax
call fcn.1000c6c0
lea ecx, [ebp - 0x240]
call fcn.1000b8f0
mov eax, dword [ebp - 0x54]
lea edx, [edi + 8]
xorps xmm0, xmm0
movq qword [edx], xmm0
test eax, eax
je 0x1002b138
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.100346e0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.1000bd40
lea ecx, [ebp - 0x7c]
call fcn.1000b8f0
lea ecx, [ebp - 0x1f8]
call fcn.10020a90
lea ecx, [ebp - 0x4c]
call fcn.1000b8f0
mov dword [0x10094bb4], edi
lea ecx, [ebp - 0x138]
mov byte [edi + 0xe5], 1
call fcn.10020a90
jmp 0x1002b1cc
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.100330c8
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.100238f0
push 0x1006a5d8
lea eax, [ebp - 0x24c]
push eax
call fcn.10034671
push str.Only_custom_threads_can_spawn_children_threads_from_label
lea ecx, [ebp - 0x258]
call fcn.100238f0
push 0x1006a5d8
lea eax, [ebp - 0x258]
push eax
call fcn.10034671
push str.list_too_long
call fcn.100319b7
push str.File_does_not_exists
lea ecx, [ebp - 0x264]
call fcn.100238f0
push 0x1006a5d8
lea eax, [ebp - 0x264]
push eax
call fcn.10034671
push str.File_does_not_exists
lea ecx, [ebp - 0x270]
call fcn.100238f0
push 0x1006a5d8
lea eax, [ebp - 0x270]
push eax
call fcn.10034671
push str.Starting_of_custom_mission_when_other_mission_loaded
lea ecx, [ebp - 0x27c]
call fcn.100238f0
push 0x1006a5d8
lea eax, [ebp - 0x27c]
push eax
call fcn.10034671
int3