Function at 0x140004580
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x14004a010]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r14d, r14d
mov edi, r14d
mov rax, qword [0x14004a938]
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004627
mov dword [rbp + 0x210], 0x130
mov r8, qword [0x14004a970]
lea rdx, [rbp + 0x210]
mov rcx, rax
call r8
test eax, eax
je 0x140004627
lea rdx, str.Warhammer_40K_Battlesector.exe
lea rcx, [rbp + 0x23c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140004621
mov rax, qword [0x14004a960]
lea rdx, [rbp + 0x210]
mov rcx, rbx
call rax
jmp 0x1400045f0
mov edi, dword [rbp + 0x218]
mov rcx, rbx
call qword [0x14004a958]
test edi, edi
je 0x140004c0b
mov rax, qword [0x14004a918]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call rax
mov qword [0x14004a8f0], rax
mov rax, qword [0x14004a938]
mov edx, edi
mov ecx, 0x18
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400046bf
mov dword [rbp + 0x210], 0x238
mov r8, qword [0x14004a940]
lea rdx, [rbp + 0x210]
mov rcx, rax
call r8
test eax, eax
je 0x1400046bf
nop dword [rax]
lea rdx, str.GameAssembly.dll
lea rcx, [rbp + 0x240]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400046bf
mov rax, qword [0x14004a920]
lea rdx, [rbp + 0x210]
mov rcx, rbx
call rax
test eax, eax
jne 0x140004690
mov rcx, rbx
call qword [0x14004a958]
lea rdx, [rsp + 0x50]
lea rax, [rbp + 0x210]
mov edi, 4
mov ecx, edi
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x1400046e0
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
mov rcx, qword [rax + 0x30]
mov qword [rdx + 0x30], rcx
mov ebx, dword [rbp + 0x230]
mov ecx, ebx
call fcn.14003b2f8
mov rsi, rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
mov rdx, qword [rbp + 0x228]
mov rcx, qword [0x14004a8f0]
call qword [0x14004a930]
mov ecx, dword [rsp + 0x70]
cmp qword [rbp + 0x190], rcx
jne 0x140004c0b
lea rcx, [rbp + 0x210]
lea rax, [rsp + 0x50]
mov rdx, rdi
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400047b0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x30], rax
lea r9, str.8B_90_B4_00_00_00_45_33_C0_03_D3
mov r8, rsi
lea rdx, [rbp + 0x210]
call fcn.1400041d0
mov qword [0x14004a808], rax
lea rcx, [rbp + 0x210]
lea rax, [rsp + 0x50]
nop dword [rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdi, 1
jne 0x140004850
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x30], rax
lea r9, str.8B_50_44_45_33_C0_03
mov r8, rsi
lea rdx, [rbp + 0x210]
call fcn.1400041d0
mov qword [0x14004a800], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea r8d, [rdi + 0x2f]
lea rdx, str.48_A3_00_00_00_00_00_00_00_00_8B_90_B4_00_00_00
lea rcx, [rsp + 0x30]
call fcn.1400051f0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1f0]
call fcn.140004330
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1b0], xmm0
mov qword [rbp + 0x1c0], rax
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1e0], r14
mov qword [rbp + 0x1e8], r14
lea r8d, [rdi + 0x2f]
lea rdx, str.48_A3_00_00_00_00_00_00_00_00_8B_50_44_45_31_C0
lea rcx, [rbp + 0x1d0]
call fcn.1400051f0
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x1b0]
call fcn.140004330
nop
mov r8, qword [rbp + 0x1f8]
mov rdx, qword [rbp + 0x1f0]
sub r8, rdx
xorps xmm0, xmm0
movdqu xmmword [0x14004a85c], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x14004a86c], xmm1
mov dword [0x14004a87c], r14d
mov rax, qword [0x14004a8f0]
mov qword [0x14004a848], rax
mov rax, qword [0x14004a808]
mov qword [0x14004a850], rax
mov dword [0x14004a858], 6
lea rcx, [0x14004a848]
call fcn.140003610
mov r8, qword [rbp + 0x1b8]
mov rdx, qword [rbp + 0x1b0]
sub r8, rdx
xorps xmm0, xmm0
movdqu xmmword [0x14004a824], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x14004a834], xmm1
mov dword [0x14004a844], r14d
mov rax, qword [0x14004a8f0]
mov qword [0x14004a810], rax
mov rax, qword [0x14004a800]
mov qword [0x14004a818], rax
mov dword [0x14004a820], 6
lea rcx, [0x14004a810]
call fcn.140003610
mov r9d, dword [0x14004a858]
mov qword [rsp + 0x20], r14
mov r8, qword [0x14004a868]
mov rdx, qword [0x14004a850]
mov rcx, qword [0x14004a848]
call qword [0x14004a928]
test eax, eax
jne 0x140004a7e
mov rcx, qword [0x14004a860]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14004a868]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r9d, dword [0x14004a820]
mov qword [rsp + 0x20], r14
mov r8, qword [0x14004a830]
mov rdx, qword [0x14004a818]
mov rcx, qword [0x14004a810]
call qword [0x14004a928]
test eax, eax
jne 0x140004ac3
mov rcx, qword [0x14004a828]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14004a830]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 8
call fcn.14003b030
lea rcx, [0x140004c40]
mov qword [rax], rcx
mov qword [rbp + 0x1d0], rax
lea rcx, [rbp + 0x1a8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140005480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x1a0], rax
test rax, rax
je 0x140004bf8
cmp dword [rbp + 0x1a8], 0
jne 0x140004b28
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp + 0x1a0]
movdqa xmmword [rbp + 0x1d0], xmm0
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140004b51
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1a0], xmm0
mov rcx, qword [rbp + 0x1b0]
test rcx, rcx
je 0x140004bb1
mov rdx, qword [rbp + 0x1c0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b2c4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1b0], xmm0
mov qword [rbp + 0x1c0], r14
mov rcx, qword [rbp + 0x1f0]
test rcx, rcx
je 0x140004bf4
mov rdx, qword [rbp + 0x200]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004bef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004bef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b2c4
mov al, 1
jmp 0x140004c0d
mov dword [rbp + 0x1a8], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor al, al
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14003b010
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret