Function at 0x100051f0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047136
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x14
movups xmmword [ecx], xmm0
push str.Reloaded_Server_List
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.LAN_Seek_Games_List
mov ecx, str.TitlePage
call fcn.10004fe0
mov ecx, esp
xorps xmm0, xmm0
push 0x10
push str.Reloaded_Session
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.LAN_Menu
mov ecx, str.TitlePage
call fcn.10004fe0
mov ecx, esp
xorps xmm0, xmm0
push 0x10
push str.Reloaded_Session
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.LAN_Menu
mov ecx, str.TitrePage.Caption
call fcn.10004fe0
mov ecx, esp
xorps xmm0, xmm0
push 0xe
push str.Reloaded_Lobby
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.Lobby_Create
mov ecx, str.TitlePage
call fcn.10004fe0
mov ecx, esp
xorps xmm0, xmm0
push 0x10
push str.Play_Multiplayer
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.Menu_Multi
mov ecx, str.MainPage_LAN.Caption
call fcn.10004fe0
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
push esi
push 1
push 0x29
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
push pe_nt_image_headers32
mov edi, eax
lea eax, [ebp - 0x120]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
push esi
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x29
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xorps xmm0, xmm0
test eax, eax
jle 0x1000555e
push 1
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x15c], 0
movups xmmword [ebp - 0x16c], xmm0
mov dword [ebp - 0x158], 0
call fcn.10008f60
push 0x3b
push str.Mouse_Sensitivity___set_with_sens__value__in_console__bind
push 0
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0
call fcn.10009570
mov dword [ebp - 0x144], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x140], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x154], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x144], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0x10069a48
lea edx, [ebp - 0x154]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.10008720
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x140]
cmp ecx, 7
jbe 0x10005470
mov edx, dword [ebp - 0x154]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005466
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100054c3
push ecx
push edx
call fcn.10045a15
add esp, 8
xor eax, eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 7
mov word [ebp - 0x154], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x158]
cmp ecx, 7
jbe 0x100054d3
mov edx, dword [ebp - 0x16c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100054c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100054c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10045a15
add esp, 8
xor eax, eax
mov dword [ebp - 0x15c], 0
sub esp, 0x18
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x158], 7
mov ecx, esp
push eax
call fcn.10006b20
mov edx, str.Controller_Settings
mov ecx, str.MouseSensitive.Caption
call fcn.10004fe0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov ecx, dword [ebp - 0x124]
cmp ecx, 7
jbe 0x10005592
mov edx, dword [ebp - 0x138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005552
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10005552
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10045a15
add esp, 8
jmp 0x10005592
sub esp, 0x18
mov ecx, esp
push 0x34
movups xmmword [ecx], xmm0
push str.Mouse_Sensitivity___set_with_sens__value__in_console
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.Controller_Settings
mov ecx, str.MouseSensitive.Caption
call fcn.10004fe0
add esp, 0x18
call fcn.100045f0
test al, al
je 0x100055a9
sub esp, 0x18
mov ecx, esp
push 0x2a
push str.Cannot_join:_Requires_Enhanced_SCCT_Versus
jmp 0x100055d3
mov eax, dword [0x1007c0d0]
mov al, byte [eax]
mov byte [0x10080505], al
sub esp, 0x18
cmp byte [0x10080505], 0x33
mov ecx, esp
jne 0x100055cc
push 0x27
push str.Cannot_join:_Requires_Stock_SCCT_Versus
jmp 0x100055d3
push 0x28
push str.Cannot_join:_Using_Newer_Versus_Enhanced
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100044d0
mov edx, str.LAN_Seek_Games_List
mov ecx, str.NoGoodVersion
call fcn.10004fe0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045a07
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret