Function at 0x10075190
Capabilities:
Get geographical location
Get keyboard layout
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10162378]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [0x10167324]
lea eax, [esp + 0x28]
push esi
push edi
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1007536d
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1007536d
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x10167324]
add esp, 4
mov edi, eax
test esi, esi
je 0x1007523c
movsx edx, word [esi + 0x5fa4]
lea eax, [esi + 0x5fa8]
mov ecx, dword [esi + 0x3fe0]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x10075232
lea eax, [edx + 1]
mov dword [esp + 0x10], 6
cdq
idiv dword [esp + 0x10]
movzx eax, dx
mov word [esi + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5f9c]
test edi, edi
je 0x1007524f
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10075251
xor edi, edi
or dword [ebx + 0xc], 0xc06
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x70], str.imgui_impl_win32
mov dword [edi], eax
mov byte [edi + 0x28], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x10075298
mov esi, dword [esi + 0x78]
jmp 0x1007529a
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x100752bd
mov dword [esi], eax
mov eax, dword [0x10167324]
mov eax, dword [eax + 0x4ae8]
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x3c], eax
test dword [ebx + 8], 0x400
je 0x100752e0
call fcn.10078210
mov byte [edi + 0x2a], 1
xor esi, esi
mov dword [esp + 0x1c], str.xinput1_4.dll
mov dword [esp + 0x20], str.xinput1_3.dll
mov dword [esp + 0x24], str.xinput9_1_0.dll
mov dword [esp + 0x28], str.xinput1_2.dll
mov dword [esp + 0x2c], str.xinput1_1.dll
nop
push dword [esp + esi*4 + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x1007533a
inc esi
cmp esi, 5
jl 0x10075310
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10110a52
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10110a52
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10110a52
mov esp, ebp
pop ebp
ret