Function at 0x14003e770
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1400a7010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, 1
mov r8, rax
lea ecx, [rdx + 0x28]
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
xor esi, esi
mov qword [0x140106ef0], rbx
mov dword [0x1400a7c58], eax
xor ecx, ecx
lea rax, [0x140050dd0]
mov qword [0x140107100], 0x50
mov qword [0x140107108], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x29], 0x50
mov qword [0x140107110], rsi
mov qword [rbp - 0x19], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, qword [0x140106ef0]
lea edx, [rsi + 0x66]
mov qword [0x140107118], rax
mov qword [rbp - 0x11], rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x140106ef0]
lea edx, [rsi + 0x66]
mov qword [0x140107120], rax
mov qword [rbp - 9], rax
lea rax, str.MyWindowClass
mov qword [0x140107140], rax
mov qword [rbp + 0x17], rax
mov qword [0x140107128], rsi
mov qword [rbp - 1], rsi
mov qword [0x140107130], rsi
mov qword [rbp + 7], rsi
mov qword [0x140107138], rsi
mov qword [rbp + 0xf], rsi
call qword [sym.imp.USER32.dll_LoadIconW]
movups xmm0, xmmword [rbp - 0x29]
mov qword [rbp + 0x1f], rax
lea rcx, [0x140107100]
movups xmm1, xmmword [rbp - 0x19]
movaps xmmword [0x140107100], xmm0
movups xmm0, xmmword [rbp - 9]
movaps xmmword [0x140107110], xmm1
movups xmm1, xmmword [rbp + 7]
movaps xmmword [0x140107120], xmm0
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [0x140107130], xmm1
movaps xmmword [0x140107140], xmm0
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [0x140107118]
lea r8, str.Auto_Fisher
mov rdx, qword [0x140107140]
mov r9d, 0x80000000
mov qword [rsp + 0x58], rsi
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x12c
mov dword [rsp + 0x30], 0x1c2
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140106ef8], rax
mov qword [0x1401071a0], rax
lea rax, [0x140106f30]
mov qword [rsp + 0x58], rax
lea rax, [0x140106f28]
mov qword [rsp + 0x50], rax
mov dword [rbp + 0x27], 0xb000
mov dword [rbp + 0x2b], 0xa000
mov dword [0x140107178], 0x3c
mov dword [0x14010717c], 1
mov dword [0x140107180], 0x1c
mov dword [0x14010718c], 1
mov dword [0x140107194], 0x20
mov dword [0x140107198], 2
mov qword [0x1401071a8], 1
mov dword [0x1401071b0], 2
lea rax, [0x140106f40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea edx, [rsi + 1]
lea rax, [0x140106f20]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [0x140107170]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x27]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov rcx, qword [0x140106f20]
lea r9, [rbp + 0x27]
mov qword [rbp + 0x27], rsi
lea r8, [0x140099e60]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp + 0x27]
test rdx, rdx
je 0x14003ea1b
mov rcx, qword [0x140106f40]
lea r9, [0x140106f08]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x27]
mov rax, qword [rcx]
call qword [rax + 0x10]
movaps xmm0, xmmword [0x14009a660]
lea r8, [0x140106f70]
mov edx, 0x5b4ca
mov qword [0x140107150], rsi
lea rcx, [0x1400a99c0]
movups xmmword [0x140107158], xmm0
call fcn.140052620
lea r8, [0x140106f58]
mov edx, 0x1c75
lea rcx, [0x1400a7d40]
call fcn.140052620
call fcn.140052910
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov qword [0x140106f18], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, qword [0x140106f18]
mov edx, 0xa
mov r8d, edx
mov qword [0x140106f68], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, qword [0x140106f68]
mov rdx, rax
mov qword [0x140106f50], rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, str.ArkAscended.exe
lea rcx, [rbp + 0x27]
call fcn.14003ef90
mov rcx, rax
call fcn.140051f00
mov rcx, qword [0x140106ef8]
mov edx, 0xa
mov dword [0x140106f00], eax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140106ef8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, 8
call fcn.1400564ec
lea rcx, [0x14003e070]
mov r9, rax
lea r8, [0x14003f0d0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.140067eb4
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14003eefb
cmp dword [rbp - 0x31], esi
je 0x14003ef09
movaps xmm0, xmmword [rbp - 0x39]
lea rcx, [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
call fcn.140057268
test eax, eax
jne 0x14003ef14
xorps xmm0, xmm0
mov qword [rsp + 0x108], rdi
movdqa xmmword [rbp - 0x39], xmm0
mov bl, 1
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14003ebda
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [rbp - 0x21]
add eax, 0xfffffff0
test eax, 0xfffffffd
je 0x14003ebba
cmp byte [0x1400a7c50], sil
jne 0x14003ebbc
xor bl, bl
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14003eb90
call fcn.1400512f0
cmp byte [0x140106f04], sil
je 0x14003eca8
cmp byte [0x140106f05], sil
jne 0x14003ec38
lea rdx, str.ArkAscended
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [0x140106ee8], rax
mov r10, rax
test rax, rax
jne 0x14003ecbd
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Ark_aint_even_open_buddio
call qword [sym.imp.USER32.dll_MessageBoxW]
mov byte [0x140106f04], sil
mov r10, qword [0x140106ee8]
mov ecx, dword [0x1400a7c5c]
mov eax, 0x51eb851f
inc ecx
imul ecx
mov dword [0x1400a7c5c], ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x32
cmp ecx, eax
jne 0x14003eca8
mov edx, 0x201
mov r9d, 0x640064
mov r8d, 1
mov rcx, r10
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140106ee8]
mov edx, 0x202
mov r9d, 0x640064
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [0x140106e80]
test rax, rax
je 0x14003ecc9
mov rcx, qword [rax + 0x98]
jmp 0x14003eccc
mov byte [0x140106f05], 1
jmp 0x14003ec3f
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x14003ecd7
call fcn.14002bfc0
call fcn.14002cf90
call fcn.140007cc0
call fcn.140052fd0
call fcn.140009d90
mov rcx, qword [0x140106f30]
lea r8, [0x140106f08]
movaps xmm0, xmmword [0x14009a7b0]
xor r9d, r9d
movups xmmword [rbp + 0x27], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x140106f30]
lea r8, [rbp + 0x27]
mov rdx, qword [0x140106f08]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140106e80]
mov rcx, qword [rax + 0x48c8]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], sil
cmovne rcx, rax
call fcn.14002b550
mov rcx, qword [0x140106f20]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
test bl, bl
jne 0x14003eb70
mov rbx, qword [0x140106e80]
test rbx, rbx
je 0x14003ed84
mov rdi, qword [rbx + 0x98]
jmp 0x14003ed87
mov rdi, rsi
call fcn.14002c500
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14003ed9b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003eda9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003edb8
mov rax, qword [rcx]
call qword [rax + 0x10]
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x140106e80]
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x98], rsi
test rax, rax
je 0x14003eddc
dec dword [rax + 0xf0]
mov rcx, rdi
call fcn.140061f50
mov rax, qword [0x140106e80]
test rax, rax
je 0x14003edf9
mov rdi, qword [rax + 0x90]
jmp 0x14003edfc
mov rdi, rsi
mov rcx, qword [rdi + 0x30]
lea rbx, [rax + 8]
test rcx, rcx
je 0x14003ee16
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140106e80]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x88], rsi
test rax, rax
je 0x14003ee30
dec dword [rax + 0xf0]
mov rcx, rdi
call fcn.140061f50
mov rcx, qword [0x140106f20]
mov rdi, qword [rsp + 0x108]
test rcx, rcx
je 0x14003ee52
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140106f30]
test rcx, rcx
je 0x14003ee64
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140106f40]
test rcx, rcx
je 0x14003ee76
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140106f08]
test rcx, rcx
je 0x14003ee88
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140106f70]
test rcx, rcx
je 0x14003ee9a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140106f58]
test rcx, rcx
je 0x14003eeac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140106ef8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x140107118]
mov rcx, qword [0x140107140]
call qword [sym.imp.USER32.dll_UnregisterClassW]
cmp dword [rbp - 0x31], esi
jne 0x14003eef5
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140055d70
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140067f9c
int3
mov ecx, 6
mov dword [rbp - 0x31], esi
call fcn.140057120
int3
mov ecx, 1
call fcn.140057120
int3
mov ecx, eax
call fcn.1400570e4
int3