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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1008d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push ebx
push esi
push edi
mov edi, dword [0x1008dcc0]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
test edi, edi
jne 0x10001bb5
push 0x10d1
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImguiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call eax
mov edi, dword [0x1008dcc0]
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp dword [edi + 0x1080], 0
je 0x10001bd2
push 0x8b
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImgui_backendsimgui_impl_win32.cpp
push str.io.BackendPlatformUserData__nullptr___Already_initialized_a_platform_backend__
call eax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x10001dbb
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10001dbb
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, dword [0x1008dcc0]
add esp, 4
mov esi, eax
test ebx, ebx
je 0x10001c5a
movsx edx, word [ebx + 0x6e58]
lea eax, [ebx + 0x6e5c]
mov ecx, dword [ebx + 0x4f18]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x10001c50
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [ebx + 0x6e58], ax
cwde
lea eax, [eax*8 + 0x6e5c]
add eax, ebx
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [ebx + 0x6e50]
test esi, esi
je 0x10001c98
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x10001c9a
xor esi, esi
or dword [edi + 0xc], 6
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x1080], esi
mov dword [edi + 0x1078], 0x100717a0
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], 9
test ebx, ebx
je 0x10001cde
mov edi, dword [ebx + 0x1080]
jmp 0x10001ce0
xor edi, edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add edi, 0x24
shr eax, 0x10
push edi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10001d03
mov dword [edi], eax
mov edi, dword [0x1008dcc0]
cmp dword [edi + 0x5a08], 0
jg 0x10001d27
push 0x768
push str.C:UsersPCDesktopVisual_StudioVisual_StudioImguiimgui.h
push str.i___0__i___Size
call dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [edi + 0x5a10]
xor edi, edi
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], str.xinput1_4.dll
mov dword [ebp - 0x38], str.xinput1_3.dll
mov eax, dword [eax]
mov dword [ebp - 0x34], str.xinput9_1_0.dll
mov dword [ebp - 0x30], str.xinput1_2.dll
mov dword [ebp - 0x2c], str.xinput1_1.dll
mov dword [eax + 0x24], ecx
mov byte [esi + 0x29], 1
nop
push dword [ebp + edi*4 - 0x3c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x10001d89
inc edi
cmp edi, 5
jl 0x10001d60
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006eb52
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [esi + 0x2c], ebx
call edi
push str.XInputGetState
push ebx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006eb52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006eb52
mov esp, ebp
pop ebp
ret