Function at 0x12d7403
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x12d8140]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x414], 0
push ebx
push esi
push edi
mov edi, ecx
movzx eax, dx
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], eax
call fcn.012d6fb6
mov dword [0x12d84c0], eax
xor esi, esi
and eax, 0x20
or eax, 2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x12d7829
test byte [0x12d84c0], 0x20
jne 0x12d782b
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x12d7822
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x12d74a3
lea eax, [ebp - 0x410]
xor edi, edi
mov dword [ebp - 0x414], eax
jmp 0x12d74af
xor ecx, ecx
lea edi, [ebp - 0x410]
mov word [eax - 2], cx
push 0
push 1
push 0x12c44cc
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x12d76be
mov eax, dword [ebp - 0x418]
test ax, ax
jne 0x12d77b7
mov eax, dword [0x12d84c0]
test al, 4
je 0x12d7710
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x404
mov dword [ebp - 0x41c], eax
cmp ax, cx
jne 0x12d750a
call fcn.012d71c6
movzx eax, ax
mov dword [ebp - 0x41c], eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.012d73bb
test eax, eax
je 0x12d76b6
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
cmp word [ebp - 0x15c], ax
je 0x12d7596
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x12d75ae
mov eax, 0x404
jmp 0x12d7504
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x418], eax
cmp ax, word [ebp - 0x41c]
je 0x12d765c
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.012d73bb
test eax, eax
je 0x12d76be
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
cmp word [ebp - 0x15c], ax
je 0x12d7656
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
mov eax, dword [ebp - 0x418]
mov ecx, 0x409
cmp cx, word [ebp - 0x41c]
je 0x12d76a3
cmp cx, ax
je 0x12d76a3
push 0
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp - 0xb0]
call fcn.012d73bb
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
push dword [ebp - 0x414]
push 0
mov edx, edi
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
test bl, 1
je 0x12d781e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.012d6fb6
test al, 0x38
je 0x12d77ff
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push edi
push 0x12c4538
push 0x104
push eax
call fcn.012d6e33
add esp, 0x14
lea ecx, [ebp - 0x410]
xor edx, edx
inc edx
push 0
call fcn.012d6f37
jmp 0x12d781c
test al, 3
je 0x12d76be
call fcn.012d7226
lea ecx, [ebp - 0x15c]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x418], eax
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.012d73bb
test eax, eax
je 0x12d76be
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
cmp word [ebp - 0x15c], ax
je 0x12d77a6
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.012d7160
mov esi, eax
test esi, esi
jne 0x12d77f4
mov ecx, 0x409
cmp cx, word [ebp - 0x418]
jmp 0x12d766d
test byte [0x12d84c0], 7
je 0x12d76be
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.012d73bb
test eax, eax
je 0x12d76be
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x12d76ab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x12d782b
call fcn.012d6fb6
push 0
and eax, 0x26
pop eax
setne al
push eax
push 0
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov eax, ebx
jmp 0x12d782b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.012d7a50
mov esp, ebp
pop ebp
ret