Function at 0x10a621a
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x414], edi
jne 0x10a624d
xor eax, eax
jmp 0x10a6ac8
test dword [ebp + 0xc], 0xfffffff3
jne 0x10a6246
push ebx
call fcn.010a5e59
mov dword [0x10b91f4], eax
and al, 0x20
neg al
sbb eax, eax
and eax, 0x1e
inc eax
inc eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
je 0x10a62ce
mov eax, dword [0x10b91f4]
xor esi, esi
test al, 0x60
jne 0x10a6ac5
mov ecx, eax
and cl, 0x78
neg cl
sbb ecx, ecx
and al, 0x66
neg ecx
neg al
mov dword [ebp - 0x420], ecx
sbb eax, eax
neg eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
push edi
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x10a62d5
xor eax, eax
jmp 0x10a6ac7
mov eax, dword [ebp - 0x414]
cmp eax, edi
jne 0x10a62f3
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x418], edi
jmp 0x10a6303
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], ecx
mov word [eax - 2], di
push 0x1022a50
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10a6a60
cmp word [ebp + 0x10], di
jne 0x10a69eb
mov al, byte [0x10b91f4]
test al, 4
je 0x10a678c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
cmp ax, 0x404
mov dword [ebp - 0x424], eax
jne 0x10a6353
call fcn.010a5ddf
movzx eax, ax
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
and eax, 8
mov dword [ebp - 0x428], eax
mov edi, 0x1022adc
cmp dword [ebp - 0x428], 0
je 0x10a644d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x424]
call fcn.010a602d
test eax, eax
je 0x10a665a
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
push dword [ebp - 0x41c]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
cmp word [ebp - 0x208], ax
je 0x10a642f
push dword [ebp - 0x41c]
lea eax, [ebp - 0x208]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
cmp word [ebp - 0x424], 0xc04
jne 0x10a6672
mov dword [ebp - 0x424], 0x404
jmp 0x10a6364
movzx eax, word [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x424]
call fcn.010a602d
test eax, eax
je 0x10a650f
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.010a6b43
movzx eax, ax
test ax, ax
je 0x10a650f
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
cmp word [ebp - 0x424], 0xc04
je 0x10a643e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
cmp ax, word [ebp - 0x424]
mov dword [ebp - 0x428], eax
je 0x10a65f4
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x428]
call fcn.010a602d
test eax, eax
je 0x10a65f4
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.010a6b43
movzx eax, ax
test ax, ax
je 0x10a65f4
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
mov eax, 0x409
cmp word [ebp - 0x424], ax
je 0x10a6634
cmp word [ebp - 0x428], ax
je 0x10a6634
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push 0x1022ac8
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push 0
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
xor edi, edi
cmp esi, edi
je 0x10a6a60
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x10a6ac7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edi, ax
cmp di, word [ebp - 0x424]
je 0x10a673d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.010a602d
test eax, eax
je 0x10a6a5e
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
push dword [ebp - 0x41c]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
cmp word [ebp - 0x208], ax
je 0x10a673d
push dword [ebp - 0x41c]
lea eax, [ebp - 0x208]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
mov eax, 0x409
cmp word [ebp - 0x424], ax
je 0x10a6634
cmp di, ax
je 0x10a6634
push 0
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.010a602d
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
jmp 0x10a6622
test al, 3
je 0x10a6a60
call fcn.010a6084
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x428], eax
je 0x10a68c0
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.010a602d
test eax, eax
je 0x10a6a60
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
cmp esi, edi
jne 0x10a6664
push dword [ebp - 0x41c]
lea eax, [ebp - 0x15c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
cmp esi, edi
jne 0x10a6664
cmp word [ebp - 0x208], di
je 0x10a6865
push dword [ebp - 0x41c]
lea eax, [ebp - 0x208]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
cmp esi, edi
jne 0x10a6664
mov eax, 0x409
cmp word [ebp - 0x428], ax
je 0x10a69bd
push edi
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.010a602d
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
cmp esi, edi
jne 0x10a6664
jmp 0x10a69bd
movzx eax, ax
push eax
mov edi, 0x1022adc
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x428]
call fcn.010a602d
test eax, eax
je 0x10a6983
push 2
lea eax, [ebp - 0x15c]
push eax
call fcn.010a6b43
movzx eax, ax
test ax, ax
je 0x10a6983
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
cmp word [ebp - 0x428], 0x409
je 0x10a69bb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push 0x1022ac8
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
test esi, esi
jne 0x10a6664
xor edi, edi
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push edi
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
cmp esi, edi
jne 0x10a6664
jmp 0x10a665c
test byte [0x10b91f4], 7
je 0x10a6a60
test byte [ebp + 0xc], 8
je 0x10a6a41
push edi
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0x10]
call fcn.010a602d
test eax, eax
je 0x10a6a60
push dword [ebp - 0x41c]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x420]
push dword [ebp - 0x414]
push eax
push dword [ebp - 0x418]
push ebx
call fcn.010a6134
mov esi, eax
jmp 0x10a665c
movzx eax, word [ebp + 0x10]
push eax
push 0x1022adc
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.01029706
add esp, 0x10
jmp 0x10a6a15
xor edi, edi
test bl, 1
je 0x10a6ac5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x420], edi
je 0x10a6aaa
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push dword [ebp - 0x418]
push 0x1022abc
push 0x104
push eax
call fcn.01029706
add esp, 0x14
push edi
push 1
lea eax, [ebp - 0x410]
push eax
call fcn.010a5d52
jmp 0x10a6ac3
xor eax, eax
cmp dword [ebp - 0x41c], edi
setne al
push eax
push edi
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01068363
leave
ret 0xc