Function at 0x1001b390
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 0x100492ea
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x1f8
mov eax, dword [0x1005e048]
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 esi, ecx
mov dword [ebp - 0x1b4], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1d8], esi
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0xf4], eax
mov eax, dword [str.noname]
mov dword [esi + 8], eax
mov ax, word [0x10056f44]
mov word [esi + 0xc], ax
movzx eax, byte [0x10056f46]
mov byte [esi + 0xe], al
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0x14], 0
movups xmmword [esi + 0x18], xmm0
push 0x80
movups xmmword [esi + 0x28], xmm0
push eax
mov word [esi + 0x38], ax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xc4], eax
lea eax, [esi + 0x3c]
push eax
mov word [esi + 0xc8], 0xff00
call fcn.10023990
xor eax, eax
mov dword [esi + 0xd0], 0x1000000
add esp, 0xc
mov byte [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov byte [esi + 0xdc], 0
mov word [esi + 0xdd], ax
mov byte [esi + 0xdf], al
mov word [esi + 0xe4], ax
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], eax
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], 0x5000000
push 0xc
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], eax
call fcn.10021c7a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x108], eax
mov dword [ebp - 4], 0
push 0xc
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
call fcn.10021c7a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x134], xmm0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0xf
mov byte [esi + 0x134], 0
movups xmmword [esi + 0x14c], xmm0
mov dword [esi + 0x15c], 0
mov dword [esi + 0x160], 0xf
mov byte [esi + 0x14c], 0
movups xmmword [esi + 0x164], xmm0
mov dword [esi + 0x174], 0
mov dword [esi + 0x178], 0xf
mov byte [esi + 0x164], 0
mov al, byte [ebx + 0xc]
mov byte [ebp - 4], 6
push dword [ebp - 0x1b8]
mov byte [esi + 0xdf], 1
push str.Loading_custom_script__s...
push 3
push 0x10087438
mov byte [esi + 0xc6], al
mov byte [esi + 0xdc], al
mov byte [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
call fcn.1000e100
mov byte [ebp - 0x1b4], 0
lea edx, [ebp - 0xf4]
push dword [ebp - 0x1b4]
lea ecx, [ebp - 0x34]
call fcn.10015e10
add esp, 0x14
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1d4]
call fcn.100133d0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1b4], eax
cmp ecx, eax
je 0x1001b670
call fcn.10003670
mov eax, dword [ebp - 0x1b4]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x1c0]
cmp ecx, 8
jb 0x1001b6b0
mov edx, dword [ebp - 0x1d4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b6a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bbbf
push ecx
push edx
call fcn.10021fc9
add esp, 8
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x34]
call fcn.10003fc0
push ecx
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call fcn.1000cf40
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [esi + 0x134]
call fcn.1000c360
mov ecx, dword [ebp - 0x1c0]
cmp ecx, 0x10
jb 0x1001b71e
mov edx, dword [ebp - 0x1d4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b714
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bbc4
push ecx
push edx
call fcn.10021fc9
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0xf
mov byte [ebp - 0x1d4], 0
cmp ecx, 8
jb 0x1001b77d
mov edx, dword [ebp - 0x1f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b773
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bbc4
push ecx
push edx
call fcn.10021fc9
add esp, 8
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x34]
call fcn.10004090
push ecx
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.1000cf40
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [esi + 0x14c]
call fcn.1000c360
mov ecx, dword [ebp - 0x1c0]
cmp ecx, 0x10
jb 0x1001b7eb
mov edx, dword [ebp - 0x1d4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b7e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bbc9
push ecx
push edx
call fcn.10021fc9
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0xf
mov byte [ebp - 0x1d4], 0
cmp ecx, 8
jb 0x1001b84a
mov edx, dword [ebp - 0x1f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b840
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bbc9
push ecx
push edx
call fcn.10021fc9
add esp, 8
push 2
push 0x10055e30
lea ecx, [esi + 0x164]
call fcn.1000ca50
push 0xb8
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.10023990
mov dword [ebp - 0xf0], 0x10056f28
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
add esp, 8
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x1b4], 0x1102
xorps xmm0, xmm0
mov dword [ebp - 0x80], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x84], 0x58
push eax
movlpd qword [ebp - 0xe8], xmm0
call fcn.1000c920
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xe0]
call fcn.1000f4d0
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x1001b9a6
test edi, edi
je 0x1001bbce
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x10]
sub eax, ecx
mov dword [esi + 0x14], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0xe0]
mov dword [esi + 0x104], edi
add edi, 0x108
mov dword [esi + 0xe0], eax
cmp dword [edi + 4], 0x15555555
mov eax, dword [edi]
mov dword [ebp - 0x1b4], eax
je 0x1001bbef
mov dword [ebp - 0x1bc], edi
mov byte [ebp - 4], 0xf
push 0xc
mov dword [ebp - 0x1b8], 0
call fcn.10021c7a
mov edx, dword [ebp - 0x1b4]
mov ecx, eax
add esp, 4
mov dword [ecx + 8], esi
inc dword [edi + 4]
mov eax, dword [edx + 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [edx + 4], ecx
mov dword [eax], ecx
jmp 0x1001baec
push 0xb8
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.10023990
add esp, 4
lea ecx, [ebp - 0x1b0]
push 0x20
push dword [ebp - 0x1b8]
call fcn.10017170
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b0]
push 0
add ecx, dword [eax + 4]
push dword [ecx + 0xc]
mov dword [ecx + 0x10], 6
call fcn.10003500
push 2
push 0
push 0
lea ecx, [ebp - 0x1b0]
call fcn.100173f0
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.100172f0
push 0
push 0
push 0
mov edi, dword [eax + 8]
lea ecx, [ebp - 0x1b0]
add edi, dword [eax]
call fcn.100173f0
cmp byte [ebx + 0xc], 0
je 0x1001ba4a
mov eax, dword [0x10085abc]
cmp byte [eax], 0
jne 0x1001bbf9
mov byte [eax], 1
mov eax, dword [0x10083c7c]
jmp 0x1001ba53
push edi
call fcn.10022008
add esp, 4
push 0
push edi
push eax
lea ecx, [ebp - 0x1b0]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.10017530
push 0x5c
push dword [ebp - 0x1b8]
call fcn.10023250
mov ecx, eax
add esp, 8
add ecx, 1
jne 0x1001ba92
push 0x2f
push dword [ebp - 0x1b8]
call fcn.10023250
add esp, 8
lea ecx, [eax + 1]
cmp ecx, dword [ebp - 0x1b8]
cmovb ecx, dword [ebp - 0x1b8]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 8], eax
or eax, 0xffffffff
mov dword [esi + 0xc], ecx
mov byte [esi + 0xf], 0
test edi, edi
je 0x1001badb
mov ecx, dword [esi + 0x10]
nop word [eax + eax]
movzx ecx, byte [edx + ecx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10055a20]
mov ecx, dword [esi + 0x10]
cmp edx, edi
jb 0x1001bac0
lea ecx, [ebp - 0x1b0]
mov dword [esi + 0xe0], eax
call fcn.10016f80
lea ecx, [ebp - 0xf0]
mov dword [0x10085ad4], esi
mov byte [esi + 0xe5], 1
call fcn.10016f80
jmp 0x1001bb63
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x1001bb9d
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001bb93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001bc1a
push ecx
push edx
call fcn.10021fc9
add esp, 8
mov eax, esi
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.10021c67
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.10030d79
call fcn.10030d79
call fcn.10030d79
push str.Trying_to_create_external_thread_from_label_without_parent_thread
lea ecx, [ebp - 0x200]
call fcn.10018390
push 0x1005ca9c
lea eax, [ebp - 0x200]
push eax
call fcn.10023387
push str.list_too_long
call fcn.1002084e
push str.Starting_of_custom_mission_when_other_mission_loaded
lea ecx, [ebp - 0x20c]
call fcn.10018390
push 0x1005ca9c
lea eax, [ebp - 0x20c]
push eax
call fcn.10023387
call fcn.10030d79
int3