Function at 0x47b71c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x48dc38]
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 0x47be40
test dword [ebp + 0xc], 0xffffffe3
jne 0x47be40
test si, si
jne 0x47b772
test byte [ebp + 0xc], 0x10
jne 0x47be40
call fcn.0047b29f
mov dword [0x490420], 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 0x47be40
test byte [0x490420], 0x20
jne 0x47be42
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 0x47be39
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x47b7e3
lea eax, [ebp - 0x410]
xor edi, edi
mov dword [ebp - 0x414], eax
jmp 0x47b7ef
xor ecx, ecx
lea edi, [ebp - 0x410]
mov word [eax - 2], cx
push 0
push 1
push 0x418d9c
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x47bbd0
test si, si
jne 0x47bdad
mov eax, dword [0x490420]
test al, 4
je 0x47bc3f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x404
cmp ax, cx
jne 0x47b838
call fcn.0047b4be
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 0x47b9ee
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.0047b6bd
test eax, eax
je 0x47bbc2
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
cmp word [ebp - 0x208], ax
je 0x47b8e1
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x47b8ff
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x47b855
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x418], eax
cmp ax, word [ebp - 0x41c]
je 0x47b9ad
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.0047b6bd
test eax, eax
je 0x47bbca
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
cmp word [ebp - 0x208], ax
je 0x47b9a7
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov eax, dword [ebp - 0x418]
mov ecx, 0x409
cmp cx, word [ebp - 0x41c]
je 0x47bbaf
cmp cx, ax
je 0x47bbaf
push 0
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0xb0]
call fcn.0047b6bd
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x47bb9c
movzx eax, ax
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov ecx, dword [ebp - 0x41c]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047b6bd
test eax, eax
je 0x47ba96
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x47ba96
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov eax, 0xc04
cmp word [ebp - 0x41c], ax
jne 0x47bab4
mov eax, 0x404
mov dword [ebp - 0x41c], eax
jmp 0x47b9ee
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x418], eax
cmp ax, word [ebp - 0x41c]
je 0x47bb7e
movzx eax, ax
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047b6bd
test eax, eax
je 0x47bb78
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x47bb78
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov eax, dword [ebp - 0x418]
mov ecx, 0x409
cmp cx, word [ebp - 0x41c]
je 0x47bbaf
cmp cx, ax
je 0x47bbaf
push dword [ebp - 0x414]
push 0x418e1c
mov edx, edi
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
push dword [ebp - 0x414]
push 0
mov edx, edi
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov esi, dword [ebp - 0x420]
test byte [ebp + 0xc], 0x10
je 0x47bbed
push esi
push 1
push 0x418d9c
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x47be39
test bl, 1
je 0x47be35
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0047b29f
test al, 0x38
je 0x47be17
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push edi
push 0x40cc48
push 0x104
push eax
call fcn.0041a265
add esp, 0x14
lea ecx, [ebp - 0x410]
xor edx, edx
inc edx
push 0
call fcn.0047b216
jmp 0x47be33
test al, 3
je 0x47bbd0
call fcn.0047b522
test byte [ebp + 0xc], 8
movzx eax, ax
mov dword [ebp - 0x418], eax
je 0x47bcf8
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0xb0]
mov ecx, eax
call fcn.0047b6bd
test eax, eax
je 0x47bbd0
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
push dword [ebp - 0x414]
lea eax, [ebp - 0x15c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
cmp word [ebp - 0x208], ax
je 0x47bce7
push dword [ebp - 0x414]
lea eax, [ebp - 0x208]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov ecx, 0x409
cmp cx, word [ebp - 0x418]
jmp 0x47b9c2
movzx eax, ax
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047b6bd
test eax, eax
je 0x47bd9c
push 0x8000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
movzx eax, ax
test ax, ax
je 0x47bd9c
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
lea eax, [ebp - 0xb0]
mov edx, edi
mov ecx, ebx
push dword [ebp - 0x414]
push eax
call fcn.0047b452
mov esi, eax
test esi, esi
jne 0x47be0c
mov eax, 0x409
cmp ax, word [ebp - 0x418]
jmp 0x47bb8f
test byte [0x490420], 7
je 0x47bbd0
test byte [ebp + 0xc], 8
je 0x47bde0
push 0
lea eax, [ebp - 0x15c]
mov ecx, esi
push eax
lea edx, [ebp - 0xb0]
call fcn.0047b6bd
test eax, eax
je 0x47bbd0
jmp 0x47bdfa
movzx eax, si
push eax
push 0x418e08
lea eax, [ebp - 0xb0]
push 0x55
push eax
call fcn.0041a265
add esp, 0x10
push dword [ebp - 0x414]
lea eax, [ebp - 0xb0]
push eax
jmp 0x47bbb7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x47be42
call fcn.0047b29f
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 0x47be42
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.0047c8b0
leave
ret 0xc