Function at 0x18003d3b0
Capabilities:
Get file size
Read file on windows
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x18007cf38]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r10, r8
mov qword [rsp + 0x70], r8
mov r8, qword [rbp - 0x78]
lea r13d, [rdx - 0xc]
xor r11d, r11d
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x68], r8
mov rbx, rcx
mov dword [rsp + 0x4c], edx
mov r12d, edx
lea rcx, [0x180000000]
cmp edx, r13d
jbe 0x18003daa0
movzx eax, byte [rsp + 0x40]
lea r15d, [rdx - 0xfb]
mov rdi, qword [rbp - 0x68]
mov r14d, dword [rsp + 0x58]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
movzx esi, byte [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov r9d, 0x69
lea edx, [r9 - 0xa]
cmp r15d, 0x25
ja case.0x18003d46c.12
movzx eax, byte [rcx + r15 + 0x3e134]
mov ecx, dword [rcx + rax*4 + 0x3e100]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
cmp dword [r10 + 0x130], 0
jne 0x18003d497
xor r8d, r8d
mov r9, r10
xor ecx, ecx
lea edx, [r8 + 0x2a]
call fcn.180049e00
test eax, eax
je 0x18003d4a7
mov r10, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdi, qword [r10 + reloc.SHLWAPI.dll_SHRegGetIntW]
test rdi, rdi
jne case.0x18003d46c.12
xor eax, eax
jmp 0x18003e0d5
mov eax, 0x74
mov word [rbp + 0x20], ax
mov eax, 0x70
mov word [rbp + 0x21], ax
jmp case.0x18003d46c.12
mov qword [rsp + 0x28], r11
mov r9d, SHSetFolderPathW
xor r8d, r8d
mov qword [rsp + 0x20], r11
mov rdx, r10
xor ecx, ecx
call fcn.1800640d0
test eax, eax
je 0x18003d4a7
mov r8, qword [rsp + 0x68]
jmp case.0x18003d46c.12
test r10, r10
je case.0x18003d46c.12
mov r8, qword [r10 + 0x10]
xor r9d, r9d
mov edx, 0x11b
xor ecx, ecx
call fcn.180026150
mov r8, qword [rsp + 0x68]
jmp case.0x18003d46c.12
cmp dword [rdi], 0x11
jne 0x18003d638
movups xmm1, xmmword [rbp]
mov ebx, reloc.SHELL32.dll_SHSetFolderPathW
movsd xmm0, qword [rbp + 0x10]
movups xmmword [rbp - 0x78], xmm1
movsd qword [rsp + 0x58], xmm0
nop word [rax + rax]
cmp ebx, 0xe8
je 0x18003d609
cmp ebx, 0xb458
je 0x18003d59c
cmp ebx, 0x167c8
jne 0x18003d61c
mov ecx, dword [rdi]
lea eax, [rcx - 0x10]
cmp eax, 1
jbe 0x18003d573
cmp ecx, 9
jne 0x18003d9c0
mov eax, SHSetInstanceExplorer
nop dword [rax + rax]
cmp eax, 0xad
je 0x18003da46
add eax, 0x826d
cmp eax, 0x826d
jbe 0x18003d580
jmp 0x18003d61c
mov rcx, qword [r10 + reloc.SHLWAPI.dll_SHRegGetIntW]
mov eax, r11d
inc qword [r10 + 0x128]
mov r9, r10
mov dword [r10 + 0x130], r11d
cmp dword [rcx], 2
sete al
xor r8d, r8d
mov dword [r10 + 0xfc], eax
lea rax, [rcx + 0x50]
xor ecx, ecx
mov qword [r10 + reloc.SHLWAPI.dll_SHRegGetIntW], rax
lea edx, [r8 + 0x2a]
call fcn.180049e00
test eax, eax
je 0x18003d4a7
mov r10, qword [rsp + 0x70]
mov rdi, qword [r10 + reloc.SHLWAPI.dll_SHRegGetIntW]
test rdi, rdi
je 0x18003d4a7
movsd xmm0, qword [rsp + 0x58]
xor r11d, r11d
movups xmm1, xmmword [rbp - 0x78]
jmp 0x18003d61c
movups xmm1, xmmword [rdi + 0x38]
movsd xmm0, qword [rdi + 0x48]
movups xmmword [rbp - 0x78], xmm1
movsd qword [rsp + 0x58], xmm0
add ebx, 0xb370
cmp ebx, 0x21a50
jbe 0x18003d540
mov r8, qword [rsp + 0x68]
jmp case.0x18003d46c.12
mov ecx, 0x8b
nop dword [rax]
mov eax, ecx
sub eax, 0x8a
je 0x18003da75
cmp eax, 1
jne 0x18003d65d
mov dword [r10 + 0x188], 0xc
dec ecx
cmp ecx, 0x89
ja 0x18003d640
jmp case.0x18003d46c.12
movzx eax, word [0x18006c5e4]
mov word [rbp + 0x22], ax
movzx eax, word [0x18006c5e8]
mov word [rbp + 0x24], ax
movzx eax, byte [0x18006c5ea]
mov byte [rbp + 0x26], al
jmp case.0x18003d46c.12
mov r8d, 3
lea rdx, [0x18006c5ec]
lea rcx, [rbp + 0x27]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movzx eax, word [0x18006c5f0]
lea rdx, [0x1800693d8]
mov word [rbp + 0x29], ax
lea rcx, [rbp + 0x2b]
movzx eax, byte [0x18006c5f2]
mov r8d, 2
mov byte [rbp + 0x2b], al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r8, qword [rsp + 0x68]
jmp case.0x18003d46c.12
mov eax, 0x56
mov word [rbp + 0x26], ax
jmp case.0x18003d46c.12
mov dword [r10 + 0x154], 1
lea r9, [rsp + 0x58]
mov eax, dword [rbx]
lea r8, [rbp - 0x50]
mov edx, 0x7d
mov dword [rsp + 0x58], eax
mov rcx, r10
call fcn.18003f8e0
test eax, eax
je 0x18003d4a7
mov r8, qword [rsp + 0x68]
jmp case.0x18003d46c.12
mov r9b, 1
mov byte [rsp + 0x40], r9b
jmp 0x18003d98f
cmp r8, 0xffffffffffffffff
jne 0x18003d7c2
mov ebx, r11d
nop
cmp ebx, 0x1b
ja case.0x18003d759.23
lea r8, [0x180000000]
mov eax, ebx
mov ecx, dword [r8 + rax*4 + 0x3e15c]
add rcx, r8
jmp rcx
mov dword [rbp + 0x44], 0x450052
jmp case.0x18003d759.23
mov word [rbp + 0x8e], r9w
jmp case.0x18003d759.23
mov dword [rbp + 0x86], 0x670073
mov dword [rbp + 0x8a], 0x57005f
jmp case.0x18003d759.23
mov sil, 1
mov r14d, r11d
jmp case.0x18003d759.23
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
mov edx, 0x5f
lea r9d, [rdx + 0xa]
test eax, eax
jne 0x18003d7ae
xor sil, sil
xor r11d, r11d
inc ebx
lea eax, [rbx + 0x7d]
cmp eax, 0x99
jb 0x18003d740
mov r8, qword [rsp + 0x68]
movzx r9d, byte [rsp + 0x40]
mov cl, 1
mov dword [rsp + 0x44], ecx
mov dword [rbp - 0x80], r11d
jmp 0x18003d993
mov eax, 0x53
mov word [rbp + 0x36], ax
jmp case.0x18003d759.23
mov dword [rbp + 0x94], 0x740053
mov dword [rbp + 0x98], 0x70006f
mov word [rbp + 0x9c], r11w
jmp case.0x18003d759.23
mov dword [rbp + 0x38], 0x5f0050
mov dword [rbp + 0x3c], 0x310032
jmp case.0x18003d759.23
mov dword [rbp + 0x90], 0x6c006c
jmp case.0x18003d759.23
mov word [rbp + 0x5a], dx
jmp case.0x18003d759.23
mov dword [rbp + 0x7e], 0x3a0065
mov dword [rbp + 0x82], 0x4d003a
jmp case.0x18003d759.23
mov eax, 0x43
mov dword [rbp + 0x48], 0x5f0045
mov word [rbp + 0x4c], ax
jmp case.0x18003d759.23
mov eax, 0x65
mov dword [rbp + 0x74], 0x720042
mov word [rbp + 0x72], ax
mov word [rbp + 0x78], r9w
jmp case.0x18003d759.23
mov word [rbp + 0x64], r11w
mov dword [rbp + 0x68], 0x490050
mov dword [rbp + 0x6c], 0x61006d
jmp case.0x18003d759.23
mov eax, 0x67
mov word [rbp + 0x70], ax
jmp case.0x18003d759.23
mov dword [rbp + 0x4e], 0x4e004f
jmp case.0x18003d759.23
mov word [rbp + 0x40], dx
jmp case.0x18003d759.23
mov eax, 0x41
mov word [rbp + 0x5c], ax
jmp case.0x18003d759.23
mov eax, 0x54
mov word [rbp + 0x42], ax
jmp case.0x18003d759.23
mov word [rbp + 0x30], dx
jmp case.0x18003d759.23
mov dword [rbp + 0x60], 0x580044
jmp case.0x18003d759.23
mov dword [rbp + 0x32], 0x450052
jmp case.0x18003d759.23
mov r8d, r14d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_UrlCompareW]
test sil, sil
je 0x18003d902
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov edx, 0x5f
mov byte [rsp + 0x50], 0
lea r9d, [rdx + 0xa]
jmp 0x18003d7ae
mov eax, 0x4e
mov dword [rbp + 0x54], 0x430045
mov word [rbp + 0x52], ax
mov eax, 0x54
mov word [rbp + 0x58], ax
jmp case.0x18003d759.23
mov dword [rbp + 0x7a], 0x670064
jmp case.0x18003d759.23
mov eax, 0x4e
mov word [rbp + 0x5e], ax
jmp case.0x18003d759.23
cmp qword [r10 + 0x18], 8
mov rcx, r10
jb 0x18003d95a
mov rcx, qword [r10]
mov qword [rsp + 0x30], r11
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8, rax
mov qword [rsp + 0x68], rax
movzx r9d, byte [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
mov r10, qword [rsp + 0x70]
dec r12d
mov rbx, qword [rsp + 0x78]
dec r15d
xor r11d, r11d
cmp r12d, r13d
jbe 0x18003dab6
lea rcx, [0x180000000]
jmp 0x18003d43e
lea r9, [r10 + 0x178]
mov rax, qword [r9]
lea rbx, [r10 + 0x180]
cmp qword [rbx], rax
jne 0x18003da05
lea r8, [r10 + 0x170]
mov edx, 0x44
mov rcx, rbx
call fcn.180060df0
test eax, eax
jne 0x18003da00
mov rax, qword [rsp + 0x70]
mov dword [rax], 1
xor eax, eax
jmp 0x18003e0d5
mov r10, qword [rsp + 0x70]
mov rax, qword [rbx]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x50]
mov r9d, 0x5a
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x58], 1
mov dword [rax], 0xc
add qword [rbx], 4
mov qword [rsp + 0x20], r10
call fcn.18000e550
jmp 0x18003e0d5
mov rcx, qword [rsp + 0x78]
lea r9, [rbp]
mov r8, r10
mov dword [r10 + 0x188], 0xc
mov edx, 0xff
movaps xmmword [rbp], xmm1
movsd qword [rbp + 0x10], xmm0
call fcn.18003e4f0
jmp 0x18003e0d5
movups xmm0, xmmword [rdi + 0x20]
lea r9, [rbp]
mov r8, r10
movsd xmm1, qword [rdi + 0x30]
mov edx, 0xff
mov rcx, rbx
movaps xmmword [rbp], xmm0
movsd qword [rbp + 0x10], xmm1
call fcn.18003e4f0
jmp 0x18003e0d5
movzx r9d, byte [rsp + 0x40]
mov byte [rsp + 0x40], r9b
movzx ecx, byte [rsp + 0x40]
mov dword [rsp + 0x44], ecx
jmp 0x18003daba
mov edx, dword [rsp + 0x4c]
imul eax, edx, 0x2c
mov r12d, edx
mov dword [rsp + 0x48], eax
cmp edx, eax
ja case.0x18003d759.27
mov r13d, dword [rsp + 0x58]
mov rsi, qword [rbp - 0x68]
movzx edi, byte [rsp + 0x40]
mov r15d, dword [rsp + 0x58]
mov r14d, dword [rsp + 0x60]
nop dword [rax]
nop dword [rax + rax]
cmp r12d, 0x1320
ja 0x18003dd3a
je 0x18003dd2c
mov eax, r12d
sub eax, 0xfc
je 0x18003dc4e
sub eax, 0x24
je 0x18003dc48
sub eax, 0x3cc
je case.0x18003d759.27
sub eax, 0x534
je 0x18003db83
cmp eax, 0x480
jne 0x18003dc16
lea rcx, [rbp + 0x20]
call qword [sym.imp.GDI32.dll_CreateMetaFileA]
xor edx, edx
mov rcx, rbx
mov qword [rbp - 0x78], rax
call fcn.18000a9a0
mov rcx, qword [rsp + 0x68]
lea r9, [rbp - 0x80]
mov rdx, rax
mov r8d, r14d
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, r13d
lea rcx, [rbp - 0x68]
xor edx, edx
call qword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov qword [rbp - 0x60], rax
jmp 0x18003dc12
xor edx, edx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rdx, qword [rbx + 0x10]
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp rcx, rdx
ja 0x18003dbb4
mov qword [rbx + 0x10], rcx
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18003dbae
mov rax, qword [rbx]
mov byte [rax + rcx], 0
jmp 0x18003dc07
mov r8, qword [rbx + 0x18]
mov r14, rcx
mov rax, r8
sub r14, rdx
sub rax, rdx
cmp r14, rax
ja 0x18003dbf1
mov qword [rbx + 0x10], rcx
mov rax, rbx
cmp r8, 0x10
jb 0x18003dbd9
mov rax, qword [rbx]
lea rbx, [rax + rdx]
mov r8, r14
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov byte [r14 + rbx], 0
jmp 0x18003dc07
mov r9, r14
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.180009460
mov r13d, 2
mov r14d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x48]
lea r12d, [r12 + rdx*4]
cmp r12d, eax
ja case.0x18003d759.27
mov ecx, dword [rsp + 0x44]
xor r11d, r11d
mov r10, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x68]
movzx r9d, byte [rsp + 0x40]
jmp 0x18003daf0
mov qword [rbp - 0x68], r11
jmp 0x18003dc16
lea rcx, [r10 + 0x110]
mov rax, qword [rcx]
lea rbx, [r10 + 0x120]
cmp qword [rbx], rax
jne 0x18003dcf1
lea r9, [r10 + 0x108]
mov qword [rsp + 0x20], rbx
lea rdx, [r10 + reloc.SHLWAPI.dll_SHRegGetIntW]
mov r8d, 0x104
call fcn.18002bde0
test eax, eax
jne 0x18003dcf1
mov rax, qword [rsp + 0x70]
mov ebx, 0xb1
mov dword [rax], 1
nop word [rax + rax]
cmp ebx, 0xb1
je 0x18003dcb6
cmp ebx, 0x3750
je 0x18003d4a7
jmp 0x18003dcd6
xor eax, eax
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov r9d, 0xbe
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1800640d0
add ebx, 0x369f
cmp ebx, 0x6d3e
jbe 0x18003dca0
mov dword [rsp + 0x50], 1
jmp 0x18003dc12
mov rax, qword [rbx]
movaps xmm0, xmmword [rbp - 0x50]
mov dword [rsp + 0x50], 1
movups xmmword [rax], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rax + 0x40], xmm0
add qword [rbx], 0x50
jmp 0x18003dc12
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003dc12
cmp r12d, 0x17a0
je 0x18003e0b7
cmp r12d, 0x1c20
je 0x18003dd8b
cmp r12d, 0x20a0
je 0x18003dd6b
cmp r12d, 0x2520
je case.0x18003d759.27
jmp 0x18003dc1a
test cl, cl
je 0x18003dd81
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov byte [rsp + 0x50], 1
jmp 0x18003dc1a
mov rbx, qword [rbp - 0x60]
mov ecx, r11d
test rbx, rbx
movzx eax, r9b
cmovne ecx, eax
mov eax, dword [rsp + 0x60]
mov byte [rsp + 0x40], cl
cmp eax, dword [rbp - 0x80]
je 0x18003e09e
mov r14d, 0x15
cmp r14d, 0x15
ja case.default.0x18003ddd1
lea rdx, [0x180000000]
mov eax, r14d
mov ecx, dword [rdx + rax*4 + 0x3e1cc]
add rcx, rdx
jmp rcx
mov r8d, 4
lea rdx, [0x18006c60e]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 2
lea rdx, [0x18006c63a]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 2
lea rdx, [0x18006c683]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
xor r11d, r11d
jmp case.default.0x18003ddd1
mov byte [rbp + 0xf], 0
jmp case.default.0x18003ddd1
movzx eax, word [0x18006c694]
lea rdx, [0x18006c6ee]
mov word [rbp], ax
lea rcx, [rbp + 3]
movzx eax, byte [0x18006c696]
mov r8d, 1
mov byte [rbp + 2], al
mov byte [rbp + 3], 0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
xor r11d, r11d
jmp case.default.0x18003ddd1
mov eax, 0x2271
mov byte [rbp + 0x13], 0
mov word [rbp + 0x11], ax
jmp case.default.0x18003ddd1
mov byte [rbp + 0x3c], 0
jmp case.default.0x18003ddd1
call qword [sym.imp.WINMM.dll_joyGetNumDevs]
mov esi, eax
xor r11d, r11d
jmp case.default.0x18003ddd1
mov byte [rbp + 4], 0
jmp case.default.0x18003ddd1
mov r8d, 3
mov byte [rbp + 0x41], 0
lea rdx, [0x18006c712]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
xor r11d, r11d
jmp case.default.0x18003ddd1
mov r8d, 4
mov word [rbp + 0x33], 0x74
lea rdx, [0x18006c7fd]
lea rcx, [rbp + 0x34]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
xor r11d, r11d
jmp case.default.0x18003ddd1
movzx eax, word [0x18006c824]
mov word [rbp + 4], ax
movzx eax, byte [0x18006c826]
mov byte [rbp + 6], al
mov byte [rbp + 7], 0x4d
jmp case.default.0x18003ddd1
mov r8d, 1
mov byte [rbp + 8], 0
lea rdx, [0x18006c863]
lea rcx, [rbp + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
xor r11d, r11d
jmp case.default.0x18003ddd1
mov byte [rbp + 0xe], 0x22
jmp case.default.0x18003ddd1
mov eax, 0x2266
mov word [rbp + 0xf], ax
jmp case.default.0x18003ddd1
mov rcx, qword [rsp + 0x78]
mov rax, rcx
mov qword [rcx + 0x10], r11
cmp qword [rcx + 0x18], 0x10
jb 0x18003df4b
mov rax, qword [rcx]
mov byte [rax], 0
jmp case.default.0x18003ddd1
mov dil, 1
jmp case.default.0x18003ddd1
mov r8d, 3
lea rdx, [0x18006c8dc]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
xor r11d, r11d
mov byte [rbp + 0x3f], 0
jmp case.default.0x18003ddd1
mov r8d, 2
mov byte [rbp + 9], 0
lea rdx, [0x18006c8f8]
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 3
lea rdx, [0x18006c9f9]
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
xor r11d, r11d
jmp case.default.0x18003ddd1
movzx eax, word [0x18006ca04]
mov word [rbp + 0x30], ax
movzx eax, byte [0x18006ca06]
mov byte [rbp + 0x32], al
mov byte [rbp + 0x33], 0
jmp case.default.0x18003ddd1
mov ecx, r11d
movzx eax, dil
cmp rsi, 0xf
lea r8, [rbp + 0x30]
lea rdx, [rbp]
cmovbe ecx, eax
movzx edi, cl
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test dil, dil
je 0x18003de18
mov ebx, 0x62
nop word [rax + rax]
mov eax, ebx
sub eax, 0x62
je 0x18003e064
sub eax, 1
je 0x18003e049
xor r11d, r11d
cmp eax, 1
jne 0x18003e06a
test r15d, r15d
movzx eax, dil
mov ecx, r11d
cmove ecx, eax
movzx edi, cl
test cl, cl
je 0x18003e06a
mov edx, dword [rsp + 0x58]
mov ecx, esi
call qword [sym.imp.WINMM.dll_joySetThreshold]
xor r11d, r11d
jmp 0x18003e06a
xor eax, eax
lea rdx, [rsp + 0x58]
mov ecx, esi
mov dword [rsp + 0x58], eax
call qword [sym.imp.WINMM.dll_joyGetThreshold]
mov r15d, eax
xor r11d, r11d
jmp 0x18003e06a
xor r11d, r11d
mov esi, r11d
inc ebx
cmp ebx, 0x65
jb 0x18003e010
jmp case.default.0x18003ddd1
mov eax, 0x6176
mov word [rbp + 0x3f], ax
jmp case.default.0x18003ddd1
mov dword [rbp + 0x38], 0x6f6c6376
dec r14d
lea eax, [r14 + 0xd0]
cmp eax, 0xcf
ja 0x18003ddb3
mov rbx, qword [rbp - 0x60]
cmp byte [rsp + 0x40], 0
je 0x18003dc0d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x18003dc0d
cmp qword [rbp - 0x78], 0
movzx ecx, cl
cmove ecx, r11d
mov dword [rsp + 0x44], ecx
jmp 0x18003dc1a
mov byte [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180065820
mov rbx, qword [rsp + 0x308]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret