Function at 0x10011f00
Capabilities:
Create thread

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 0x1006eb2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x100ca00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100ebc2c]
xor edx, edx
mov dword [ebp - 0x20], 0x43520000
mov dword [ebp - 0x1c], 0x41900000
mov eax, dword [esi + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
mov ecx, dword [eax + 0x1c4]
mov eax, dword [eax + 0x1cc]
push dword [eax + ecx*4 - 4]
mov ecx, 0x1007620c
call fcn.10027b40
add esp, 4
cmp dword [esi + 0x1a0c], eax
jne 0x10011f8f
mov dword [esi + 0x1a14], eax
cmp dword [esi + 0x1a10], eax
jne 0x10011f9e
mov byte [esi + 0x1a20], 1
push 0
lea edx, [ebp - 0x20]
mov ecx, 0x1007620c
push 0
push edx
mov edx, eax
call fcn.1002d340
add esp, 0xc
call fcn.1002d180
mov ecx, dword [0x100ebc2c]
mov eax, dword [ecx + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x19ec]
mov eax, dword [eax + 0x1c0]
test eax, eax
je 0x10011feb
cmp dword [eax + 0x10], 1
jne 0x10011fe6
cmp dword [eax + 4], 1
je 0x10011feb
call fcn.10049760
call fcn.1005eab0
movss xmm1, dword [0x100c4e4c]
movss xmm0, dword [0x100c4d64]
call fcn.10045070
mov edi, dword [0x100ebc2c]
xor edx, edx
mov dword [ebp - 0x20], 0x44038000
mov dword [ebp - 0x1c], 0x43fd0000
mov eax, dword [edi + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [edi + 0x19ec]
mov ecx, dword [eax + 0x1c4]
mov eax, dword [eax + 0x1cc]
push dword [eax + ecx*4 - 4]
mov ecx, str.Lua_Executor
call fcn.10027b40
add esp, 4
cmp dword [edi + 0x1a0c], eax
jne 0x10012056
mov dword [edi + 0x1a14], eax
cmp dword [edi + 0x1a10], eax
jne 0x10012065
mov byte [edi + 0x1a20], 1
push ecx
lea ecx, [ebp - 0x20]
mov edx, eax
push 1
push ecx
mov ecx, str.Lua_Executor
call fcn.1002c930
mov dword [esi + 0x1554], 0x40800000
add esp, 0xc
mov dword [esi + 0x1558], 0x40000000
mov dword [esi + 0x1514], 0x40800000
mov dword [esi + 0x1518], 0x40800000
mov esi, dword [0x100ebc2c]
mov eax, dword [esi + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
cmp byte [eax + 0x7f], 0
jne 0x100120de
xorps xmm1, xmm1
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x41100000
call fcn.1002a170
mov esi, dword [0x100ebc2c]
movss xmm5, dword [0x100c4e4c]
movss xmm0, dword [0x100c4d38]
movaps xmm1, xmm5
call fcn.10045070
mov eax, dword [esi + 0x19ec]
movaps xmm0, xmmword [0x100c50f0]
movups xmmword [esi + 0x1648], xmm0
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
cmp byte [eax + 0x7f], 0
jne 0x10012133
xorps xmm1, xmm1
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call fcn.1002a170
call fcn.1005eab0
call fcn.1005eab0
movss xmm0, dword [0x100c4d64]
movaps xmm1, xmm5
call fcn.10045070
mov ecx, dword [0x100ebc2c]
mov edx, 0x431e0000
mov eax, dword [ecx + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x19ec]
lea esi, [eax + 0x184]
mov dword [ebp - 0x18], eax
mov dword [eax + 0x170], 0x431e0000
mov ecx, dword [esi]
mov edi, dword [esi + 4]
cmp ecx, edi
jne 0x100121b1
inc ecx
test edi, edi
je 0x10012194
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10012199
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1004b270
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
mov edx, dword [eax + 0x170]
mov eax, dword [esi + 8]
push 0
push 0
push 0x100400
mov dword [eax + ecx*4], edx
lea eax, [ebp - 0x20]
inc dword [esi]
xor edx, edx
push eax
push 0x1fffe
push 0x100cbb88
mov ecx, str.Script_input
mov dword [ebp - 0x20], 0x43f38000
mov dword [ebp - 0x1c], 0x43cf8000
call fcn.10063820
mov esi, dword [0x100ebc2c]
add esp, 0x18
mov eax, dword [esi + 0x19ec]
mov byte [eax + 0x7c], 1
mov edx, dword [esi + 0x19ec]
add dword [edx + 0x184], 0xffffffff
jne 0x10012216
movss xmm0, dword [edx + 0x224]
jmp 0x10012228
mov ecx, dword [edx + 0x184]
mov eax, dword [edx + 0x18c]
movss xmm0, dword [eax + ecx*4 - 4]
movss dword [edx + 0x170], xmm0
mov eax, dword [esi + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
cmp byte [eax + 0x7f], 0
jne 0x1001225f
xorps xmm1, xmm1
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call fcn.1002a170
call fcn.1005eab0
call fcn.1005eab0
movss xmm1, dword [0x100c4e4c]
movss xmm0, dword [0x100c4d64]
call fcn.10045070
mov ecx, dword [0x100ebc2c]
mov edx, 0x431e0000
mov eax, dword [ecx + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x19ec]
lea esi, [eax + 0x184]
mov dword [ebp - 0x18], eax
mov dword [eax + 0x170], 0x431e0000
mov ecx, dword [esi]
mov edi, dword [esi + 4]
cmp ecx, edi
jne 0x100122e2
inc ecx
test edi, edi
je 0x100122c5
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100122ca
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1004b270
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
mov edx, dword [eax + 0x170]
mov eax, dword [esi + 8]
push ecx
mov dword [ebp - 0x20], 0x431e0000
mov dword [ebp - 0x1c], 0
mov dword [eax + ecx*4], edx
lea edx, [ebp - 0x20]
inc dword [esi]
mov ecx, str.Execute_script
call fcn.1005c640
mov esi, dword [0x100ebc2c]
add esp, 4
mov byte [ebp - 0x21], al
mov ecx, dword [esi + 0x19ec]
mov byte [ecx + 0x7c], 1
mov edx, dword [esi + 0x19ec]
add dword [edx + 0x184], 0xffffffff
jne 0x10012335
movss xmm0, dword [edx + 0x224]
jmp 0x1001234a
mov eax, dword [edx + 0x18c]
mov ecx, dword [edx + 0x184]
movss xmm0, dword [eax + ecx*4 - 4]
mov al, byte [ebp - 0x21]
movss dword [edx + 0x170], xmm0
test al, al
je 0x100123bf
push 8
call fcn.1006cf64
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], 0x100cbb88
mov dword [eax + 4], 0x1000ae30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100251f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10012410
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.10001970
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x100123b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov esi, dword [0x100ebc2c]
movss xmm1, dword [0x100c4e4c]
xorps xmm0, xmm0
call fcn.10045070
mov eax, dword [esi + 0x19ec]
mov edx, 0x431e0000
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
lea esi, [eax + 0x184]
mov dword [ebp - 0x18], eax
mov dword [eax + 0x170], 0x431e0000
mov ecx, dword [esi]
mov edi, dword [esi + 4]
cmp ecx, edi
jne 0x1001243c
inc ecx
test edi, edi
je 0x1001241f
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x10012424
push 6
mov dword [ebp - 0x1c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1004b270
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
mov edx, dword [eax + 0x170]
mov eax, dword [esi + 8]
push ecx
mov dword [ebp - 0x20], 0x431e0000
mov dword [ebp - 0x1c], 0
mov dword [eax + ecx*4], edx
lea edx, [ebp - 0x20]
inc dword [esi]
mov ecx, str.Load_from_file
call fcn.1005c640
mov esi, dword [0x100ebc2c]
add esp, 4
mov byte [ebp - 0x21], al
mov ecx, dword [esi + 0x19ec]
mov byte [ecx + 0x7c], 1
mov edx, dword [esi + 0x19ec]
add dword [edx + 0x184], 0xffffffff
jne 0x1001248f
movss xmm0, dword [edx + 0x224]
jmp 0x100124a1
mov ecx, dword [edx + 0x184]
mov eax, dword [edx + 0x18c]
movss xmm0, dword [eax + ecx*4 - 4]
movss dword [edx + 0x170], xmm0
mov eax, dword [esi + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
cmp byte [eax + 0x7f], 0
jne 0x100124d8
xorps xmm1, xmm1
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x3f800000
call fcn.1002a170
cmp byte [ebp - 0x21], 0
je 0x1001250c
push 0x1000ae70
lea ecx, [ebp - 0x20]
call fcn.1001dac0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.10001970
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x1001250c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
call fcn.1002cb50
movss xmm1, dword [0x100c4e4c]
movss xmm0, dword [0x100c4d64]
call fcn.10045070
mov esi, dword [0x100ebc2c]
xor edx, edx
mov dword [ebp - 0x20], 0x44038000
mov dword [ebp - 0x1c], 0x41300000
mov eax, dword [esi + 0x19ec]
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x19ec]
mov ecx, dword [eax + 0x1c4]
mov eax, dword [eax + 0x1cc]
push dword [eax + ecx*4 - 4]
mov ecx, str.Lua_Executor_Cover
call fcn.10027b40
add esp, 4
cmp dword [esi + 0x1a0c], eax
jne 0x10012577
mov dword [esi + 0x1a14], eax
cmp dword [esi + 0x1a10], eax
jne 0x10012586
mov byte [esi + 0x1a20], 1
sub esp, 8
lea esi, [ebp - 0x20]
mov edx, str.Lua_Executor
mov ecx, str.Lua_Executor_Cover
push esi
push eax
call fcn.1002cf90
add esp, 0x10
call fcn.1002d180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006cd6e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret