Function at 0x41ff20
Capabilities:
Get keyboard layout
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5300bb
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x34], esi
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [esi + 8]
push 0x416
push eax
call dword [0x5313fc]
push 0
push 0
push 0xf0
push eax
call dword [0x531444]
test eax, eax
je 0x41ffa5
push 0x577000
mov dword [0x576ffc], 1
mov ecx, dword [esi + 8]
push 0x577004
push ecx
call fcn.0041e670
add esp, 0xc
jmp 0x41ffc5
mov dword [0x576ffc], 0
mov edx, dword [esi + 8]
push 0x577004
push edx
mov ebx, 0x577000
call fcn.0041e820
add esp, 8
lea edi, [esp + 0x24]
call fcn.0045e680
mov dword [esp + 0xc8], 0
mov eax, dword [esp + 0x24]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x42000c
lea ecx, [edx - 1]
test ecx, ecx
jl 0x420090
cmp ecx, edx
jg 0x420090
movzx ecx, word [eax + ecx*2]
cmp cx, 0x5c
je 0x42000c
push 0x5c
call fcn.004118c0
mov eax, dword [esp + 0x24]
lea esi, [eax - 0x10]
mov eax, esi
mov dword [esp + 0x5c], esi
call fcn.004020b0
add eax, 0x10
mov dword [esp + 0x30], eax
push 0xc
push str.unuseime.txt
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xd4], 1
call fcn.00411670
mov eax, esi
call fcn.004020b0
add eax, 0x10
mov dword [esp + 0x20], eax
push 0xc
push str.inuseime.txt
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xd4], 2
call fcn.00411670
xor edi, edi
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x30]
mov esi, dword [0x531334]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push edx
call esi
cmp eax, 0xffffffff
jne 0x42009a
call fcn.0041da20
jmp 0x4200a0
push 0x80070057
call fcn.004026a0
mov edi, eax
mov dword [esp + 0x28], edi
mov ebx, dword [0x531320]
push 0
lea eax, [esp + 0x20]
push eax
push 2
lea ecx, [esp + 0x64]
push ecx
mov ebp, 0xfeff
push edi
mov dword [esp + 0x6c], ebp
call ebx
test eax, eax
jne 0x4200c9
call fcn.0041da20
xor edi, edi
mov dword [esp + 0x2c], edi
push edi
push 0x80
push 2
push edi
push 1
mov byte [esp + 0xdc], 4
mov edx, dword [esp + 0x34]
push 0xc0000000
push edx
call esi
cmp eax, 0xffffffff
jne 0x4200fa
call fcn.0041da20
jmp 0x420100
mov edi, eax
mov dword [esp + 0x2c], edi
push 0
lea eax, [esp + 0x20]
push eax
push 2
lea ecx, [esp + 0x5c]
push ecx
push edi
mov dword [esp + 0x64], ebp
call ebx
test eax, eax
jne 0x42011e
call fcn.0041da20
mov edx, dword [0x576728]
mov esi, dword [edx]
mov ebp, 0x576724
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
xor ebx, ebx
cmp ebp, ebx
mov edi, dword [0x576728]
je 0x420147
cmp ebp, 0x576724
je 0x42014c
call fcn.00500ad0
cmp esi, edi
je 0x4204e2
cmp ebp, ebx
jne 0x42015d
call fcn.00500ad0
cmp esi, dword [ebp + 4]
jne 0x420167
call fcn.00500ad0
cmp dword [esi + 0x10], ebx
jne 0x42023c
cmp esi, dword [ebp + 4]
jne 0x42017a
call fcn.00500ad0
cmp dword [esi + 0x5c], ebx
je 0x42020f
mov eax, dword [0x5759e8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5759e8
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xc8], 5
cmp esi, dword [ebp + 4]
jne 0x4201ab
call fcn.00500ad0
mov eax, dword [esi + 0x54]
push eax
push str._08x
lea edi, [esp + 0x20]
call fcn.00401f20
mov edi, dword [esp + 0x20]
add esp, 8
push 0x10
push edi
call dword [0x5314d4]
cmp esi, dword [ebp + 4]
jne 0x4201d7
call fcn.00500ad0
push 1
lea ecx, [esi + 0xc]
push ecx
call fcn.00422e50
lea eax, [edi - 0x10]
mov byte [esp + 0xc8], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4202c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4202c6
cmp esi, dword [ebp + 4]
jne 0x420219
call fcn.00500ad0
mov ecx, dword [esi + 0x54]
push ecx
call dword [0x5314b8]
cmp esi, dword [ebp + 4]
jne 0x42022d
call fcn.00500ad0
push ebx
lea edx, [esi + 0xc]
push edx
call fcn.00422e50
jmp 0x4202c6
cmp esi, dword [ebp + 4]
jne 0x420246
call fcn.00500ad0
cmp dword [esi + 0x10], 1
jne 0x4202c6
push ebx
call dword [0x5315a0]
lea eax, [esp + 0x1c]
push eax
push 0x532360
push 1
push ebx
push 0x532500
call dword [0x5315a4]
cmp eax, ebx
jl 0x4202c0
cmp esi, dword [ebp + 4]
jne 0x420297
call fcn.00500ad0
cmp esi, dword [ebp + 4]
jne 0x420297
call fcn.00500ad0
cmp esi, dword [ebp + 4]
jne 0x420297
call fcn.00500ad0
cmp esi, dword [ebp + 4]
jne 0x420297
call fcn.00500ad0
mov edx, dword [esi + 0x5c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
lea edx, [esi + 0x3c]
push edx
movzx edx, word [esi + 0x24]
push edx
lea edx, [esi + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [0x5315a8]
cmp esi, dword [ebp + 4]
jne 0x4202d0
call fcn.00500ad0
cmp dword [esi + 0x5c], ebx
mov ecx, 0x5759e8
je 0x4203bf
mov eax, dword [0x5759e8]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xc8], 6
cmp esi, dword [ebp + 4]
jne 0x420301
call fcn.00500ad0
mov eax, dword [esi + 0x54]
push eax
push 0x542550
lea edi, [esp + 0x20]
call fcn.00401f20
add esp, 8
push 1
push 0x542558
mov ecx, edi
push ecx
call fcn.00411670
cmp esi, dword [ebp + 4]
jne 0x42032f
call fcn.00500ad0
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00411670
push 1
push 0x542558
lea eax, [esp + 0x20]
push eax
call fcn.00411670
cmp esi, dword [ebp + 4]
jne 0x42035c
call fcn.00500ad0
mov esi, dword [esi + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
call fcn.00411670
push 2
push 0x54255c
lea edx, [esp + 0x20]
push edx
call fcn.00411670
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
mov edi, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x64]
push ecx
lea edx, [eax + eax]
push edx
push esi
push edi
call dword [0x531320]
cmp eax, ebx
jne 0x4203a5
call fcn.0041da20
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
lea eax, [esp + 0xa0]
jmp 0x420493
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xc8], 7
cmp esi, dword [ebp + 4]
jne 0x4203e3
call fcn.00500ad0
mov ecx, dword [esi + 0x54]
push ecx
push 0x542550
lea edi, [esp + 0x20]
call fcn.00401f20
add esp, 8
push 1
push 0x542558
mov edx, edi
push edx
call fcn.00411670
cmp esi, dword [ebp + 4]
jne 0x420411
call fcn.00500ad0
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00411670
push 1
push 0x542558
lea ecx, [esp + 0x20]
push ecx
call fcn.00411670
cmp esi, dword [ebp + 4]
jne 0x42043e
call fcn.00500ad0
mov esi, dword [esi + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x20]
push edx
call fcn.00411670
push 2
push 0x54255c
lea eax, [esp + 0x20]
push eax
call fcn.00411670
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
mov edi, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x58]
push ecx
lea edx, [eax + eax]
push edx
push esi
push edi
call dword [0x531320]
cmp eax, ebx
jne 0x420487
call fcn.0041da20
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea eax, [esp + 0x68]
push 2
push eax
push ebx
push edi
call dword [0x53130c]
cmp eax, 0xffffffff
jne 0x4204a8
call fcn.0041da20
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xc8], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4204cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x48]
call fcn.00426dc0
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
jmp 0x420135
xor ebp, ebp
mov ebx, 0xa
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0xc0]
mov byte [esp + 0xe4], 0xb
push edx
mov dword [esp + 0x3c], ebp
call fcn.0043bb30
add esp, 0x20
xor esi, esi
test byte [esp + 0x1c], 4
je 0x4205b5
lea esi, [ebp + 1]
call fcn.0045cc30
test eax, eax
jne 0x4205d4
call fcn.0045ccd0
test eax, eax
jne 0x4205d4
mov eax, dword [esp + 0x34]
push esi
push eax
call fcn.00422fb0
jmp 0x4205e7
cmp esi, ebp
je 0x4205e2
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00424a70
call fcn.004243d0
push ebp
push ebp
call dword [0x5314c8]
mov byte [esp + 0xc8], bl
mov esi, dword [esp + 0x3c]
cmp esi, ebp
je 0x42063a
mov eax, dword [esp + 0x40]
cmp esi, eax
mov edi, eax
je 0x420631
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x420608
mov esi, dword [esp + 0x3c]
push esi
call fcn.004ffbbe
add esp, 4
lea eax, [esp + 0x6c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call fcn.0042f9a0
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x420663
push eax
call fcn.004ff948
add esp, 4
lea eax, [esp + 0x84]
call fcn.0042f9a0
mov eax, dword [esp + 0x98]
cmp eax, ebp
je 0x420683
push eax
call fcn.004ff948
add esp, 4
lea eax, [esp + 0xa4]
call fcn.00427110
mov eax, dword [esp + 0xb8]
cmp eax, ebp
je 0x4206a3
push eax
call fcn.004ff948
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov esi, dword [0x531378]
je 0x4206b4
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4206bf
push eax
call esi
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4206e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42070f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420737
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret