Function at 0x4125dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4573b8]
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 [0x45ae7c]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x412635
push 0x447514
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41265a
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 [0x45ae7c], eax
jmp 0x41263e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41265a
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x4445c0]
call esi
jmp 0x4127ae
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.00412900
lea eax, [ebp - 0x14]
push eax
call fcn.0042d4a1
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0042d31b
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00412900
lea eax, [ebp - 0x14]
push eax
call fcn.0042d4a1
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.0042d31b
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.00412900
lea eax, [ebp - 0x14]
push eax
call fcn.0042d4a1
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.0042d31b
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00412900
lea eax, [ebp - 0x14]
push eax
call fcn.0042d4a1
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.0042d31b
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.00412900
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0042d4a1
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.0042d31b
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.00427efd
leave
ret