Function at 0x140052490
Capabilities:
Set console window title

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14006a040]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov esi, r9d
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x14005253b
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14005fde8]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14005fdf8]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14005fde8]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
jmp 0x14005255e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_console.
call fcn.140047fb0
lea rdx, [0x140048190]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Silent_Hill_2_Remake_Tool__Developed_By_GeNeTeL_
call fcn.140047fb0
lea rdx, [0x140048190]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x140048190]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.Silent_Hill_2_Remake_Tool__Developed_By_GeNeTeL_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140047b10
mov rcx, qword [0x140091ea0]
call fcn.1400472e0
call fcn.1400532f0
lea rax, [0x140052430]
mov dword [rbp], 0x50
mov qword [rbp + 8], rax
lea rcx, [rbp]
lea rax, str.GeNeTeL_Tool__Developed_By_GeNeTeL_
mov dword [rbp + 4], 3
xor r12d, r12d
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
mov qword [rbp + 0x10], r12
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x18], rbx
call qword [sym.imp.USER32.dll_RegisterClassExW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [rbp + 0x18]
lea r8, str.GeNeTeL_Tool__Develpoed_By_GeNeTeL_
mov rdx, qword [rbp + 0x40]
mov r9d, 0x80000000
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], rcx
mov ecx, 0x80028
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r9d, 2
mov r8b, 0xff
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
xorps xmm0, xmm0
lea rdx, [rbp + 0x68]
mov rcx, rdi
movups xmmword [rbp + 0x68], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
xorps xmm0, xmm0
lea rdx, [rbp + 0x78]
mov rcx, rdi
movups xmmword [rbp + 0x78], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], r12
mov rcx, rdi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x50]
mov dword [rbp + 0x50], eax
mov rcx, rdi
mov eax, dword [rsp + 0x74]
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x5c], eax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
lea rax, [rbp - 0x80]
mov qword [rbp - 0x50], r12
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea rax, [rbp + 0x60]
mov qword [rbp - 0x3c], r12
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov qword [rbp - 0x34], 1
mov qword [rsp + 0x48], rax
mov edx, 1
lea rax, [rbp - 0x78]
mov qword [rbp - 0x28], 2
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp - 0x50]
mov qword [rbp - 0x10], 2
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xb8]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x48], 0x3c
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x40], 0x1c
mov dword [rbp - 0x2c], 0x20
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 1
mov dword [rbp + 0xb8], 0xb000
mov dword [rbp + 0xbc], 0xa000
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov dword [rbp + 0x60], r12d
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov rcx, qword [rbp - 0x78]
lea r9, [rbp - 0x60]
mov qword [rbp - 0x60], r12
lea r8, [0x140060c98]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x140052e19
mov rcx, qword [rbp - 0x70]
lea r9, [rbp - 0x68]
mov qword [rsp + 0x258], r14
xor r8d, r8d
mov qword [rsp + 0x260], r15
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x140091e78]
test rbx, rbx
je 0x14005281a
inc dword [rbx + 0xf4]
mov ecx, 0x5e20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140052836
xor edx, edx
mov rcx, rax
call fcn.140001b70
jmp 0x140052839
mov rax, r12
mov qword [0x140091e78], rax
call fcn.140006070
test rbx, rbx
je 0x140052851
mov qword [0x140091e78], rbx
call fcn.140052e40
mov rcx, rdi
call fcn.14002e880
mov rsi, qword [0x140091e78]
mov r15, qword [rbp - 0x80]
mov r14, qword [rbp - 0x70]
test rsi, rsi
je 0x140052878
inc dword [rsi + 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 0x1400528b9
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 0x1400528bc
mov rbx, r12
or dword [rsi + 0xc], 8
lea rax, str.imgui_impl_dx11
mov qword [rsi + 0x90], rax
lea r8, [rsp + 0x70]
mov qword [rsi + 0xa0], rbx
lea rdx, [0x14005f728]
mov rax, qword [r14]
mov rcx, r14
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x58], r12
call qword [rax]
test eax, eax
jne 0x14005293f
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x78]
lea rdx, [0x14005f738]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x14005293f
mov rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x58]
lea rdx, [0x14005f748]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x14005293f
mov qword [rbx], r14
mov qword [rbx + 8], r15
mov rax, qword [rbp - 0x58]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x260]
mov r14, qword [rsp + 0x258]
test rcx, rcx
je 0x14005295f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005296f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
cmp byte [0x14006a9cc], r12b
je 0x140052c8e
movaps xmmword [rsp + 0x1f0], xmm8
movss xmm8, dword [0x140061640]
movaps xmmword [rsp + 0x1e0], xmm9
movss xmm9, dword [0x140061678]
movaps xmmword [rsp + 0x210], xmm6
movaps xmmword [rsp + 0x200], xmm7
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x88]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140052a3c
lea rcx, [rbp + 0x88]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x88]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rbp + 0x90], 0x12
jne 0x140052a1b
mov byte [0x14006a9cc], r12b
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x88]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1400529f1
cmp byte [0x14006a9cc], r12b
je 0x140052c6c
mov rax, qword [0x140091e78]
test rax, rax
je 0x140052a5e
mov rcx, qword [rax + 0xa0]
jmp 0x140052a61
mov rcx, r12
cmp qword [rcx + 0x48], r12
jne 0x140052a6c
call fcn.14002e360
call fcn.14002f240
call fcn.1400085e0
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
cmp byte [0x140091e9a], r12b
je 0x140052a93
and rax, 0xffffffffffffffdf
jmp 0x140052a97
or rax, 0x20
or rax, 0x80008
mov edx, 0xffffffec
mov r8, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov r9d, 0x101
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_RedrawWindow]
cmp byte [0x140091e99], r12b
je 0x140052bd3
mov rax, qword [0x140091e78]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax + 0x48a0]
mov rcx, qword [rcx]
call fcn.140007b90
mov rcx, qword [0x140091e78]
mov rbx, rax
movups xmm0, xmmword [0x14006a9e8]
movss xmm6, dword [rcx + 0x10]
movss xmm7, dword [rcx + 0x14]
lea rcx, [rbp + 0x50]
movups xmmword [rbp + 0x50], xmm0
mulss xmm6, xmm8
mulss xmm7, xmm8
movaps xmm1, xmm6
movaps xmm0, xmm6
addss xmm1, dword [0x14006a9e4]
subss xmm0, dword [0x14006a9e4]
movss dword [rsp + 0x64], xmm7
movss dword [rsp + 0x6c], xmm7
movss dword [rsp + 0x60], xmm1
movss dword [rsp + 0x68], xmm0
call fcn.140003f40
mov r9d, eax
movss dword [rsp + 0x20], xmm9
lea rdx, [rsp + 0x68]
mov rcx, rbx
lea r8, [rsp + 0x60]
call fcn.140026f70
movups xmm0, xmmword [0x14006a9e8]
lea rcx, [rbp + 0x50]
movaps xmm1, xmm7
movss dword [rbp + 0x78], xmm6
addss xmm1, dword [0x14006a9e4]
subss xmm7, dword [0x14006a9e4]
movss dword [rbp + 0x68], xmm6
movups xmmword [rbp + 0x50], xmm0
movss dword [rbp + 0x7c], xmm1
movss dword [rbp + 0x6c], xmm7
call fcn.140003f40
mov r9d, eax
movss dword [rsp + 0x20], xmm9
lea rdx, [rbp + 0x68]
mov rcx, rbx
lea r8, [rbp + 0x78]
call fcn.140026f70
call fcn.1400535c0
call fcn.14000a6d0
mov rcx, qword [rbp - 0x80]
lea r8, [rbp - 0x68]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0xc0], xmm0
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [rbp - 0x80]
lea r8, [rbp + 0xc0]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140091e78]
mov rcx, qword [rax + 0x48a0]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14002d710
mov rcx, qword [rbp - 0x78]
xor r8d, r8d
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x40]
lea rcx, [rbp + 0x50]
mov qword [rbp + 0x50], 1
call fcn.1400481d0
cmp byte [0x14006a9cc], r12b
jne 0x1400529d0
movaps xmm7, xmmword [rsp + 0x200]
movaps xmm6, xmmword [rsp + 0x210]
movaps xmm8, xmmword [rsp + 0x1f0]
movaps xmm9, xmmword [rsp + 0x1e0]
mov rbx, qword [0x140091ea0]
mov edx, 0xa0
mov rcx, rbx
call fcn.140055f70
test rbx, rbx
je 0x140052cb2
mov qword [0x140091ea0], 0x8123
mov rbx, qword [0x140091e78]
test rbx, rbx
je 0x140052cc7
mov rsi, qword [rbx + 0xa0]
jmp 0x140052cca
mov rsi, r12
call fcn.14002e760
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140052cde
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140052cec
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140052cfb
mov rax, qword [rcx]
call qword [rax + 0x10]
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x140091e78]
mov qword [rbx + 0x90], r12
mov qword [rbx + 0xa0], r12
test rax, rax
je 0x140052d1f
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140091e78]
test rax, rax
je 0x140052d3d
mov rsi, qword [rax + 0x98]
jmp 0x140052d40
mov rsi, r12
mov rcx, qword [rsi + 0x38]
lea rbx, [rax + 8]
test rcx, rcx
je 0x140052d5a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140091e78]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x80], r12
mov qword [rbx + 0x90], r12
test rax, rax
je 0x140052d77
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140091e78]
mov qword [0x140091e78], rbx
call fcn.140006480
mov qword [0x140091e78], r12
test rbx, rbx
je 0x140052dc2
mov rcx, rbx
call fcn.14001c610
mov rax, qword [0x140091e78]
test rax, rax
je 0x140052db9
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140052dd1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140052de0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140052def
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140052dfe
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x140052e1e
mov eax, 1
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140055960
add rsp, 0x220
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret