Function at 0x45d6d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5d56
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x820], edi
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], 0x400
mov dword [ebp - 0x814], 0
call fcn.005a7690
add esp, 0xc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45d85d
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x45d775
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CInfoMgr::GetUILangWithMUI_GetProcAddress___Failed:0x_08x
jmp 0x45d83f
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x814]
push ecx
push 4
call eax
test eax, eax
jne 0x45d7a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CInfoMgr::GetUILangWithMUI_GetThreadPreferredUILanguages___Failed:0x_08x
jmp 0x45d83f
xor ebx, ebx
lea esi, [ebp - 0x810]
cmp dword [ebp - 0x814], ebx
jbe 0x45d814
cmp word [esi], 0
je 0x45d80e
push 0x10
push 0
push esi
call fcn.005a5219
mov ecx, dword [ebp - 0x820]
add esp, 8
movzx edi, ax
push dword [ebp - 0x81c]
push edi
call fcn.0045da00
test eax, eax
jne 0x45d9d9
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x45d7f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d7f0
sub ecx, edx
sar ecx, 1
inc ebx
lea esi, [esi + ecx*2]
add esi, 2
cmp ebx, dword [ebp - 0x814]
jb 0x45d7b3
mov edi, dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ebx, dword [ebp - 0x81c]
push ecx
movzx esi, ax
push ebx
push esi
mov ecx, edi
call fcn.0045da00
test eax, eax
je 0x45d839
mov ax, si
jmp 0x45d9dc
push esi
push str.CInfoMgr::GetUILangWithMUI_CheckIfLangIDisInLanguages___Failed_:_SystemLangId:0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
call fcn.0048b870
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x45d879
push 0x80004005
call fcn.004091f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x45d8d2
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 4]
test edx, edx
jne 0x45d8a8
xor ecx, ecx
jmp 0x45d8bf
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d8b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x81c]
call fcn.00409240
mov esi, dword [ebp - 0x81c]
mov ecx, str.JUCD
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45d906
test dx, dx
je 0x45d902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45d906
add eax, 4
add ecx, 4
test dx, dx
jne 0x45d8e0
xor eax, eax
jmp 0x45d90b
sbb eax, eax
or eax, 1
test eax, eax
sete al
push 0xffffffffffffffff
test al, al
je 0x45d922
mov edi, 0x411
push str.Japanese
jmp 0x45d92c
mov edi, 0x409
push str.English
push 0x100
push ebx
call fcn.005a54f5
add esp, 0x10
xor eax, eax
push 0xd
push str.SELECTED_LANG
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x824], 7
mov dword [ebp - 0x828], 0
mov word [ebp - 0x838], ax
call fcn.004058d0
mov ecx, dword [ebp - 0x820]
push 0
lea eax, [ebp - 0x838]
push eax
lea ecx, [ecx + 0xc]
mov byte [ebp - 4], 1
call fcn.00407870
cmp dword [ebp - 0x824], 8
jb 0x45d99b
push dword [ebp - 0x838]
call fcn.0048166b
add esp, 4
xor eax, eax
add esi, 0xfffffff0
mov word [ebp - 0x838], ax
mov dword [ebp - 0x824], 7
mov dword [ebp - 0x828], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d9d9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ax, di
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a4646
mov esp, ebp
pop ebp
ret 8