Function at 0x511eb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ce28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x5120fa
push 0x5b9570
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b9590
push dword [edi]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b95a4
push dword [edi]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], esi
je 0x5120fa
cmp dword [ebp - 0x50], esi
je 0x5120fa
test eax, eax
je 0x5120fa
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x54]
push eax
push 0x20019
push esi
push str.Keyboard_LayoutPreload
push 0x20019
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x54], esi
call fcn.0045bbd0
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x511fa3
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x14
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push 0x5c5b8c
push dword [ebp - 0x54]
movups xmmword [ebp - 0x24], xmm0
call dword [ebp - 0x50]
test eax, eax
jne 0x511f9d
push 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
mov esi, eax
push dword [ebp - 0x54]
call dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.0045be20
test esi, esi
je 0x5120e7
mov eax, dword [edi]
test eax, eax
je 0x5120e7
push 0x5b9570
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b9590
push dword [edi]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5b95a4
push dword [edi]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2c], 0
mov edi, eax
je 0x5120e7
cmp dword [ebp - 0x34], 0
je 0x5120e7
test edi, edi
je 0x5120e7
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
push str.Keyboard_LayoutSubstitutes
push 0x20019
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 0
call fcn.0045bbd0
push eax
call dword [ebp - 0x2c]
test eax, eax
je 0x5120db
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push esi
push str._08x
push eax
call fcn.00446b70
add esp, 0xc
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0x14
cmovae eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x50]
movups xmmword [ebp - 0x24], xmm0
call dword [ebp - 0x34]
test eax, eax
jne 0x5120ca
push 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
add esp, 0xc
mov esi, eax
push dword [ebp - 0x50]
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004046e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0045be20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0045be20
mov eax, esi
jmp 0x5120fc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret