Function at 0x1002d397
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1005a014]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x414], 0
push ebx
push esi
movzx esi, word [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], esi
test edi, edi
je 0x1002da8e
test dword [ebp + 0xc], 0xffffffe3
jne 0x1002da8e
test si, si
jne 0x1002d3ed
test byte [ebp + 0xc], 0x10
jne 0x1002da8e
call fcn.1002cdf2
mov dword [0x1005b058], eax
and eax, 0x20
or eax, 2
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x1002da8e
test byte [0x1005b058], 0x20
jne 0x1002da90
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x104
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1002da87
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x1002d45e
lea eax, [ebp - 0x410]
xor edi, edi
mov dword [ebp - 0x414], eax
jmp 0x1002d46a
xor ecx, ecx
lea edi, [ebp - 0x410]
mov word [eax - 2], cx
push 0
push ebx
call fcn.1002d130
test eax, eax
je 0x1002d82f
test si, si
jne 0x1002d9fb
mov eax, dword [0x1005b058]
test al, 4
je 0x1002d896
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x404
cmp ax, cx
jne 0x1002d4ab
call fcn.1002cce8
movzx eax, ax
movzx ecx, ax
mov eax, ecx
xor esi, esi
test byte [ebp + 0xc], 8
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], eax
je 0x1002d657
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.1002cf6a
test eax, eax
je 0x1002d821
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
cmp word [ebp - 0x208], ax
je 0x1002d54e
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x1002d56c
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x1002d4c8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov dword [ebp - 0x418], ecx
cmp cx, word [ebp - 0x41c]
je 0x1002d614
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push ecx
call fcn.1002cf6a
test eax, eax
je 0x1002d829
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
cmp word [ebp - 0x208], ax
je 0x1002d60e
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov ecx, dword [ebp - 0x418]
mov eax, 0x409
cmp ax, word [ebp - 0x41c]
je 0x1002d810
cmp ax, cx
je 0x1002d810
push 0
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.1002cf6a
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x1002d7ff
movzx eax, ax
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x41c]
call fcn.1002cf6a
test eax, eax
je 0x1002d6fc
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x1002d6fc
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x1002d71a
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x1002d657
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov dword [ebp - 0x418], ecx
cmp cx, word [ebp - 0x41c]
je 0x1002d7e1
movzx eax, cx
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x418]
call fcn.1002cf6a
test eax, eax
je 0x1002d7db
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x1002d7db
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov ecx, dword [ebp - 0x418]
mov eax, 0x409
cmp ax, word [ebp - 0x41c]
je 0x1002d810
cmp ax, cx
je 0x1002d810
push dword [ebp - 0x414]
push str.MUI0409
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push dword [ebp - 0x414]
push 0
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov esi, dword [ebp - 0x420]
test byte [ebp + 0xc], 0x10
je 0x1002d844
push esi
push ebx
call fcn.1002d130
test eax, eax
je 0x1002da87
test bl, 1
je 0x1002da83
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1002cdf2
test al, 0x38
je 0x1002da65
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push edi
push 0x10048fb4
push 0x104
push eax
call fcn.1002d16d
add esp, 0x14
lea eax, [ebp - 0x410]
push 0
push 1
push eax
call fcn.1002d0a8
jmp 0x1002da81
test al, 3
je 0x1002d82f
call fcn.1002cd45
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x418], eax
je 0x1002d949
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.1002cf6a
test eax, eax
je 0x1002d82f
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
cmp word [ebp - 0x208], ax
je 0x1002d938
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov eax, 0x409
cmp ax, word [ebp - 0x418]
jmp 0x1002d629
movzx eax, ax
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x418]
call fcn.1002cf6a
test eax, eax
je 0x1002d9ea
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x1002d9ea
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
lea eax, [ebp - 0xb0]
push dword [ebp - 0x414]
push eax
push edi
push ebx
call fcn.1002cefe
mov esi, eax
test esi, esi
jne 0x1002da5a
mov eax, 0x409
cmp ax, word [ebp - 0x418]
jmp 0x1002d7f2
test byte [0x1005b058], 7
je 0x1002d82f
test byte [ebp + 0xc], 8
je 0x1002da2e
push 0
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.1002cf6a
test eax, eax
je 0x1002d82f
jmp 0x1002da48
movzx eax, si
push eax
push str.MUI_04hx
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.1002d16d
add esp, 0x10
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x1002d818
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x1002da90
call fcn.1002cdf2
push 0
test al, 0x26
pop eax
setne al
push eax
push 0
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov eax, ebx
jmp 0x1002da90
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.1002bcfe
leave
ret 0xc