Function at 0x47c4bc
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x48ec38]
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 0x47cbe0
test dword [ebp + 0xc], 0xffffffe3
jne 0x47cbe0
test si, si
jne 0x47c512
test byte [ebp + 0xc], 0x10
jne 0x47cbe0
call fcn.0047c03f
mov dword [0x491420], 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 0x47cbe0
test byte [0x491420], 0x20
jne 0x47cbe2
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 0x47cbd9
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x47c583
lea eax, [ebp - 0x410]
xor edi, edi
mov dword [ebp - 0x414], eax
jmp 0x47c58f
xor ecx, ecx
lea edi, [ebp - 0x410]
mov word [eax - 2], cx
push 0
push 1
push 0x418ecc
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x47c970
test si, si
jne 0x47cb4d
mov eax, dword [0x491420]
test al, 4
je 0x47c9df
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x404
cmp ax, cx
jne 0x47c5d8
call fcn.0047c25e
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 0x47c78e
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.0047c45d
test eax, eax
je 0x47c962
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
cmp word [ebp - 0x208], ax
je 0x47c681
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x47c69f
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x47c5f5
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x418], eax
cmp ax, word [ebp - 0x41c]
je 0x47c74d
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.0047c45d
test eax, eax
je 0x47c96a
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
cmp word [ebp - 0x208], ax
je 0x47c747
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov eax, dword [ebp - 0x418]
mov ecx, 0x409
cmp cx, word [ebp - 0x41c]
je 0x47c94f
cmp cx, ax
je 0x47c94f
push 0
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0xb0]
call fcn.0047c45d
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x47c93c
movzx eax, ax
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov ecx, dword [ebp - 0x41c]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047c45d
test eax, eax
je 0x47c836
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x47c836
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x47c854
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x47c78e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x418], eax
cmp ax, word [ebp - 0x41c]
je 0x47c91e
movzx eax, ax
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047c45d
test eax, eax
je 0x47c918
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x47c918
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov eax, dword [ebp - 0x418]
mov ecx, 0x409
cmp cx, word [ebp - 0x41c]
je 0x47c94f
cmp cx, ax
je 0x47c94f
push dword [ebp - 0x414]
push 0x418f4c
mov edx, edi
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
push dword [ebp - 0x414]
push 0
mov edx, edi
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov esi, dword [ebp - 0x420]
test byte [ebp + 0xc], 0x10
je 0x47c98d
push esi
push 1
push 0x418ecc
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x47cbd9
test bl, 1
je 0x47cbd5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0047c03f
test al, 0x38
je 0x47cbb7
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push edi
push 0x40cd70
push 0x104
push eax
call fcn.0041a3c5
add esp, 0x14
lea ecx, [ebp - 0x410]
xor edx, edx
inc edx
push 0
call fcn.0047bfb6
jmp 0x47cbd3
test al, 3
je 0x47c970
call fcn.0047c2c2
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x418], eax
je 0x47ca98
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.0047c45d
test eax, eax
je 0x47c970
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
cmp word [ebp - 0x208], ax
je 0x47ca87
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov ecx, 0x409
cmp cx, word [ebp - 0x418]
jmp 0x47c762
movzx eax, ax
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047c45d
test eax, eax
je 0x47cb3c
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x47cb3c
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047c1f2
mov esi, eax
test esi, esi
jne 0x47cbac
mov eax, 0x409
cmp ax, word [ebp - 0x418]
jmp 0x47c92f
test byte [0x491420], 7
je 0x47c970
test byte [ebp + 0xc], 8
je 0x47cb80
push 0
lea eax, [ebp - 0x15c]
mov ecx, esi
push eax
lea edx, [ebp - 0xb0]
call fcn.0047c45d
test eax, eax
je 0x47c970
jmp 0x47cb9a
movzx eax, si
push eax
push 0x418f38
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a3c5
add esp, 0x10
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x47c957
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x47cbe2
call fcn.0047c03f
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 0x47cbe2
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.0047d650
leave
ret 0xc