Function at 0x14004a4d0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0xf0
mov rax, qword [0x14023b780]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r8, str.LocalAsari
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
cmp eax, 0xb7
je 0x14004af62
xorps xmm0, xmm0
mov dword [0x140240190], 0x50
xorps xmm1, xmm1
movdqa xmmword [0x1402401a0], xmm0
lea rax, [0x14004a350]
movdqa xmmword [0x1402401b0], xmm1
xor ecx, ecx
movdqa xmmword [0x1402401c0], xmm0
movdqa xmmword [0x1402401d0], xmm1
mov qword [0x140240198], rax
mov dword [0x140240194], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rbx, str.Menu
mov qword [0x1402401a8], rax
lea rcx, [0x140240190]
mov qword [0x1402401d0], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [0x1402401a8]
xor ebp, ebp
mov rdx, qword [0x1402401d0]
mov r9d, 0x80000000
mov qword [rsp + 0x58], rbp
mov r8, rbx
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], 0x160
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r9d, 0x161
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
xor edx, edx
mov qword [0x14023fce8], rax
xor ecx, ecx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8d, [r9 + 0x60]
call qword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov rcx, qword [0x14023fce8]
mov r8d, esi
mov rdx, rax
call qword [sym.imp.USER32.dll_SetWindowRgn]
mov rcx, qword [0x14023fce8]
lea edx, [rsi + 9]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14023fce8]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [rsi + 0x1f]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x14023fd40], rax
mov rcx, rax
test rax, rax
je 0x14004af62
mov r9, qword [0x14023fce8]
lea rdx, [0x14023fcf0]
mov qword [rsp + 0x30], rdx
lea r14, [0x14023fd00]
mov qword [0x14023fd00], rbp
mov r8d, esi
mov qword [0x14023fd0c], rbp
xor edx, edx
mov dword [0x14023fd14], ebp
mov qword [0x14023fd1c], rbp
mov dword [0x14023fd24], ebp
mov qword [0x14023fd34], rbp
mov dword [0x14023fd28], esi
mov dword [0x14023fd18], esi
mov dword [0x14023fd08], ebp
mov dword [0x14023fd2c], esi
mov dword [0x14023fd30], 0x50
mov dword [0x14023fd3c], esi
mov rax, qword [rax]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
jne 0x14004af62
mov rbx, qword [0x14023fc78]
mov ecx, 0x5fd0
mov qword [rsp + 0x100], rdi
call fcn.140145a20
mov rcx, qword [0x14023fc78]
test rcx, rcx
je 0x14004a717
inc dword [rcx + 0xf0]
test rax, rax
je 0x14004a728
xor edx, edx
mov rcx, rax
call fcn.14001b3c0
jmp 0x14004a72b
mov rax, rbp
mov qword [0x14023fc78], rax
call fcn.1400049a0
test rbx, rbx
je 0x14004a745
mov qword [0x14023fc78], rbx
jmp 0x14004a74c
mov rbx, qword [0x14023fc78]
mov rcx, qword [0x14023fce8]
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
call fcn.14002e150
mov rdi, qword [0x14023fcf0]
mov ecx, 0x28
mov rbx, qword [0x14023fc78]
call fcn.140145a20
mov rcx, qword [0x14023fc78]
test rcx, rcx
je 0x14004a78a
inc dword [rcx + 0xf0]
test rax, rax
je 0x14004a7ae
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14004a7b1
mov rax, rbp
or dword [rbx + 0xc], 8
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
mov rcx, rdi
mov qword [rbx + 0x98], rax
mov qword [rax], rdi
mov rax, qword [rdi]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [0x14023fc78]
lea rdx, [0x1401fe030]
movss xmm3, dword [0x14021c148]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov rcx, qword [rcx + 0x38]
call fcn.1400268b0
mov rax, qword [0x14023fc78]
lea rdx, [0x1401eb150]
movss xmm3, dword [0x14021c140]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax + 0x38]
call fcn.1400268b0
movss xmm3, dword [0x14021c154]
lea rdx, [0x1401eb150]
mov qword [0x14023fcb0], rax
mov rax, qword [0x14023fc78]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax + 0x38]
call fcn.1400268b0
mov rcx, qword [0x14023fcf0]
lea rdx, [0x14021acf0]
mov qword [0x14023fdb8], rax
mov r9d, 0x18
lea rax, [0x14023fdc0]
mov r8d, 0x12c
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
mov rcx, qword [0x14023fcf0]
lea rax, [0x14023fdd0]
mov qword [rsp + 0x70], rax
lea rdx, [0x14021a850]
mov qword [rsp + 0x68], rbp
mov r9d, 0x18
mov qword [rsp + 0x60], rbp
mov r8d, 0x49a
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
mov rcx, qword [0x14023fcf0]
lea rax, [0x14023fd60]
mov qword [rsp + 0x70], rax
lea rdx, [0x14021a4a0]
mov qword [rsp + 0x68], rbp
mov r9d, 0x18
mov qword [rsp + 0x60], rbp
mov r8d, 0x3a7
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
mov rcx, qword [0x14023fcf0]
lea rax, [0x14023fdc8]
mov qword [rsp + 0x70], rax
lea rdx, [0x14021a330]
mov qword [rsp + 0x68], rbp
mov r9d, 0x18
mov qword [rsp + 0x60], rbp
mov r8d, 0x169
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
mov rcx, qword [0x14023fcf0]
lea rax, [0x14023fc60]
mov qword [rsp + 0x70], rax
lea rdx, [0x140210b70]
mov qword [rsp + 0x68], rbp
mov r9d, 0x1c0
mov qword [rsp + 0x60], rbp
mov r8d, 0x97be
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0x160
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
call 0x140047550
lea rcx, [0x14023fef0]
call fcn.140058540
cmp byte [0x140240100], bpl
jne 0x14004aa80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
movaps xmmword [rsp + 0xe0], xmm6
xor bl, bl
movaps xmmword [rsp + 0xd0], xmm7
mov edi, 0x209
movss xmm7, dword [0x14021c0f8]
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm8
movss xmm8, dword [0x14021c124]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14004ab22
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rsp + 0x88], 0x12
lea rcx, [rsp + 0x80]
movzx ebx, bl
cmove ebx, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x14004aad2
test bl, bl
jne 0x14004ad1a
mov rax, qword [0x14023fc78]
test rax, rax
je 0x14004ab37
mov rcx, qword [rax + 0x98]
jmp 0x14004ab3a
mov rcx, rbp
cmp qword [rcx + 0x18], rbp
jne 0x14004ab5b
test rax, rax
je 0x14004ab5b
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x14004ab5b
cmp qword [rcx], rbp
je 0x14004ab5b
call fcn.14002deb0
call fcn.14002e3f0
call fcn.140006bc0
call fcn.140047650
mov rcx, qword [0x14023fcf0]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x14023fcf0]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x14023fcf0]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x14023fcf0]
mov r9d, 3
mov dword [rsp + 0x30], ebp
xor r8d, r8d
movss dword [rsp + 0x28], xmm7
xor edx, edx
mov dword [rsp + 0x20], 0xff121214
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x14023fcf0]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004ac2e
call fcn.1400088a0
call fcn.140008cc0
mov rax, qword [0x14023fc78]
mov rcx, qword [rax + 0x4960]
mov rax, qword [rcx]
mov rcx, rbp
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.14002d8f0
mov rcx, qword [0x14023fcf0]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14023fcf0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14004aca0
mov rcx, qword [0x14023fcf0]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14004aca0
call fcn.14002e0d0
mov rcx, qword [0x14023fcf0]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x14023fc78]
test rax, rax
je 0x14004aca7
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x14004aca7
cmp qword [rcx], rbp
je 0x14004aca7
call fcn.14002deb0
mov rax, qword [0x14023fc78]
movss xmm0, dword [rax + 0x18]
mulss xmm0, xmm8
addss xmm0, dword [0x14023fcc8]
comiss xmm6, xmm0
jbe 0x14004acc3
movaps xmm1, xmm6
jmp 0x14004acca
movaps xmm1, xmm7
minss xmm1, xmm0
cmp dword [0x14023fccc], ebp
mov r8d, 0x1c1
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov r9d, 0x161
cmovne r8d, edi
movss dword [0x14023fcc8], xmm1
xor edx, edx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov rcx, qword [0x14023fce8]
mov r8d, esi
mov rdx, rax
call qword [sym.imp.USER32.dll_SetWindowRgn]
jmp 0x14004aab4
mov rcx, qword [0x14023fdc0]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0xe0]
test rcx, rcx
je 0x14004ad45
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fdd0]
test rcx, rcx
je 0x14004ad57
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fd60]
test rcx, rcx
je 0x14004ad69
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fdc8]
test rcx, rcx
je 0x14004ad7b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fc60]
test rcx, rcx
je 0x14004ad8d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fc78]
test rcx, rcx
je 0x14004ada2
mov rsi, qword [rcx + 0x98]
jmp 0x14004ada5
mov rsi, rbp
lea rdi, [rcx + 8]
test rcx, rcx
je 0x14004ae1e
mov rbx, qword [rcx + 0x98]
test rbx, rbx
je 0x14004ae1e
cmp qword [rbx], rbp
je 0x14004ae1e
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14004addc
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fc78]
mov qword [rbx + 8], rbp
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14004adf9
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fc78]
mov qword [rbx + 0x10], rbp
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14004ae1e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fc78]
mov qword [rbx + 0x18], rbp
mov rax, qword [rcx + 0x38]
mov qword [rax + 8], rbp
mov rdx, qword [rsi]
test rdx, rdx
je 0x14004ae36
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x14023fc78]
and dword [rdi + 4], 0xfffffff7
mov qword [rdi + 0x80], rbp
mov qword [rdi + 0x90], rbp
test rcx, rcx
je 0x14004ae53
dec dword [rcx + 0xf0]
mov rcx, rsi
call fcn.140145a28
mov rbx, qword [0x14023fc78]
test rbx, rbx
je 0x14004ae70
mov rcx, qword [rbx + 0x90]
jmp 0x14004ae73
mov rcx, rbp
and dword [rbx + 0xc], 0xfffffff8
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0x90], rbp
test rcx, rcx
je 0x14004aea1
test rbx, rbx
je 0x14004ae95
dec dword [rbx + 0xf0]
call fcn.140145a28
mov rbx, qword [0x14023fc78]
mov qword [0x14023fc78], rbx
call fcn.140004d50
mov qword [0x14023fc78], rbp
test rbx, rbx
je 0x14004aedb
mov rcx, rbx
call fcn.14001a2e0
mov rax, qword [0x14023fc78]
test rax, rax
je 0x14004aed3
dec dword [rax + 0xf0]
mov rcx, rbx
call fcn.140145a28
mov rcx, qword [0x14023fcf0]
test rcx, rcx
je 0x14004aef4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x14023fcf0], rbp
mov rcx, qword [0x14023fd40]
test rcx, rcx
je 0x14004af0d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x14023fd40], rbp
mov rcx, qword [0x14023fce8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1402401a8]
mov rcx, qword [0x1402401d0]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rdi, qword [rsp + 0x100]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14013e9f0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov eax, esi
jmp 0x14004af38