Function at 0x433d10
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x851c
call fcn.004940f0
mov eax, dword [0x4c1de8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x433d5d
cmp dword [0x4c3f68], 1
mov edx, dword [ebp + 8]
sete al
test al, al
sete al
movzx ecx, al
push ecx
push edx
mov dword [0x4c3f68], edi
call fcn.0042ef10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c1d9c]
mov esi, dword [0x4c1da4]
mov ebx, dword [0x4c1da0]
push 0xff
lea ecx, [esp + 0x22d]
push edi
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [0x4c3f68], edi
mov byte [esp + 0x234], 0
call fcn.004917d0
add esp, 0xc
push 0x1ff
lea edx, [esp + 0x32d]
push edi
push edx
mov byte [esp + 0x334], 0
call fcn.004917d0
xor eax, eax
add esp, 0xc
mov word [esp + 0x12], ax
cmp word [ebx], di
je 0x433efa
xor ecx, ecx
mov word [esp + 0x10], cx
movzx ecx, word [ebx]
mov eax, ecx
sub eax, 0x7b
je 0x433e0f
sub eax, 2
je 0x433ee9
push 0
mov word [esp + 0x14], cx
mov byte [esp + 0x12], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 1
lea edx, [esp + 0x16]
lea eax, [esp + 0x18]
call fcn.00411b50
add esp, 8
jmp 0x433ead
lea eax, [ebx + 2]
push 0x7d
push eax
mov dword [esp + 0x2c], eax
call fcn.00489891
mov edi, eax
add esp, 8
test edi, edi
je 0x433ee9
mov esi, edi
sub esi, ebx
sar esi, 1
dec esi
jne 0x433e47
cmp word [edi + 2], 0x7d
jne 0x433ee9
add edi, 2
mov esi, 1
xor edx, edx
push edx
mov word [edi], dx
mov byte [esp + 0x12], dl
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [esp + 0x24]
push 1
mov ecx, eax
push 1
lea edx, [esp + 0x16]
mov eax, ebx
call fcn.00411b50
add esp, 8
mov byte [esp + 0xf], al
test al, al
je 0x433e86
cmp esi, 1
jne 0x433e9f
mov ax, word [ebx]
mov word [esp + 0x10], ax
jmp 0x433e9f
mov eax, ebx
call fcn.00411ab0
movzx eax, ax
test ax, ax
je 0x433e9f
mov ecx, eax
mov byte [esp + ecx + 0x328], 1
mov al, byte [esp + 0xf]
mov edx, 0x7d
mov word [edi], dx
mov ebx, edi
test al, al
je 0x433ee9
movzx esi, al
or byte [esp + esi + 0x228], 1
cmp word [esp + 0x10], 0
lea esi, [esp + esi + 0x228]
je 0x433ee9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x433ee9
test byte [esp + 0xe], 0x30
je 0x433ee6
or byte [esi], 2
jmp 0x433ee9
or byte [esi], 4
add ebx, 2
cmp word [ebx], 0
jne 0x433dc8
mov esi, dword [esp + 0x18]
mov dword [0x4c3f80], 0
cmp word [esi], 0
je 0x4340ba
cmp dword [0x4c3f7c], 0
jne 0x433f54
push 0x1000
call fcn.00488b54
add esp, 4
mov dword [0x4c3f7c], eax
test eax, eax
jne 0x433f4a
mov ecx, dword [ebp + 8]
push 0x49c820
push 0
push str.Out_of_memory.
call fcn.0042f150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x4c3f84], 0x400
mov ebx, dword [ebp + 8]
mov edi, 3
mov ecx, ebx
call fcn.004200a0
inc eax
cmp eax, dword [0x4c3f8c]
jbe 0x433fcf
mov dword [0x4c3f8c], eax
cmp eax, 0x1000
ja 0x433f82
mov dword [0x4c3f8c], 0x1000
mov eax, dword [0x4c3f88]
test eax, eax
je 0x433f94
push eax
call fcn.0048a11f
add esp, 4
mov ecx, dword [0x4c3f8c]
lea edx, [ecx + ecx]
push edx
call fcn.00488b54
add esp, 4
mov dword [0x4c3f88], eax
test eax, eax
jne 0x433fd4
push 0x49c820
push eax
push str.Out_of_memory.
mov ecx, ebx
mov dword [0x4c3f8c], eax
call fcn.0042f150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c3f88]
mov ecx, dword [0x4c3f80]
mov edx, dword [0x4c3f7c]
mov dword [edx + ecx*4], eax
cmp word [esi], 0
mov edi, dword [0x4c3f88]
mov ebx, esi
je 0x43409a
movzx eax, word [ebx]
cmp eax, 0x2c
je 0x434008
mov word [edi], ax
add edi, 2
jmp 0x43408d
cmp word [ebx + 2], 0x2c
jne 0x43401f
mov eax, 0x2c
mov word [edi], ax
add edi, 2
add ebx, 2
jmp 0x43408d
xor ecx, ecx
mov word [edi], cx
mov ecx, dword [0x4c3f7c]
mov eax, dword [0x4c3f80]
mov edx, dword [ecx + eax*4]
cmp word [edx], 0
je 0x434054
inc eax
mov dword [0x4c3f80], eax
add edi, 2
mov dword [ecx + eax*4], edi
xor eax, eax
mov word [edi], ax
mov eax, dword [0x4c3f80]
mov ecx, dword [0x4c3f7c]
cmp word [ebx + 2], 0
je 0x43408d
mov edx, dword [0x4c3f84]
cmp eax, edx
jb 0x43408d
lea edx, [edx*4 + 0x1000]
push edx
push ecx
call fcn.00489d77
add esp, 8
test eax, eax
je 0x433f2d
add dword [0x4c3f84], 0x400
mov dword [0x4c3f7c], eax
add ebx, 2
cmp word [ebx], 0
jne 0x433ff5
xor eax, eax
mov word [edi], ax
mov ecx, dword [0x4c3f7c]
mov edx, dword [0x4c3f80]
mov eax, dword [ecx + edx*4]
cmp word [eax], 0
je 0x4340ba
inc dword [0x4c3f80]
cmp byte [0x4c1f9c], 0
je 0x4340f8
mov ecx, dword [0x4c1e48]
push 0xc
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4340dd
mov byte [0x4c1f9c], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x4340f8
push 1
push 0xffffffffffffffff
call fcn.004012b0
add esp, 8
push 0x7ffe
xor esi, esi
lea eax, [esp + 0x52e]
xor edx, edx
push esi
push eax
mov dword [0x4c3f90], 1
mov word [0x4c3f94], 0
mov word [esp + 0x534], dx
call fcn.004917d0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x534]
add esp, 0xc
mov dword [0x4c3f98], ecx
mov dword [0x4c3f9c], esi
mov dword [0x4c3fa0], 0x3fff
cmp word [edx], si
je 0x434252
mov ebx, edx
add ebx, 2
lea esp, [esp]
movzx edi, word [ebx - 2]
test edi, 0xffffff80
jne 0x43417e
push 2
push edi
call fcn.00489d0e
add esp, 8
test eax, eax
je 0x43417e
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x434194.43
movzx eax, byte [eax + 0x43455c]
jmp dword [eax*4 + 0x434538]
mov byte [0x4c3f90], 0
jmp case.0x434194.43
mov byte [0x4c3f91], 1
jmp case.0x434194.43
mov byte [0x4c3f92], 1
jmp case.0x434194.43
mov byte [0x4c3f93], 1
jmp case.0x434194.43
push ebx
call fcn.00489d56
add esp, 4
mov dword [0x4c3fa0], eax
cmp eax, 0x3fff
jle case.0x434194.43
mov dword [0x4c3fa0], 0x3fff
jmp case.0x434194.43
mov eax, ebx
call fcn.0040cb80
test al, al
je 0x43421c
push 0x10
push 0
push ebx
call fcn.0048a487
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
fild qword [esp + 0x24]
add esp, 0xc
fmul qword [0x4b8c78]
call fcn.00497220
mov esi, eax
jmp case.0x434194.43
push ebx
call fcn.0048a566
fmul qword [0x4b8c78]
add esp, 4
call fcn.00497220
mov esi, eax
jmp case.0x434194.43
mov byte [0x4c3f94], 1
jmp case.0x434194.43
mov byte [0x4c3f95], 1
add ebx, 2
cmp word [ebx - 2], 0
jne 0x434160
or byte [0x4c285d], 1
cmp dword [0x4c1f78], 0
lea ecx, [esp + 0x228]
lea edx, [esp + 0x328]
mov dword [0x4c3f6c], ecx
mov dword [0x4c3f70], edx
mov dword [0x4c3f68], 1
mov byte [0x4c1f6b], 1
jne 0x43429e
mov eax, dword [0x4bf5c4]
movzx ecx, word [eax]
push ecx
call fcn.00407bd0
add esp, 4
test esi, esi
jle 0x4342e0
cmp byte [0x4c1f9c], 0
jne 0x4342e0
mov eax, 0xa
cmp esi, 0xa
jl 0x4342b7
mov eax, esi
mov edx, dword [0x4c1e48]
push 0x403360
push eax
push 0xc
push edx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne al
mov byte [0x4c1f9c], al
jmp 0x4342e0
push 1
push 0x8000012f
call fcn.004012b0
mov eax, dword [0x4c3f68]
add esp, 8
cmp eax, 1
je 0x4342e0
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x434305
jmp dword [eax*4 + 0x43458c]
push 1
push 0
push 0xffffffffffffffff
push str.Timeout
jmp 0x4344c3
push 1
push 0
push 0xffffffffffffffff
push str.Match
jmp 0x4344c3
mov edx, dword [0x4a540c]
mov ecx, dword [str.EndKey:]
mov eax, dword [0x4a5410]
push 0xf0
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4a5414]
lea edx, [esp + 0x3c]
push 0
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call fcn.004917d0
add esp, 0xc
cmp byte [0x4c3f79], 0
je 0x43440f
push 0xff
lea eax, [esp + 0x12d]
push 0
push eax
mov byte [esp + 0x134], 0
call fcn.004917d0
or byte [esp + 0x144], 0x80
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4343b0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x4343b2
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor ecx, ecx
cmp dword [0x4c1fd4], ecx
push eax
setne cl
lea edx, [esp + 0x3a]
lea eax, [esp + 0x12c]
xor bl, bl
push ecx
movzx ecx, byte [0x4c3f74]
push 2
push edx
push eax
push ecx
call fcn.00411fb0
movzx edx, ax
movzx eax, byte [0x4c3f74]
add esp, 4
push edx
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
push 1
xor ecx, ecx
push ecx
mov word [esp + eax*2 + 0x3e], cx
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
jmp 0x4344c3
cmp byte [0x4c3f78], 0
je 0x434485
mov cx, word [0x4c3f76]
xor eax, eax
cmp word [eax*8 + 0x4bf55c], cx
je 0x434458
inc eax
cmp eax, 0xd
jl 0x434421
movzx edx, cx
push edx
push str.sc_03X
mov esi, 0x79
lea edi, [esp + 0x3e]
call fcn.0046fd90
add esp, 8
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
jmp 0x4344c3
mov edx, dword [eax*8 + 0x4bf558]
push 0x78
push edx
lea eax, [esp + 0x3e]
push eax
call fcn.0048b674
add esp, 0xc
push 1
xor ecx, ecx
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x34]
mov word [esp + 0x132], cx
push eax
jmp 0x4344c3
mov bl, byte [0x4c3f74]
push 1
mov eax, 0x79
lea ecx, [esp + 0x3a]
call fcn.00411a20
add esp, 4
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
jmp 0x4344c3
push 1
push 0
push 0xffffffffffffffff
push 0x4a5418
jmp 0x4344c3
push 1
push 0
push 0xffffffffffffffff
push str.NewInput
mov ecx, dword [0x4c264c]
call fcn.00472870
cmp byte [0x4c1f9c], 0
mov dword [0x4c3f68], 0
je 0x434516
mov ecx, dword [0x4c1e48]
push 0xc
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4344fb
mov byte [0x4c1f9c], 0
push 0x10
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x434516
push 1
push 0xffffffffffffffff
call fcn.004012b0
add esp, 8
mov ecx, dword [esp + 0x20]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x534]
push edx
call fcn.00472870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4