Function at 0x1400033d0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1400ee040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rsi, qword [0x1401b72c0]
mov r14, rcx
test rsi, rsi
jne 0x140003425
mov r8d, 0x1129
lea rdx, str.D:VSSource_repos_sharpmacro_old_sharpmacroimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rsi, qword [0x1401b72c0]
cmp qword [rsi + 0x98], 0
je 0x140003449
mov r8d, 0x93
lea rdx, str.D:VSSource_repos_sharpmacro_old_sharpmacroimgui_backendsimgui_impl_win32.cpp
lea rcx, str.io.BackendPlatformUserData__nullptr___Already_initialized_a_platform_backend__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400037ee
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400037ee
mov qword [rsp + 0xb0], rbx
mov ecx, 0x50
mov qword [rsp + 0xb8], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x1400034aa
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
jmp 0x1400034ad
mov rdi, rbx
or dword [rsi + 0xc], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], r14
mov byte [rdi + 0x30], 1
mov rax, qword [rbp - 0x19]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp - 0x11]
mov qword [rdi + 0x18], rax
mov rax, qword [0x1401b72c0]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x1400034fc
mov r14, qword [rax + 0x98]
jmp 0x1400034ff
mov r14, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [r14 + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14000352b
mov dword [r14 + 0x2c], ebx
mov r14, qword [0x1401b72c0]
cmp dword [r14 + 0x4c78], ebx
jg 0x140003555
mov r8d, 0x7df
lea rdx, str.D:VSSource_repos_sharpmacro_old_sharpmacroimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 0x4c80]
mov rcx, qword [rax]
mov rax, qword [rdi]
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x48], rax
test dword [rsi + 8], 0x400
je 0x140003750
lea rax, [0x1400069c0]
mov dword [rbp - 9], 0x50
xor ecx, ecx
mov qword [rbp - 1], rax
mov dword [rbp - 5], 0x23
mov qword [rbp + 7], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movdqa xmm1, xmmword [0x1400d9d30]
lea rcx, [rbp - 9]
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
lea rax, str.ImGui_Platform
movdqa xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x37], rax
movdqa xmmword [rbp + 0x27], xmm1
mov qword [rbp + 0x3f], rbx
call qword [sym.imp.USER32.dll_RegisterClassExW]
call fcn.1400048f0
mov rcx, qword [0x1401b72c0]
test rcx, rcx
jne 0x140003600
mov r8d, 0x112f
lea rdx, str.D:VSSource_repos_sharpmacro_old_sharpmacroimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___or_ImGui::SetCurrentContext____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x1401b72c0]
lea rax, [0x140005f80]
mov qword [rcx + 0x3920], rax
lea rsi, [rcx + 0x4c78]
lea rax, [0x140006150]
mov qword [rcx + 0x3928], rax
lea rax, [0x1400061f0]
mov qword [rcx + 0x3930], rax
lea rax, [0x1400064f0]
mov qword [rcx + 0x3938], rax
lea rax, [0x140006480]
mov qword [rcx + 0x3940], rax
lea rax, [0x140006630]
mov qword [rcx + 0x3948], rax
lea rax, [0x1400065a0]
mov qword [rcx + 0x3950], rax
lea rax, [0x1400066f0]
mov qword [rcx + 0x3958], rax
lea rax, [0x140006740]
mov qword [rcx + 0x3960], rax
lea rax, [0x140006780]
mov qword [rcx + 0x3968], rax
lea rax, [0x1400067c0]
mov qword [rcx + 0x3970], rax
lea rax, [0x140006890]
mov qword [rcx + 0x3978], rax
lea rax, [0x140006280]
mov qword [rcx + 0x3980], rax
lea rax, [0x140006970]
mov qword [rcx + 0x3998], rax
lea rax, [fcn.140001c10]
mov qword [rcx + 0x39a0], rax
cmp dword [rsi], ebx
jg 0x1400036fe
mov r8d, 0x7df
lea rdx, str.D:VSSource_repos_sharpmacro_old_sharpmacroimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x1401b72c0]
mov rax, qword [rsi + 8]
mov r14, qword [rax]
test rcx, rcx
je 0x140003713
mov rsi, qword [rcx + 0x98]
jmp 0x140003716
mov rsi, rbx
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
je 0x140003739
mov qword [rax + 8], rbx
mov qword [rax], rbx
mov byte [rax + 0x10], bl
mov qword [rax + 0x14], rbx
jmp 0x14000373c
mov rcx, rbx
mov rax, qword [rsi]
mov qword [rcx], rax
mov byte [rcx + 0x10], bl
mov qword [r14 + 0x40], rcx
mov rax, qword [rsi]
mov qword [r14 + 0x48], rax
lea rax, str.xinput1_4.dll
mov byte [rdi + 0x32], 1
mov qword [rbp - 9], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 1], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 7], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0xf], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x17], rax
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 - 9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400037ae
inc rbx
cmp rbx, 5
jl 0x140003790
jmp 0x1400037da
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0xb8]
mov al, 1
mov rbx, qword [rsp + 0xb0]
jmp 0x1400037f0
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400b7380
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret