Function at 0x14009d1e0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x2d8
mov dword [rsp + 0x140], 0
lea rax, [rsp + 0x128]
lea rcx, str.u_rdnSUXRIL
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x17
movsx eax, byte [rsp + rax + 0x128]
test eax, eax
je 0x14009d230
mov dword [rsp + 0x54], 1
jmp 0x14009d238
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x14009d294
mov dword [rsp + 0x40], 0
jmp 0x14009d255
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x18
jge 0x14009d294
movsxd rax, dword [rsp + 0x40]
movsx eax, byte [rsp + rax + 0x128]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x40]
cdq
mov ecx, 0x38
idiv ecx
mov eax, edx
add eax, 0x36
mov ecx, dword [rsp + 0x68]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x40]
mov byte [rsp + rcx + 0x128], al
jmp 0x14009d24b
lea rax, [rsp + 0x128]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.14009f560
mov dword [rsp + 0x48], 0
jmp 0x14009d2d4
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x18
jge 0x14009d2ea
movsxd rax, dword [rsp + 0x48]
mov byte [rsp + rax + 0x128], 0
jmp 0x14009d2ca
lea rax, [rsp + 0x98]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rcx, rax
call fcn.140007800
lea rax, [rsp + 0x98]
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x98]
call fcn.140006a70
mov rax, qword [rsp + 0x1a0]
movsxd rax, dword [rax + 4]
mov eax, dword [rsp + rax + 0x1b0]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
jne 0x14009d34f
mov dword [rsp + 0x58], 1
jmp 0x14009d357
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14009d375
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x1a0]
call fcn.1400a07d0
lea rcx, [rsp + 0x1a0]
call fcn.14009f470
lea rax, [rsp + 0x4d]
lea rcx, [0x140317ee0]
mov rdi, rax
mov rsi, rcx
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 4
movsx eax, byte [rsp + rax + 0x4d]
test eax, eax
je 0x14009d3b7
mov dword [rsp + 0x5c], 1
jmp 0x14009d3bf
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
test eax, eax
je 0x14009d415
mov dword [rsp + 0x44], 0
jmp 0x14009d3dc
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 5
jge 0x14009d415
movsxd rax, dword [rsp + 0x44]
movsx eax, byte [rsp + rax + 0x4d]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x44]
cdq
mov ecx, 0x38
idiv ecx
mov eax, edx
add eax, 0x36
mov ecx, dword [rsp + 0x70]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x44]
mov byte [rsp + rcx + 0x4d], al
jmp 0x14009d3d2
lea rax, [rsp + 0x4d]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rcx, rax
call fcn.140007800
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x60]
cmp byte [rax + rcx], 0
jne 0x14009d45b
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd0], rax
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x148]
call fcn.140007310
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x148]
call fcn.14000d8e0
lea rcx, [rsp + 0x148]
call fcn.14000d880
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0xd8], rax
call fcn.140004850
mov rcx, qword [rsp + 0xd8]
mov qword [rax], rcx
call fcn.140004850
cmp qword [rax], 0xffffffffffffffff
jne 0x14009d544
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x4c]
call fcn.14009d850
mov rcx, rax
call fcn.14009f7f0
mov rcx, rax
call fcn.14009a600
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xor edx, edx
lea rcx, str.SDL_app
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x88], rax
call fcn.140004850
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x28], rcx
cmp qword [rsp + 0x88], 0
jne 0x14009d579
jmp 0x14009d544
mov dword [rsp + 0x74], 0x64
movsxd rax, dword [rsp + 0x74]
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xe0]
call fcn.1400a0830
call fcn.140004850
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x170]
lea rcx, [0x140317fb8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x170]
call fcn.14009f6b0
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
call fcn.140006140
mov eax, eax
mov qword [rsp + 0xf8], rax
call fcn.140004850
mov rcx, qword [rsp + 0xf8]
mov qword [rax + 0x10], rcx
call fcn.140004850
cmp qword [rax + 0x10], 0
jne 0x14009d661
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x148]
call fcn.1400068f0
lea rcx, [rsp + 0x98]
call fcn.1400068f0
lea rax, [rsp + 0x250]
mov rcx, rax
call fcn.14009f4d0
lea rax, [rsp + 0x250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x78]
jmp 0x14009d839
call fcn.140004850
mov rcx, rax
call fcn.140006210
mov qword [rsp + 0x100], rax
call fcn.140004850
mov rcx, qword [rsp + 0x100]
mov qword [rax + 0x18], rcx
call fcn.140004850
cmp qword [rax + 0x18], 0
jne 0x14009d6df
mov dword [rsp + 0x7c], 0
lea rcx, [rsp + 0x148]
call fcn.1400068f0
lea rcx, [rsp + 0x98]
call fcn.1400068f0
lea rax, [rsp + 0x250]
mov rcx, rax
call fcn.14009f4d0
lea rax, [rsp + 0x250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x7c]
jmp 0x14009d839
call fcn.140004850
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x180]
lea rcx, [0x140317ee8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x16
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x180]
call fcn.14009df40
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
call fcn.140005ff0
mov qword [rsp + 0x118], rax
call fcn.140004850
mov rcx, qword [rsp + 0x118]
mov qword [rax + 0x20], rcx
call fcn.140004850
cmp qword [rax + 0x20], 0
jne 0x14009d7a9
mov dword [rsp + 0x80], 0
lea rcx, [rsp + 0x148]
call fcn.1400068f0
lea rcx, [rsp + 0x98]
call fcn.1400068f0
lea rax, [rsp + 0x250]
mov rcx, rax
call fcn.14009f4d0
lea rax, [rsp + 0x250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x80]
jmp 0x14009d839
xor edx, edx
lea rcx, [0x14024f398]
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x120], rax
call fcn.140004850
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0x28], rcx
mov ecx, 0xa
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
call fcn.14009c380
mov ecx, 0xa
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x148]
call fcn.1400068f0
lea rcx, [rsp + 0x98]
call fcn.1400068f0
lea rax, [rsp + 0x250]
mov rcx, rax
call fcn.14009f4d0
lea rax, [rsp + 0x250]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [rsp + 0x84]
add rsp, 0x2d8
pop rdi
pop rsi
ret