Function at 0x617c70
Capabilities:
Get keyboard layout
Identify system language via api
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x6187ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
add eax, 0x1c
mov edx, 0x618814
call fcn.00405700
push ebp
call fcn.00617b80
pop ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
mov edx, 0x618828
call fcn.00405af0
jne 0x617ce0
mov eax, dword [esi]
add eax, 0x1c
mov edx, 0x618840
call fcn.00405700
push ebp
call fcn.00617b80
pop ecx
mov eax, dword [esi]
mov dword [eax + 8], 0x640
mov eax, dword [esi]
mov byte [eax + 0x534], 0
mov eax, dword [esi]
mov byte [eax + 0xc], 0
mov eax, dword [esi]
mov dword [eax + 0x14], 0x7d0
mov eax, dword [esi]
mov byte [eax + 0x3f3], 0
mov eax, dword [esi]
mov byte [eax + 0x4d5], 0
mov eax, dword [esi]
mov byte [eax + 0x3e], 0
mov eax, dword [esi]
mov byte [eax + 0x3d], 0
mov eax, dword [esi]
mov byte [eax + 0x3f], 0
mov eax, dword [esi]
mov byte [eax + 0x3c], 0
mov eax, dword [esi]
mov byte [eax + 0x444], 0
mov eax, dword [esi]
mov byte [eax + 0x7d], 1
mov eax, dword [esi]
mov byte [eax + 0x495], 1
mov eax, dword [esi]
mov byte [eax + 0x508], 1
push ebp
call fcn.00617c3c
pop ecx
mov eax, dword [esi]
mov byte [eax + 0x456], 0
mov eax, dword [esi]
mov byte [eax + 0x455], 0
mov eax, dword [esi]
mov byte [eax + 0x457], 0
mov eax, dword [esi]
mov byte [eax + 0x454], 0
mov eax, dword [esi]
mov byte [eax + 0x54d], 0
mov eax, dword [esi]
mov byte [eax + 0x4cc], 0
mov eax, dword [esi]
mov dword [eax + 0x4c8], 0x3e8
mov eax, dword [esi]
mov byte [eax + 0x4b8], 0
mov eax, dword [esi]
add eax, 0x4c4
mov edx, 0x618854
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x4cd], 0
mov eax, dword [esi]
add eax, 0x4b4
mov edx, 0x618860
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x4b0], 0
mov eax, dword [esi]
add eax, 0x4bc
mov edx, 0x618874
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x4c0], 0
mov eax, dword [esi]
add eax, 0x4d0
mov edx, 0x618888
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x51c], 0
mov eax, dword [esi]
mov byte [eax + 0x40], 0
mov eax, dword [esi]
mov byte [eax + 0xc5], 0
lea eax, [ebp - 0x80]
push eax
push 0x1e
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov edx, dword [ebp - 0x80]
mov dword [eax + 0x38], edx
mov ecx, dword [ebp - 8]
dec ecx
test ecx, ecx
jl 0x617e4e
inc ecx
lea eax, [ebp - 0x80]
mov edx, dword [eax]
cmp edx, 0x4090409
jne 0x617e48
mov eax, dword [esi]
mov dword [eax + 0x38], edx
jmp 0x617e4e
add eax, 4
dec ecx
jne 0x617e37
call fcn.00639d54
test al, al
jne 0x617e77
cmp dword [ebp - 8], 1
setg al
mov edx, dword [esi]
mov byte [edx + 0xbc], al
cmp dword [ebp - 8], 1
sete al
mov edx, dword [esi]
mov byte [edx + 0x3b0], al
jmp 0x617e89
mov eax, dword [esi]
mov byte [eax + 0xbc], 0
mov eax, dword [esi]
mov byte [eax + 0x3b0], 1
mov eax, dword [esi]
mov byte [eax + 0x4e5], 0
mov eax, dword [esi]
mov byte [eax + 0x4e4], 0
mov eax, dword [esi]
mov byte [eax + 0x3f4], 1
mov eax, dword [esi]
mov byte [eax + 0x4fd], 1
mov eax, dword [esi]
mov byte [eax + 0x521], 1
mov eax, dword [esi]
mov byte [eax + 0x4fe], 0
call fcn.00639d54
xor ecx, ecx
mov edx, 1
call fcn.0042fe70
mov edx, dword [esi]
mov dword [edx + 0x500], eax
mov eax, dword [esi]
mov byte [eax + 0x509], 1
mov eax, dword [esi]
mov byte [eax + 0x523], 0
call fcn.00639d54
mov edx, dword [esi]
mov byte [edx + 0x50a], al
mov eax, dword [esi]
mov byte [eax + 0x546], 1
mov eax, dword [esi]
mov dword [eax + 0x548], 0x258
mov eax, dword [esi]
mov byte [eax + 0x485], 0
mov eax, dword [esi]
mov byte [eax + 0x48c], 0
mov eax, dword [esi]
mov dword [eax + 0x490], 0x64
mov eax, dword [esi]
mov dword [eax + 0x488], 0x64
mov eax, dword [esi]
mov byte [eax + 0x494], 0
mov eax, dword [esi]
mov byte [eax + 0x4e3], 0
mov eax, dword [esi]
mov byte [eax + 0x522], 0
cmp dword [ebp - 8], 1
setg al
mov edx, dword [esi]
mov byte [edx + 0x41], al
cmp dword [ebp - 8], 1
setg al
mov edx, dword [esi]
mov byte [edx + 0x59], al
mov eax, dword [esi]
mov byte [eax + 0x5a], 0
mov eax, dword [esi]
mov byte [eax + 0x98], 1
mov eax, dword [esi]
mov dword [eax + 0x3e0], 1
mov eax, dword [esi]
mov dword [eax + 0x94], 0xc8
mov eax, dword [esi]
mov byte [eax + 0x3f0], 0
mov eax, dword [esi]
mov byte [eax + 0x41c], 0
mov eax, dword [esi]
mov byte [eax + 0x3f1], 0
mov eax, dword [esi]
mov byte [eax + 0x479], 1
mov eax, dword [esi]
mov byte [eax + 0x544], 1
mov eax, dword [esi]
mov byte [eax + 0x545], 0
mov eax, dword [esi]
mov dword [eax + 0x3f8], 0x26
mov eax, dword [esi]
mov dword [eax + 0x3fc], 0x1c
mov eax, dword [esi]
mov dword [eax + 0x530], 0x14
mov eax, dword [esi]
mov dword [eax + 0x52c], 0x14
mov eax, dword [esi]
mov byte [eax + 0x3f2], 0
mov eax, dword [esi]
mov dword [eax + 0x458], 0xc8
mov eax, dword [esi]
mov dword [eax + 0x39c], 0xff9933
mov eax, dword [esi]
mov dword [eax + 0x394], 0x800000
mov eax, dword [esi]
mov dword [eax + 0x380], 0xfefefe
mov eax, dword [esi]
mov dword [eax + 0x37c], 0xff9933
mov eax, dword [esi]
mov dword [eax + 0x398], 0x808080
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x384], edx
mov eax, dword [esi]
mov dword [eax + 0x390], 0x800000
mov eax, dword [esi]
mov dword [eax + 0x38c], 0x91d0ff
mov eax, dword [esi]
mov dword [eax + 0x3a8], 0xffffff
mov eax, dword [esi]
mov dword [eax + 0x3ec], 0xffffff
mov eax, dword [esi]
mov dword [eax + 0x3a4], 0xcc6600
mov eax, dword [esi]
mov dword [eax + 0x3a0], 0x4e91fe
mov eax, dword [esi]
mov dword [eax + 0x388], 0xffffff
mov eax, dword [esi]
mov dword [eax + 0x3ac], 0xffffff
mov eax, dword [esi]
add eax, 0x428
call fcn.004056ac
mov eax, dword [esi]
add eax, 0x424
call fcn.004056ac
mov eax, dword [esi]
add eax, 0x42c
call fcn.004056ac
mov eax, dword [esi]
mov byte [eax + 0x3b8], 0
mov eax, dword [esi]
mov byte [eax + 0x3b1], 2
mov eax, dword [esi]
mov byte [eax + 0x18], 0x78
mov eax, dword [esi]
mov byte [eax + 0x99], 0xff
mov eax, dword [esi]
add eax, 0x28
mov edx, 0x618894
call fcn.00405700
mov eax, dword [esi]
add eax, 0x84
mov edx, 0x618894
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x2d], 1
mov eax, dword [esi]
mov byte [eax + 0x2c], 0
mov eax, dword [esi]
mov dword [eax + 0x30], 8
mov eax, dword [esi]
mov byte [eax + 0x90], 1
mov eax, dword [esi]
mov byte [eax + 0x88], 0
mov eax, dword [esi]
mov dword [eax + 0x8c], 0xa
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [esi]
mov byte [eax + 0x409], 1
mov eax, dword [esi]
add eax, 0x418
mov edx, 0x618894
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x410], 1
mov eax, dword [esi]
mov byte [eax + 0x408], 0
mov eax, dword [esi]
mov dword [eax + 0x40c], 0x14
mov eax, dword [esi]
mov dword [eax + 0x414], 0xffffff
mov eax, dword [esi]
mov dword [eax + 0x404], 0x190
mov eax, dword [esi]
mov byte [eax + 0x51f], 1
mov eax, dword [esi]
mov dword [eax + 0x448], 1
mov eax, dword [esi]
mov byte [eax + 0x44c], 1
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x45c], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x504], edx
mov eax, dword [esi]
mov byte [eax + 0x524], 0
mov eax, dword [esi]
mov byte [eax + 0x51e], 1
mov eax, dword [esi]
mov byte [eax + 0x54c], 1
mov eax, dword [esi]
add eax, 0x34
call fcn.004056ac
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [esi]
mov byte [eax + 0x48], 0
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x3b4], edx
mov eax, dword [esi]
mov byte [eax + 0x4e2], 0
mov eax, dword [esi]
mov dword [eax + 0x4c], 0x1f4
mov eax, dword [esi]
mov dword [eax + 0x50], 0x1e
mov eax, dword [esi]
mov dword [eax + 0x54], 0x1e
mov eax, dword [esi]
mov byte [eax + 0x58], 1
mov eax, dword [esi]
mov byte [eax + 0x445], 1
mov eax, dword [esi]
mov byte [eax + 0x3e8], 0
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x50c], edx
mov eax, dword [esi]
mov dword [eax + 0x450], 0x3200000
mov eax, dword [esi]
mov dword [eax + 0x480], 0x37
mov eax, dword [esi]
mov byte [eax + 0x5b], 0
mov eax, dword [esi]
add eax, 0x68
mov edx, 0x618894
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x64], 0
mov eax, dword [esi]
mov byte [eax + 0x5c], 0
mov eax, dword [esi]
mov dword [eax + 0x60], 8
mov eax, dword [esi]
mov byte [eax + 0x6c], 1
mov eax, dword [esi]
mov byte [eax + 0x430], 1
mov eax, dword [esi]
mov byte [eax + 0x4ec], 0
mov eax, dword [esi]
mov byte [eax + 0x6d], 1
mov eax, dword [esi]
mov byte [eax + 0x4e0], 1
mov eax, dword [esi]
mov byte [eax + 0x4e1], 0
mov eax, dword [esi]
mov byte [eax + 0x484], 0
mov eax, dword [esi]
mov byte [eax + 0x3c5], 0
mov eax, dword [esi]
mov dword [eax + 0x3c0], 2
mov eax, dword [esi]
mov dword [eax + 0x3c8], 6
mov eax, dword [esi]
mov dword [eax + 0x464], 0xd
mov eax, dword [esi]
mov dword [eax + 0x46c], 0xa3
mov eax, dword [esi]
mov dword [eax + 0x474], 0x5dc
lea eax, [ebp - 0x84]
call fcn.00632274
mov edx, dword [ebp - 0x84]
mov eax, dword [esi]
add eax, 0x4ac
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x4f5], 0
mov eax, dword [esi]
mov dword [eax + 0x3cc], 0x12c
mov eax, dword [esi]
mov byte [eax + 0x3d8], 1
mov eax, dword [esi]
mov byte [eax + 0x4f4], 0
mov eax, dword [esi]
mov byte [eax + 0x3c4], 1
mov eax, dword [esi]
mov byte [eax + 0x3c6], 1
mov eax, dword [esi]
mov byte [eax + 0x400], 0
mov eax, dword [esi]
mov byte [eax + 0x460], 1
mov eax, dword [esi]
mov byte [eax + 0x468], 0
mov eax, dword [esi]
mov byte [eax + 0x469], 0
mov eax, dword [esi]
mov byte [eax + 0x510], 0
mov eax, dword [esi]
mov byte [eax + 0x6e], 0
mov eax, dword [esi]
mov byte [eax + 0x6f], 0
mov eax, dword [esi]
mov byte [eax + 0x47a], 1
mov eax, dword [esi]
mov byte [eax + 0x70], 1
mov dl, 1
mov eax, dword [esi]
call fcn.0061d87c
mov eax, dword [esi]
mov byte [eax + 0x72], 1
mov eax, dword [esi]
mov byte [eax + 0x71], 1
mov eax, dword [esi]
mov byte [eax + 0x73], 1
mov eax, dword [esi]
mov byte [eax + 0x370], 1
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x74], edx
mov eax, dword [esi]
mov byte [eax + 0x371], 0
mov eax, dword [esi]
mov byte [eax + 0x7c], 0
mov eax, dword [esi]
add eax, 0x80
mov edx, 0x6188a4
call fcn.00405700
mov eax, dword [esi]
add eax, 0x420
mov edx, 0x6188b4
call fcn.00405700
mov eax, dword [esi]
mov byte [eax + 0x3d9], 0
mov eax, dword [esi]
mov dword [eax + 0x3dc], 0x493e0
mov eax, dword [esi]
mov dword [eax + 0x470], 0xd
mov eax, dword [esi]
mov byte [eax + 0x478], 1
mov eax, dword [esi]
mov byte [eax + 0x47c], 0
mov eax, dword [esi]
mov byte [eax + 0x4ed], 0
mov eax, dword [esi]
mov byte [eax + 0x51d], 1
mov eax, dword [esi]
mov byte [eax + 0x369], 0
mov eax, dword [esi]
mov byte [eax + 0x36a], 0xf
xor edx, edx
mov al, 0x5d
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x9c], eax
xor edx, edx
mov al, 0xa
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x3d0], eax
mov eax, dword [esi]
add eax, 0x4e8
call fcn.004056ac
xor edx, edx
mov al, 0xb
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x3d4], eax
mov edx, 0x80
mov al, 0x2d
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xa4], eax
mov edx, 0x40
mov al, 0x2d
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x440], eax
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x49c], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x498], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x4a0], edx
xor edx, edx
mov al, 0x90
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xa0], eax
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x4a8], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x4a4], edx
cmp dword [ebp - 8], 1
jle 0x61857d
call fcn.00639a90
test al, al
je 0x618542
xor edx, edx
mov al, 0x13
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xb4], eax
xor edx, edx
mov al, 0x13
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xac], eax
jmp 0x61856a
mov edx, 0x90
xor eax, eax
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xb4], eax
mov edx, 0x90
xor eax, eax
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xac], eax
xor edx, edx
mov al, 0xa3
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xb8], eax
jmp 0x61859b
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xb4], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xac], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xb8], edx
mov edx, 0x80
mov al, 0x26
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xb0], eax
mov edx, 0x80
mov al, 0x28
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0xa8], eax
mov edx, 0x80
mov al, 0xbf
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x36c], eax
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x374], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x378], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x438], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x434], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x43c], edx
xor ebx, ebx
mov eax, dword [esi]
lea eax, [eax + ebx*4 + 0x110]
call fcn.004056ac
inc ebx
cmp ebx, 0x1e
jne 0x61860b
xor ebx, ebx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + ebx*4 + 0x188], edx
inc ebx
cmp ebx, 0x1e
jne 0x618621
xor ebx, ebx
mov eax, dword [esi]
lea eax, [eax + ebx*4 + 0x200]
call fcn.004056ac
inc ebx
cmp ebx, 0x1e
jne 0x618634
xor ebx, ebx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + ebx*4 + 0x278], edx
inc ebx
cmp ebx, 0x1e
jne 0x61864a
cmp dword [ebp - 8], 1
jle 0x6186cb
mov eax, dword [ebp - 0x80]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call fcn.0040ba7c
mov edx, dword [ebp - 0x88]
mov eax, dword [esi]
add eax, 0x110
call fcn.00405700
xor edx, edx
mov al, 0xa0
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x188], eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c]
call fcn.0040ba7c
mov edx, dword [ebp - 0x8c]
mov eax, dword [esi]
add eax, 0x114
call fcn.00405700
xor edx, edx
mov al, 0xa1
call fcn.006175a4
mov edx, dword [esi]
mov dword [edx + 0x18c], eax
mov eax, dword [esi]
call fcn.0061c424
xor ebx, ebx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + ebx*4 + 0x2f0], edx
inc ebx
cmp ebx, 0x1e
jne 0x6186d4
xor ebx, ebx
xor ecx, ecx
mov edx, ebx
mov eax, dword [esi]
call fcn.0061ec2c
inc ebx
cmp ebx, 9
jne 0x6186e7
mov eax, dword [esi]
mov byte [eax + 0x368], 0
mov eax, dword [esi]
mov dword [eax + 0x528], 0x96
mov ecx, 0x6188c0
mov edx, 3
mov eax, dword [esi]
call fcn.0061ec2c
mov ecx, 0x6188d0
mov edx, 4
mov eax, dword [esi]
call fcn.0061ec2c
mov ecx, 0x6188e0
mov edx, 5
mov eax, dword [esi]
call fcn.0061ec2c
mov ecx, 0x6188f0
mov edx, 7
mov eax, dword [esi]
call fcn.0061ec2c
mov eax, dword [esi]
mov eax, dword [eax + 0x960]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x964]
mov edx, dword [eax]
call dword [edx + 0x44]
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx eax, ax
mov edx, dword [esi]
mov dword [edx + 0x78], eax
mov edx, 2
mov eax, 6
call fcn.00412168
test al, al
je 0x6187b4
mov eax, dword [esi]
mov byte [eax + 0x535], 1
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x53c], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x538], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x540], edx
jmp 0x6187e1
mov eax, dword [esi]
mov byte [eax + 0x535], 0
mov eax, dword [esi]
mov dword [eax + 0x53c], 5
mov eax, dword [esi]
mov dword [eax + 0x538], 0xb
mov eax, dword [esi]
mov dword [eax + 0x540], 0xe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x618806
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.004056d0
ret