Function at 0x413252
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x456528]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x459af4]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x4132ab
push 0x44f5c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4132d0
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x459af4], eax
jmp 0x4132b4
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4132d0
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x4404c0]
call esi
jmp 0x413424
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
lea ecx, [ebp - 0x14]
mov ebx, eax
and eax, 0xfc00
push 7
and ebx, 0x3ff
push ecx
or eax, ebx
push eax
call fcn.00413626
lea eax, [ebp - 0x14]
push eax
call fcn.0042833b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0042864d
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00413626
lea eax, [ebp - 0x14]
push eax
call fcn.0042833b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0042864d
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
lea ecx, [ebp - 0x14]
mov ebx, eax
and eax, 0xfc00
push 7
and ebx, 0x3ff
push ecx
or eax, ebx
push eax
call fcn.00413626
lea eax, [ebp - 0x14]
push eax
call fcn.0042833b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0042864d
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00413626
lea eax, [ebp - 0x14]
push eax
call fcn.0042833b
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0042864d
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.00413626
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0042833b
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0042864d
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba65
leave
ret