Function at 0x1006c790
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100e98a8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100f466c]
cmp eax, dword [ecx + 4]
jle 0x1006c7eb
push 0x100f466c
call fcn.100be3d3
add esp, 4
cmp dword [0x100f466c], 0xffffffff
jne 0x1006c7eb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push 0x100f466c
mov word [0x100f47c8], ax
call fcn.100be389
add esp, 4
push ebx
push esi
xorps xmm0, xmm0
mov dword [0x100ed9dc], 0
lea eax, [ebp - 0x40]
movq qword [0x100ed9d4], xmm0
push edi
movq qword [0x100eda4c], xmm0
mov esi, 0x100ee508
mov dword [0x100eda54], 0
mov ebx, 0x412
mov dword [ebp - 0x40], 0x100c5168
mov dword [ebp - 0x3c], str.Sylfaen
mov dword [ebp - 0x38], str.Microsoft_Sans_Serif
mov dword [ebp - 0x34], str.Courier_New
mov dword [ebp - 0x30], str.Estrangelo_Edessa
mov dword [ebp - 0x2c], str.MV_Boli
mov dword [ebp - 0x28], str.Mangal
mov dword [ebp - 0x24], str.Vrinda
mov dword [ebp - 0x20], str.Raavi
mov dword [ebp - 0x1c], str.Shruti
mov dword [ebp - 0x18], str.Latha
mov dword [ebp - 0x14], str.Tunga
mov dword [ebp - 0x10], str.Kartik
mov dword [ebp - 0xc], str.GulimChe
mov dword [ebp - 8], str.NSimSun
mov dword [ebp - 0x44], eax
nop
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006c897
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10089620
cmp word [0x100f47c8], bx
jne 0x1006c90b
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x1006c8c2
mov edi, dword [esi]
mov ebx, dword [esi + 0x10]
mov eax, 8
cmp ebx, 8
mov edx, ebx
mov ecx, str.GulimChe
cmova edx, eax
test edx, edx
je 0x1006c8f1
sub edi, ecx
nop dword [eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x1006c906
add ecx, 2
sub edx, 1
jne 0x1006c8e0
cmp ebx, 8
jb 0x1006c906
ja 0x1006c906
push 3
push 0x100c578c
mov ecx, esi
call fcn.10089620
mov ebx, 0x412
mov eax, dword [ebp - 0x44]
add esi, 0x18
add eax, 4
mov dword [ebp - 0x44], eax
cmp esi, 0x100ee670
jl 0x1006c890
mov edx, str.__Haansoft_Slide_Font_Information_Data_V1.00
mov ecx, str.FontMap.dat
call fcn.1002ac90
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x1006c9a1
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_unsigned_short_int_const__]
lea ecx, [ebp - 0x48]
push str.Initialization_Error
call esi
push str.FontMap.dat
lea ecx, [ebp - 0x44]
call esi
call dword [sym.imp.HncFoundation.dll_class_Hnc::Framework____cdecl_Hnc::GetFramework_void_]
mov esi, eax
lea ecx, [ebp - 0x4c]
mov edi, dword [esi]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
lea eax, [ebp - 0x44]
push eax
call dword [edi + 0x5c]
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea ecx, [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x44]
call esi
lea ecx, [ebp - 0x48]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.1006c350
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x1006caff
mov esi, 0x4000
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1006cae2
push esi
push edi
mov edx, str.Map_Fonts
mov ecx, ebx
call fcn.1002ae50
add esp, 8
cmp eax, 0x3ffe
jne 0x1006ca26
mov ebx, esi
nop dword [eax]
add esi, ebx
push esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
test eax, eax
je 0x1006cae2
mov ecx, dword [ebp - 0x48]
mov edx, str.Map_Fonts
push esi
push eax
mov edi, eax
add ebx, 0x4000
call fcn.1002ae50
lea ecx, [esi - 2]
add esp, 8
cmp ecx, eax
je 0x1006c9f0
push 0x1f40
mov dword [0x100eda54], 0x1f4
mov dword [0x100eda50], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [0x100eda4c], ecx
test ecx, ecx
je 0x1006cae2
cmp word [edi], 0
mov esi, edi
je 0x1006cb2d
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
nop word [eax + eax]
mov eax, dword [0x100eda54]
cmp dword [0x100eda50], eax
jne 0x1006ca9d
add eax, 0x10
shl eax, 4
push eax
push ecx
call ebx
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1006cae2
add dword [0x100eda54], 0x10
mov dword [0x100eda4c], ecx
mov edx, dword [0x100eda50]
shl edx, 4
add edx, ecx
mov ecx, esi
call fcn.1006bfc0
test eax, eax
je 0x1006cab9
inc dword [0x100eda50]
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006cac0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
je 0x1006cb2d
mov ecx, dword [0x100eda4c]
jmp 0x1006ca70
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
call fcn.1006c2c0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x1006caff
push edi
call esi
add esp, 4
xor edi, edi
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebx]
test eax, eax
je 0x1006cb14
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
call esi
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100be194
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call esi
push 0x64
call fcn.1006b7b0
mov edi, 1
jmp 0x1006cb01