Function at 0x401400
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x80]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebp, eax
push 0x403084
push 3
push ebp
call fcn.00401850
add esp, 0xc
push str.1998
push 4
push ebp
call fcn.00401850
add esp, 0xc
mov dword [esp + 0x14], eax
push 6
push ebp
call fcn.00401850
add esp, 8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x40]
push 7
rep stosd dword es:[edi], eax
push ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], 1
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], bl
mov byte [esp + 0x63], 0x22
call fcn.00401850
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x4014fa
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebp
cmp eax, 2
jle 0x4014fe
mov cl, byte [eax + edi - 2]
cmp cl, 0xd
je 0x4014dd
cmp cl, 0xa
jne 0x4014e1
mov byte [eax + edi - 2], bl
lea ecx, [eax + edi - 1]
mov al, byte [eax + edi - 1]
cmp al, 0xd
je 0x4014f1
cmp al, 0xa
jne 0x4014f3
mov byte [ecx], bl
push edi
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp edi, ebx
je 0x401511
cmp eax, 1
jl 0x401511
push 0x20
lea ecx, [esp + 0x60]
push edi
push ecx
jmp 0x40151d
push 0x20
lea edx, [esp + 0x60]
push str.MS_Sans_Serif
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebp, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x14
call ebp
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0xc
push ecx
call ebp
push eax
push esi
call edi
cmp eax, ebx
je 0x401560
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4015c0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
sub edx, 0xaf
push 4
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
push 0xffffffffffffffff
add eax, 0xb9
add ecx, 0xc
sub ebp, 0x11d
push edi
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ebp
call dword [sym.imp.USER32.dll_DrawTextA]
push edi
call fcn.004018c0
mov ebp, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
add esp, 4
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
xor eax, eax
cmp edi, 0x6e
lea ecx, [esp + 0x40]
setge al
dec eax
push ecx
and eax, 2
add eax, 0xa
mov dword [esp + 0x44], eax
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, ebx
je 0x4015f8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x401671
cmp edi, 0x6e
jge 0x40161e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0x12f
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x64
jbe 0x401626
mov dword [esp + 0x10], 0x129
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
sub edx, 0xf
add eax, 0xf
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0x15
push edx
add ecx, eax
push 0xffffffffffffffff
dec edi
push ebp
push esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edi
call dword [sym.imp.USER32.dll_DrawTextA]
push ebp
call fcn.004018c0
add esp, 4
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, ebx
je 0x40168c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, dword [esp + 0x84]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4016b3
push eax
call fcn.004018c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret