Function at 0x14005b850
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x338
mov qword [rsp + 0x310], 0xfffffffffffffffe
mov rax, qword [0x14008c080]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rax, str.InitInstance
mov qword [rsp + 0x2d8], rax
mov qword [rsp + 0x2f0], 0
mov rcx, qword [rsp + 0x340]
call fcn.14005b5d0
mov ecx, 0x550
call fcn.1400024f0
mov qword [rsp + 0x308], rax
cmp qword [rsp + 0x308], 0
je 0x14005b8d6
mov rcx, qword [rsp + 0x308]
call fcn.140050590
mov qword [rsp + 0x318], rax
jmp 0x14005b8e2
mov qword [rsp + 0x318], 0
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x300], rax
mov rax, qword [rsp + 0x300]
mov qword [rsp + 0x2e8], rax
mov dword [rsp + 0x2d0], 0x104
call fcn.140001ba0
mov rdx, rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [0x1400777c8]
mov rdx, qword [rdx + 0x90]
mov rcx, qword [rsp + 0x2e8]
call fcn.14004e7a0
test eax, eax
jne 0x14005b99c
mov dword [rsp + 0x2d0], 0x104
call fcn.140001ba0
mov rdx, rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [0x1400777c0]
mov rdx, qword [rdx + 0x90]
mov rcx, qword [rsp + 0x2e8]
call fcn.14004e7a0
test eax, eax
je 0x14005b99c
lea rcx, [rsp + 0x70]
call fcn.140001bf0
mov qword [rsp + 0x2f0], rax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x2e0], ax
mov dword [rsp + 0x2d0], 0x104
call fcn.140001ba0
mov rdx, rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, str.LANG
mov rdx, qword [rdx + 0x90]
mov rcx, qword [rsp + 0x2e8]
call fcn.14004e7a0
test eax, eax
je 0x14005ba0a
cmp dword [rsp + 0x2d0], 0
jbe 0x14005ba0a
lea rcx, [rsp + 0x70]
call fcn.140001bf0
mov word [rsp + 0x2e0], ax
movzx eax, word [rsp + 0x2e0]
and eax, 0x3ff
cmp eax, 1
je 0x14005ba40
movzx eax, word [rsp + 0x2e0]
and eax, 0x3ff
cmp eax, 0xd
je 0x14005ba40
movzx eax, word [rsp + 0x2e0]
and eax, 0x3ff
cmp eax, 0x29
jne 0x14005ba86
mov ecx, 0x4a
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14005ba86
movzx edx, word [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2e8]
call fcn.1400501e0
test eax, eax
je 0x14005ba86
lea rdx, [0x140077838]
lea rcx, str.ProcessLayout
call fcn.14002d580
mov ecx, 1
call qword [sym.imp.USER32.dll_SetProcessDefaultLayout]
mov dword [rsp + 0x2f8], 0x20
mov dword [rsp + 0x2d4], 0
lea rcx, [rsp + 0x2d4]
call qword [sym.imp.USER32.dll_GetProcessDefaultLayout]
test eax, eax
je 0x14005bacb
cmp dword [rsp + 0x2d4], 1
jne 0x14005bacb
mov eax, dword [rsp + 0x2f8]
or eax, 0x400000
mov dword [rsp + 0x2f8], eax
mov rcx, qword [rsp + 0x340]
mov rax, qword [rsp + 0x2e8]
mov qword [rcx + 0x40], rax
mov dword [rsp + 0x280], 0x50
mov dword [rsp + 0x284], 3
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [rsp + 0x288], rax
mov dword [rsp + 0x290], 0
mov dword [rsp + 0x294], 0
mov rax, qword [rsp + 0x340]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0x298], rax
mov edx, 1
mov rcx, qword [rsp + 0x340]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0x2a0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x2b0], 6
mov qword [rsp + 0x2b8], 0
lea rax, str.deviceop.x64.epson.co.jp
mov qword [rsp + 0x2c0], rax
mov edx, 1
mov rcx, qword [rsp + 0x340]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0x2c8], rax
lea rcx, [rsp + 0x280]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r10, qword [rsp + 0x2e8]
mov r10, qword [r10]
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x32
mov dword [rsp + 0x38], 0x32
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
mov r8, qword [rsp + 0x2c0]
mov edx, dword [rsp + 0x2f8]
mov rcx, qword [rsp + 0x2e8]
call qword [r10 + 0xb8]
test eax, eax
jne 0x14005bc69
mov rax, qword [rsp + 0x340]
mov qword [rax + 0x40], 0
lea r8, str.CreateEx_returns_error__
mov rdx, qword [rsp + 0x2d8]
lea rcx, [0x140077898]
call fcn.14002d610
xor eax, eax
jmp 0x14005bca5
xor edx, edx
mov rcx, qword [rsp + 0x2e8]
call fcn.140010334
mov rcx, qword [rsp + 0x2e8]
call fcn.140002510
lea r8, str.Initialization_terminates_normally...
mov rdx, qword [rsp + 0x2d8]
lea rcx, [0x140077910]
call fcn.14002d610
mov eax, 1
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14001b9f0
add rsp, 0x338
ret