Function at 0x4040d4
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x4167e8
call fcn.0040ef50
sub esp, 0x40
push ebx
push esi
push edi
mov esi, ecx
push str.CMainFrame::GetLanguageInfo___n
call fcn.004024eb
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.00402e12
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push ecx
mov edi, eax
shr ax, 0xa
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Language
and edi, 0x3ff
mov dword [ebp - 0x18], eax
call fcn.00401595
push ecx
lea eax, [esi + 0x98]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call fcn.004013ef
and byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00402ed2
test eax, eax
jne 0x40415b
mov dword [esi + 0x70], 6
mov dword [esi + 0x74], 0xa
jmp 0x4042f6
lea ecx, [ebp - 0x10]
call fcn.004013e3
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.004030d3
test eax, eax
je 0x40420d
lea ecx, [ebp - 0x48]
call fcn.00401b7a
test eax, eax
je 0x40418f
xor ebx, ebx
jmp 0x4041a1
lea ecx, [ebp - 0x48]
call fcn.00401e04
push eax
mov ecx, esi
call fcn.0040440c
mov ebx, eax
lea ecx, [ebp - 0x44]
call fcn.00401b7a
test eax, eax
je 0x4041b1
xor eax, eax
jmp 0x4041c1
lea ecx, [ebp - 0x44]
call fcn.00401e04
push eax
mov ecx, esi
call fcn.0040440c
cmp bx, di
jne 0x4041d9
cmp ax, word [ebp - 0x18]
je 0x4041fe
cmp bx, di
jne 0x4041d9
push 2
pop eax
cmp dword [ebp - 0x14], eax
jl 0x4041e7
cmp bx, 9
jne 0x40416b
push 1
pop eax
cmp dword [ebp - 0x14], eax
jge 0x40416b
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x100]
call fcn.00401618
jmp 0x40416b
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x100]
push eax
call fcn.00401618
lea edi, [esi + 0x100]
mov ecx, edi
call fcn.00401b7a
test eax, eax
je 0x404231
mov dword [esi + 0x70], 6
mov dword [esi + 0x74], 0xb
jmp 0x4042ea
lea ecx, [ebp - 0x4c]
call fcn.0040326b
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.004013ef
push ecx
lea eax, [esi + 0x98]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 3
call fcn.004013ef
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00402ed2
test eax, eax
jne 0x40427b
mov dword [esi + 0x70], 6
mov dword [esi + 0x74], 0xc
jmp 0x4042ea
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.SHORTCUT
call fcn.00401595
lea ecx, [ebp - 0x4c]
call fcn.00403034
test eax, eax
je 0x4042cd
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004013ef
lea eax, [ebp - 0x18]
push eax
call fcn.0040317c
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 4
call fcn.00401618
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [esi + 0x94]
call fcn.00401b7a
test eax, eax
je 0x404309
mov dword [esi + 0x70], 6
mov dword [esi + 0x74], 0xd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402e86
xor eax, eax
jmp 0x4043fd
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040446d
push str.EPSONHTML
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
call fcn.0040176a
add esp, 0xc
push eax
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 6
call fcn.00401618
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401563
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401563
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.COPYEXEC
call fcn.00401595
lea ecx, [ebp - 0x4c]
call fcn.00403034
test eax, eax
je 0x4043da
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004013ef
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0040457b
push eax
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 7
call fcn.00401618
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401563
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004013ef
lea eax, [ebp - 0x18]
push eax
call fcn.0040317c
pop ecx
pop ecx
push eax
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 8
call fcn.00401618
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x4c]
call fcn.0040326b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402e86
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret