Function at 0x140016b60
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x88
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.LangIDGetMethod
lea rdx, [0x14005cd48]
mov rcx, 0xffffffff80000002
call fcn.14000d250
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 2
je 0x140016bbb
cmp dword [rsp + 0x44], 3
je 0x140016bc8
cmp dword [rsp + 0x44], 4
je 0x140016bd5
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [rsp + 0x38], ax
jmp 0x140016be0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x38], ax
jmp 0x140016be0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x38], ax
jmp 0x140016be0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [rsp + 0x38], ax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.SupportLanguage
lea rdx, [0x14005cd98]
mov rcx, 0xffffffff80000002
call fcn.14000d250
mov dword [rsp + 0x34], 0x409
mov dword [0x140075628], 1
movzx eax, word [rsp + 0x38]
and eax, 0x3ff
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
sub eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x23
ja case.0x140016c56.2
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x17478]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x3c]
and eax, 2
test eax, eax
je 0x140016c75
mov dword [rsp + 0x34], 0x409
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 1
test eax, eax
je 0x140016c97
mov dword [rsp + 0x34], 0x411
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 4
test eax, eax
je 0x140016cb9
mov dword [rsp + 0x34], 0x40c
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 8
test eax, eax
je 0x140016cdb
mov dword [rsp + 0x34], 0x407
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x20
test eax, eax
je 0x140016cfd
mov dword [rsp + 0x34], 0x410
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x10
test eax, eax
je 0x140016d49
mov dword [rsp + 0x34], 0xc0a
movzx eax, word [rsp + 0x38]
sar eax, 0xa
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 2
je 0x140016d2a
jmp 0x140016d3f
mov eax, dword [rsp + 0x3c]
and eax, 0x80000
test eax, eax
je 0x140016d3f
mov dword [rsp + 0x34], 0x80a
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x100
test eax, eax
je 0x140016d6d
mov dword [rsp + 0x34], 0x412
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x400
test eax, eax
je 0x140016d91
mov dword [rsp + 0x34], 0x41e
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0xc0
test eax, eax
je 0x140017083
movzx eax, word [rsp + 0x38]
sar eax, 0xa
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 1
je 0x140016e8c
cmp dword [rsp + 0x50], 2
je 0x140016deb
cmp dword [rsp + 0x50], 3
je 0x140016f2f
cmp dword [rsp + 0x50], 4
je 0x140016fa3
cmp dword [rsp + 0x50], 5
je 0x140017014
jmp 0x140017083
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_CH_PRC
lea rdx, [0x14005cdc8]
mov rcx, 0xffffffff80000002
call fcn.14000d250
test eax, eax
je 0x140016e21
mov dword [rsp + 0x40], 2
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 1
je 0x140016e40
cmp dword [rsp + 0x54], 2
je 0x140016e4a
cmp dword [rsp + 0x54], 3
je 0x140016e75
jmp 0x140016e7f
mov dword [rsp + 0x34], 0x409
jmp 0x140016e87
mov eax, dword [rsp + 0x3c]
and eax, 0x40
test eax, eax
je 0x140016e69
mov dword [rsp + 0x34], 0x804
mov dword [0x140075628], 0
jmp 0x140016e73
mov dword [rsp + 0x34], 0x409
jmp 0x140016e87
jmp 0x140016e87
mov dword [rsp + 0x34], 0x404
jmp 0x140016e87
mov dword [rsp + 0x34], 0x409
jmp 0x140017083
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_CH_Taiwan
lea rdx, [0x14005ce18]
mov rcx, 0xffffffff80000002
call fcn.14000d250
test eax, eax
je 0x140016ec2
mov dword [rsp + 0x40], 3
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 1
je 0x140016ee1
cmp dword [rsp + 0x58], 2
je 0x140016eeb
cmp dword [rsp + 0x58], 3
je 0x140016ef5
jmp 0x140016f22
mov dword [rsp + 0x34], 0x409
jmp 0x140016f2a
mov dword [rsp + 0x34], 0x804
jmp 0x140016f2a
mov eax, dword [rsp + 0x3c]
and eax, 0x80
test eax, eax
je 0x140016f18
mov dword [rsp + 0x34], 0x404
mov dword [0x140075628], 0
jmp 0x140016f2a
mov dword [rsp + 0x34], 0x409
jmp 0x140016f2a
mov dword [rsp + 0x34], 0x409
jmp 0x140017083
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_CH_HongKong
lea rdx, [0x14005ce70]
mov rcx, 0xffffffff80000002
call fcn.14000d250
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 1
je 0x140016f78
cmp dword [rsp + 0x5c], 2
je 0x140016f82
cmp dword [rsp + 0x5c], 3
je 0x140016f8c
jmp 0x140016f96
mov dword [rsp + 0x34], 0x409
jmp 0x140016f9e
mov dword [rsp + 0x34], 0x804
jmp 0x140016f9e
mov dword [rsp + 0x34], 0x404
jmp 0x140016f9e
mov dword [rsp + 0x34], 0x409
jmp 0x140017083
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_CH_Singapore
lea rdx, [0x14005cec8]
mov rcx, 0xffffffff80000002
call fcn.14000d250
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 1
je 0x140016fec
cmp dword [rsp + 0x60], 2
je 0x140016ff6
cmp dword [rsp + 0x60], 3
je 0x140017000
jmp 0x14001700a
mov dword [rsp + 0x34], 0x409
jmp 0x140017012
mov dword [rsp + 0x34], 0x804
jmp 0x140017012
mov dword [rsp + 0x34], 0x404
jmp 0x140017012
mov dword [rsp + 0x34], 0x409
jmp 0x140017083
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_CH_Macau
lea rdx, [0x14005cf18]
mov rcx, 0xffffffff80000002
call fcn.14000d250
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 1
je 0x14001705d
cmp dword [rsp + 0x64], 2
je 0x140017067
cmp dword [rsp + 0x64], 3
je 0x140017071
jmp 0x14001707b
mov dword [rsp + 0x34], 0x409
jmp 0x140017083
mov dword [rsp + 0x34], 0x804
jmp 0x140017083
mov dword [rsp + 0x34], 0x404
jmp 0x140017083
mov dword [rsp + 0x34], 0x409
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x2000200
test eax, eax
je 0x1400171fd
movzx eax, word [rsp + 0x38]
sar eax, 0xa
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 1
je 0x14001715f
cmp dword [rsp + 0x68], 2
je 0x1400170bc
jmp 0x1400171fd
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_PO_Portugal
lea rdx, [0x14005cf70]
mov rcx, 0xffffffff80000002
call fcn.14000d250
test eax, eax
je 0x1400170f2
mov dword [rsp + 0x40], 3
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 1
je 0x140017111
cmp dword [rsp + 0x6c], 2
je 0x14001711b
cmp dword [rsp + 0x6c], 3
je 0x140017125
jmp 0x140017152
mov dword [rsp + 0x34], 0x409
jmp 0x14001715a
mov dword [rsp + 0x34], 0x416
jmp 0x14001715a
mov eax, dword [rsp + 0x3c]
and eax, 0x2000000
test eax, eax
je 0x140017146
mov dword [rsp + 0x34], 0x816
mov dword [0x140075628], 0
jmp 0x140017150
mov dword [rsp + 0x34], 0x409
jmp 0x14001715a
jmp 0x14001715a
mov dword [rsp + 0x34], 0x409
jmp 0x1400171fd
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Lang_PO_Brazil
lea rdx, [0x14005cfc0]
mov rcx, 0xffffffff80000002
call fcn.14000d250
test eax, eax
je 0x140017195
mov dword [rsp + 0x40], 2
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 1
je 0x1400171b4
cmp dword [rsp + 0x70], 2
je 0x1400171be
cmp dword [rsp + 0x70], 3
je 0x1400171eb
jmp 0x1400171f5
mov dword [rsp + 0x34], 0x409
jmp 0x1400171fd
mov eax, dword [rsp + 0x3c]
and eax, 0x200
test eax, eax
je 0x1400171df
mov dword [rsp + 0x34], 0x416
mov dword [0x140075628], 0
jmp 0x1400171e9
mov dword [rsp + 0x34], 0x409
jmp 0x1400171fd
jmp 0x1400171fd
mov dword [rsp + 0x34], 0x816
jmp 0x1400171fd
mov dword [rsp + 0x34], 0x409
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x800000
test eax, eax
je 0x140017221
mov dword [rsp + 0x34], 0x41d
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x400000
test eax, eax
je 0x140017245
mov dword [rsp + 0x34], 0x419
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x1000
test eax, eax
je 0x140017269
mov dword [rsp + 0x34], 0x401
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x800
test eax, eax
je 0x14001728d
mov dword [rsp + 0x34], 0x413
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x8000
test eax, eax
je 0x1400172b1
mov dword [rsp + 0x34], 0x40b
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x10000
test eax, eax
je 0x1400172d5
mov dword [rsp + 0x34], 0x408
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x2000
test eax, eax
je 0x1400172f9
mov dword [rsp + 0x34], 0x405
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x4000
test eax, eax
je 0x14001731d
mov dword [rsp + 0x34], 0x406
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x1000000
test eax, eax
je 0x140017341
mov dword [rsp + 0x34], 0x41f
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x10000000
test eax, eax
je 0x140017365
mov dword [rsp + 0x34], 0x418
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x20000000
test eax, eax
je 0x140017389
mov dword [rsp + 0x34], 0x41a
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x40000
test eax, eax
je 0x1400173ad
mov dword [rsp + 0x34], 0x40e
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x20000
test eax, eax
je 0x1400173d1
mov dword [rsp + 0x34], 0x40d
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x100000
test eax, eax
je 0x1400173f5
mov dword [rsp + 0x34], 0x414
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x200000
test eax, eax
je 0x140017416
mov dword [rsp + 0x34], 0x415
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x4000000
test eax, eax
je 0x140017437
mov dword [rsp + 0x34], 0x41b
mov dword [0x140075628], 0
jmp case.0x140016c56.2
mov eax, dword [rsp + 0x3c]
and eax, 0x8000000
test eax, eax
je case.0x140016c56.2
mov dword [rsp + 0x34], 0x424
mov dword [0x140075628], 0
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov eax, dword [rsp + 0x34]
mov dword [0x14007562c], eax
xor eax, eax
add rsp, 0x88
ret