Function at 0x140040160
Capabilities:
Create thread

Disassembly:
push rbp
push r12
push r13
push r14
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x1400dd0c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r14, rcx
call fcn.14003fb60
mov r13d, 1
mov ecx, r13d
call fcn.1400b01b0
lea rcx, [rbp + 0x48]
xor r12d, r12d
mov qword [rsp + 0x28], rcx
lea r8, [0x140042230]
xor ecx, ecx
mov dword [rsp + 0x20], r12d
mov r9, rax
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x40], rax
test rax, rax
je 0x14004128c
cmp dword [rbp + 0x48], r12d
je 0x140041282
movaps xmm0, xmmword [rbp + 0x40]
lea rcx, [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140041282
cmp qword [0x1401b0d40], 0xf
lea rax, [0x1401b0d28]
mov qword [0x1401b0d38], r12
lea rcx, [0x1401b0a90]
cmova rax, qword [0x1401b0d28]
xorps xmm0, xmm0
mov qword [rsp + 0x1a8], rbx
movdqa xmmword [rbp + 0x40], xmm0
mov byte [rax], r12b
lea rax, [0x1401b0a50]
cmp qword [0x1401b0a68], 0xf
mov qword [0x1401b0a60], r12
cmova rax, qword [0x1401b0a50]
mov byte [rax], r12b
lea rax, [0x1401b0d48]
cmp qword [0x1401b0d60], 0xf
mov qword [0x1401b0d58], r12
cmova rax, qword [0x1401b0d48]
mov byte [rax], r12b
lea rax, [0x1401b0a30]
cmp qword [0x1401b0a48], 0xf
mov qword [0x1401b0a40], r12
cmova rax, qword [0x1401b0a30]
mov byte [rax], r12b
lea rax, [0x1401b0a70]
cmp qword [0x1401b0a88], 0xf
mov qword [0x1401b0a80], r12
cmova rax, qword [0x1401b0a70]
mov byte [rax], r12b
call fcn.1400573d0
lea rcx, [rbp + 0x40]
call fcn.14003dff0
mov rbx, rax
lea rax, [0x1401aed70]
cmp rax, rbx
je 0x140040342
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x140040305
mov rcx, qword [0x1401aed70]
inc rdx
cmp rdx, 0x1000
jb 0x140040300
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040374
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aed80], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aed70], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aed70], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aed80], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040380
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004037b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004037b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003be20
mov rbx, rax
lea rax, [0x1401aedd0]
cmp rax, rbx
je 0x140040412
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x1400403d5
mov rcx, qword [0x1401aedd0]
inc rdx
cmp rdx, 0x1000
jb 0x1400403d0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040444
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aede0], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aedd0], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aedd0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aede0], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040450
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004044b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004044b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003d780
mov rbx, rax
lea rax, [0x1401aed10]
cmp rax, rbx
je 0x1400404e2
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x1400404a5
mov rcx, qword [0x1401aed10]
inc rdx
cmp rdx, 0x1000
jb 0x1400404a0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040514
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aed20], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aed10], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aed10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aed20], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040520
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004051b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004051b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003ccb0
mov rbx, rax
lea rax, [0x1401aee10]
cmp rax, rbx
je 0x1400405b2
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x140040575
mov rcx, qword [0x1401aee10]
inc rdx
cmp rdx, 0x1000
jb 0x140040570
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400405e4
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aee20], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aee10], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aee10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aee20], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400405f0
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400405eb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400405eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003c220
mov rbx, rax
lea rax, [0x1401aed30]
cmp rax, rbx
je 0x140040682
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x140040645
mov rcx, qword [0x1401aed30]
inc rdx
cmp rdx, 0x1000
jb 0x140040640
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400406b4
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aed40], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aed30], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aed30], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aed40], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400406c0
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400406bb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400406bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003b620
mov rbx, rax
lea rax, [0x1401aedf0]
cmp rax, rbx
je 0x140040752
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x140040715
mov rcx, qword [0x1401aedf0]
inc rdx
cmp rdx, 0x1000
jb 0x140040710
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040784
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aee00], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aedf0], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aedf0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aee00], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040790
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004078b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004078b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003ba20
mov rbx, rax
lea rax, [0x1401aedb0]
cmp rax, rbx
je 0x140040822
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x1400407e5
mov rcx, qword [0x1401aedb0]
inc rdx
cmp rdx, 0x1000
jb 0x1400407e0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040854
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aedc0], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aedb0], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aedb0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aedc0], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040860
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004085b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004085b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003e3f0
mov rbx, rax
lea rax, [0x1401aed90]
cmp rax, rbx
je 0x1400408f2
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x1400408b5
mov rcx, qword [0x1401aed90]
inc rdx
cmp rdx, 0x1000
jb 0x1400408b0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040924
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aeda0], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aed90], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aed90], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aeda0], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040930
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004092b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004092b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
lea rcx, [rbp + 0x40]
call fcn.14003e9b0
mov rbx, rax
lea rax, [0x1401aed50]
cmp rax, rbx
je 0x1400409c2
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x140040985
mov rcx, qword [0x1401aed50]
inc rdx
cmp rdx, 0x1000
jb 0x140040980
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400409f4
mov rcx, r8
call fcn.1400b0504
mov qword [0x1401aed60], r12
mov qword [reloc.WS2_32.dll_ntohs], 0xf
mov byte [0x1401aed50], r12b
movups xmm0, xmmword [rbx]
movups xmmword [0x1401aed50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x1401aed60], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x140040a00
mov rcx, qword [rbp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400409fb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400409fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b0504
mov qword [rsp + 0x1b0], rsi
mov qword [rsp + 0x1b8], rdi
mov qword [rsp + 0x170], r15
call fcn.14003c850
mov byte [0x1401b0938], al
call fcn.14003ca80
mov byte [0x1401b0948], al
call fcn.14003c620
mov byte [0x1401b0949], al
xor ecx, ecx
lea rax, [0x1400414a0]
mov dword [rbp - 0x30], 0x50
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], 0x40
mov qword [rbp - 0x20], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rbp + 0x18], r12
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea r15, str.VERSE
movdqa xmmword [rbp], xmm1
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x10], r15
call qword [sym.imp.USER32.dll_RegisterClassExW]
cvttss2si edi, dword [0x1400dd12c]
mov ecx, r13d
cvttss2si esi, dword [0x1400dd128]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movss xmm0, dword [0x1400dd12c]
xor ecx, ecx
mulss xmm0, dword [0x1400cb978]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm1, xmm0
cvttss2si ebx, xmm1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movss xmm0, dword [0x1400dd128]
mov r9d, 0x80000000
mulss xmm0, dword [0x1400cb978]
cdq
mov qword [rsp + 0x58], r12
sub eax, edx
mov rdx, qword [rbp + 0x10]
mov r8, r15
mov qword [rsp + 0x50], r14
xor ecx, ecx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
sar eax, 1
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x1401b0080], rax
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov rcx, qword [0x1401b0080]
mov edx, 0xffffffec
bts eax, 0x13
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1401b0080]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x1400cbb50]
lea rdx, [rbp + 0x30]
mov rcx, qword [0x1401b0080]
movdqu xmmword [rbp + 0x30], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rax, qword [0x1401b0080]
lea rbx, [0x1401b08d0]
mov qword [rsp + 0x58], rbx
lea rdi, [0x1401b0940]
mov qword [rbp - 0x60], rax
lea rsi, [0x1401b08c0]
lea rax, [rsp + 0x68]
mov qword [rbp - 0x7c], r12
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, r13d
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x68], 2
mov qword [rbp - 0x50], 2
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x80], Ordinal_30
mov dword [rsp + 0x78], reloc.WLDAP32.dll_Ordinal_60
mov dword [rsp + 0x7c], r13d
mov dword [rbp - 0x6c], reloc.WLDAP32.dll_Ordinal_32
mov qword [rbp - 0x74], r13
mov qword [rbp - 0x58], r13
mov dword [rsp + 0x60], 0xb000
mov dword [rsp + 0x64], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov r15, qword [rsp + 0x170]
cmp eax, 0x887a0004
jne 0x140040caa
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, 5
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x14004126a
call fcn.140041430
mov rcx, qword [0x1401b0080]
mov edx, 0xa
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1401b0080]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1401b0070]
test rbx, rbx
je 0x140040ce8
inc dword [rbx + 0xf4]
mov ecx, 0x5e38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140040d04
xor edx, edx
mov rcx, rax
call fcn.1400025d0
jmp 0x140040d07
mov rax, r12
mov qword [0x1401b0070], rax
call fcn.140006180
test rbx, rbx
je 0x140040d21
mov qword [0x1401b0070], rbx
jmp 0x140040d28
mov rbx, qword [0x1401b0070]
xor ecx, ecx
mov qword [rbx + 0x20], r12
call fcn.14001c2f0
mov rsi, qword [0x1401b0080]
lea rcx, [rbp + 0x20]
mov rbx, qword [0x1401b0070]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140040e7a
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140040e7a
mov rax, qword [0x1401b0070]
test rax, rax
je 0x140040d77
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140040da4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x140040da7
mov rdi, r12
or dword [rbx + 0xc], 6
lea rax, [0x1400ca698]
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x98], rdi
mov rbx, r12
mov qword [rdi], rsi
mov rax, qword [rbp + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x40]
mov qword [rdi + 0x18], rax
mov rax, qword [0x1401b0070]
mov dword [rdi + 0x28], 9
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x80], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x78], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x70], rax
mov byte [rdi + 0x2d], r13b
nop
mov rcx, qword [rsp + rbx*8 + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140040e4e
inc rbx
cmp rbx, 5
jl 0x140040e30
jmp 0x140040e7a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x30], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x1401b0070]
mov r14, qword [0x1401b08d0]
mov rsi, qword [0x1401b0940]
test rdi, rdi
je 0x140040e9a
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140040edb
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x140040ede
mov rbx, r12
or dword [rdi + 0xc], 8
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
lea r8, [rsp + 0x60]
mov qword [rdi + 0xa0], rbx
lea rdx, [0x1400ca668]
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rbp - 0x40], r12
call qword [rax]
test eax, eax
jne 0x140040f61
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [0x1400ca678]
mov rax, qword [rcx]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x140040f61
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x40]
lea rdx, [0x1400ca688]
mov rax, qword [rcx]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x140040f61
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp - 0x40]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140040f71
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140040f81
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.140042330
xor bl, bl
nop dword [rax + rax]
xorps xmm0, xmm0
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140041016
nop dword [rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rsp + 0x78], 0x12
lea rcx, [rsp + 0x70]
movzx ebx, bl
cmove ebx, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140040fd0
test bl, bl
jne 0x1400410c8
mov rax, qword [0x1401b0070]
test rax, rax
je 0x14004102b
mov rcx, qword [rax + 0xa0]
jmp 0x14004102e
mov rcx, r12
cmp qword [rcx + 0x48], r12
jne 0x140041039
call fcn.140029270
call fcn.14002a0a0
call fcn.1400087c0
call fcn.140042ac0
call fcn.14000a870
mov rcx, qword [0x1401b08d0]
lea r8, [0x1401b08b8]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x40], xmm0
mov edx, r13d
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [0x1401b08d0]
lea r8, [rbp + 0x40]
mov rdx, qword [0x1401b08b8]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1401b0070]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.140028800
mov rcx, qword [0x1401b08c0]
xor r8d, r8d
mov edx, r13d
mov rax, qword [rcx]
call qword [rax + 0x40]
jmp 0x140040fa0
mov rdi, qword [0x1401b0070]
mov qword [0x1401b0070], rdi
call fcn.140006590
mov rbx, r12
mov qword [0x1401b0070], rbx
test rdi, rdi
je 0x140041122
mov rcx, rdi
call fcn.14001b330
mov rax, qword [0x1401b0070]
test rax, rax
je 0x140041104
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1401b0070]
test rbx, rbx
je 0x140041122
mov rdi, qword [rbx + 0xa0]
jmp 0x140041125
mov rdi, r12
call fcn.1400297b0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140041139
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140041147
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140041156
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1401b0070]
mov qword [rbx + 0x90], r12
mov qword [rbx + 0xa0], r12
test rax, rax
je 0x140041176
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401b0070]
test rax, rax
je 0x140041194
mov rbx, qword [rax + 0x98]
jmp 0x140041197
mov rbx, r12
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x1400411b1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1401b0070]
mov qword [rdi + 0x80], r12
mov qword [rdi + 0x90], r12
test rax, rax
je 0x1400411ca
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1401b0070]
mov qword [0x1401b0070], rbx
call fcn.140006590
mov qword [0x1401b0070], r12
test rbx, rbx
je 0x140041215
mov rcx, rbx
call fcn.14001b330
mov rax, qword [0x1401b0070]
test rax, rax
je 0x14004120c
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.1400413b0
mov rcx, qword [0x1401b0080]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov rsi, qword [rsp + 0x1b0]
mov rdi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1a8]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400afdd0
add rsp, 0x178
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400413b0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, r13d
jmp 0x140041237
mov ecx, r13d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp + 0x48], r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3