Function at 0x40c2a8
Capabilities:
Check mutex on windows
Enumerate gui resources
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
call sub.MFC42u.dll_Ordinal_1463
mov rdx, qword [rax + 0x10]
mov qword [0x0045df20], rdx
lea rdx, str.AAAA_UC
lea rcx, [0x0047ffc8]
call sub.MFC42u.dll_AfxDaoTerm
lea r11, [0x00446030]
mov qword [0x0047ffb0], r11
lea rdx, [0x00434a68]
lea rcx, [0x0045df30]
call sub.MFC42u.dll_AfxDaoTerm
xor ecx, ecx
call sub.MFC42u.dll_Ordinal_1430
lea rdx, [0x0045df30]
lea rcx, [0x0045df40]
call sub.MFC42u.dll_AfxDaoGetEngine
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
and bx, 0x3ff
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r11d, ax
shr r11w, 0xa
mov ebp, 1
xor edi, edi
cmp bx, 7
jne 0x40c356
mov dword [0x0047ff80], edi
jmp 0x40c641
cmp bx, 0x19
jne 0x40c36b
mov dword [0x0047ff80], 2
jmp 0x40c641
cmp bx, 0xc
jne 0x40c380
mov dword [0x0047ff80], 3
jmp 0x40c641
cmp bx, 0x26
jne 0x40c395
mov dword [0x0047ff80], 4
jmp 0x40c641
cmp bx, 0x10
jne 0x40c3aa
mov dword [0x0047ff80], 5
jmp 0x40c641
cmp bx, 0x16
jne 0x40c3d3
mov dword [0x0047ff80], 6
cmp r11w, bp
jne 0x40c641
mov dword [0x0047ff80], 0x26
jmp 0x40c641
cmp bx, 4
jne 0x40c3fc
mov dword [0x0047ff80], 0xc
cmp r11w, bp
jne 0x40c641
mov dword [0x0047ff80], 7
jmp 0x40c641
cmp bx, 0xe
jne 0x40c411
mov dword [0x0047ff80], 8
jmp 0x40c641
cmp bx, 0x15
jne 0x40c426
mov dword [0x0047ff80], 9
jmp 0x40c641
cmp bx, 0x1f
jne 0x40c43b
mov dword [0x0047ff80], 0xa
jmp 0x40c641
cmp bx, 0x13
jne 0x40c450
mov dword [0x0047ff80], 0xb
jmp 0x40c641
cmp bx, 0x1b
jne 0x40c465
mov dword [0x0047ff80], 0xd
jmp 0x40c641
cmp bx, 0x1d
jne 0x40c47a
mov dword [0x0047ff80], 0xe
jmp 0x40c641
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
cmp bx, cx
jne 0x40c493
mov dword [0x0047ff80], 0xf
jmp 0x40c641
cmp bx, 8
jne 0x40c4a8
mov dword [0x0047ff80], 0x10
jmp 0x40c641
cmp bx, 5
jne 0x40c4bd
mov dword [0x0047ff80], 0x11
jmp 0x40c641
cmp bx, 6
jne 0x40c4d2
mov dword [0x0047ff80], 0x13
jmp 0x40c641
cmp bx, bp
jne 0x40c4e6
mov dword [0x0047ff80], 0x14
jmp 0x40c641
cmp bx, 0x29
jne 0x40c4fb
mov dword [0x0047ff80], 0x15
jmp 0x40c641
cmp bx, 0x12
jne 0x40c510
mov dword [0x0047ff80], 0x16
jmp 0x40c641
cmp bx, 0xa
jne 0x40c543
mov eax, reloc.OLEAUT32.dll_SafeArrayUnaccessData
cmp r11w, 0xb
cmove eax, ecx
mov dword [0x0047ff80], eax
cmp r11w, 8
jne 0x40c641
mov dword [0x0047ff80], 0x27
jmp 0x40c641
cmp bx, 0x11
jne 0x40c558
mov dword [0x0047ff80], 0x19
jmp 0x40c641
cmp bx, 0x3c
jne 0x40c56d
mov dword [0x0047ff80], 0x1a
jmp 0x40c641
cmp bx, 0x14
jne 0x40c582
mov dword [0x0047ff80], 0x1b
jmp 0x40c641
cmp bx, 0x1e
jne 0x40c597
mov dword [0x0047ff80], 0x1c
jmp 0x40c641
cmp bx, 0x52
jne 0x40c5ac
mov dword [0x0047ff80], 0x1d
jmp 0x40c641
cmp bx, 0x36
jne 0x40c5c1
mov dword [0x0047ff80], 0x1e
jmp 0x40c641
cmp bx, 0x39
jne 0x40c5d3
mov dword [0x0047ff80], 0x1f
jmp 0x40c641
cmp bx, 0xd
jne 0x40c5e5
mov dword [0x0047ff80], 0x20
jmp 0x40c641
cmp bx, 0xb
jne 0x40c5f7
mov dword [0x0047ff80], 0x21
jmp 0x40c641
cmp bx, 0x22
jne 0x40c609
mov dword [0x0047ff80], 0x22
jmp 0x40c641
cmp bx, 0x3e
jne 0x40c61b
mov dword [0x0047ff80], 0x23
jmp 0x40c641
cmp bx, 0x21
jne 0x40c62d
mov dword [0x0047ff80], 0x24
jmp 0x40c641
mov eax, ebp
mov ecx, 0x25
cmp bx, 0x64
cmove eax, ecx
mov dword [0x0047ff80], eax
call fcn.00420d90
mov edx, dword [0x00480510]
lea rcx, str.disable_dark_theme
call fcn.0041fca0
mov ebx, eax
mov dword [0x00480510], eax
mov dword [0x0048050c], ebp
mov edx, ebp
lea rcx, str.soft_paint
call fcn.0041fca0
mov dword [0x0048050c], eax
call fcn.00424260
cmp eax, edi
je 0x40c69a
call fcn.00425040
cmp ebx, edi
jne 0x40c69a
mov edx, ebp
mov rcx, qword [0x0045df20]
call fcn.00426750
call fcn.0040c068
cmp eax, edi
je 0x40c6aa
mov eax, ebp
jmp 0x40c81e
mov rdx, qword [rsi + 0xd8]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
call fcn.00422c70
cmp eax, edi
jne 0x40c6ca
jmp 0x40c812
mov edx, dword [0x0047ff80]
lea rcx, [0x00434a20]
call fcn.0041fca0
mov dword [0x0047ff80], eax
mov ecx, SafeArrayUnaccessData
call fcn.00421a90
mov rdx, rax
lea rcx, [rsp + 0x78]
call sub.MFC42u.dll_CDaoException::CDaoException
mov r8w, 0x20
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.0040ba5c
nop
mov rdx, rax
lea rcx, [0x0045df48]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
call fcn.00406de0
cmp eax, edi
je 0x40c736
mov edi, ebp
jmp 0x40c812
mov rcx, qword [0x0045df30]
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x0045aae0], eax
mov r8, qword [0x0045df30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x0045aaf0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c779
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c7c1
lea rdx, [0x00434a10]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CRichEditView::FindTextW
cmp eax, edi
jl 0x40c7aa
lea rdx, [0x0045aaf8]
lea rcx, [0x0040b9e8]
call qword [sym.imp.USER32.dll_EnumWindows]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
lea rdx, [0x0045aaf8]
lea rcx, [0x0040b984]
call qword [sym.imp.USER32.dll_EnumWindows]
nop
jmp 0x40c812
mov ecx, 0x2588
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov qword [rsp + 0x70], rax
cmp rax, rdi
je 0x40c7e2
xor edx, edx
mov rcx, rax
call fcn.00412d60
mov rdi, rax
mov qword [rsi + 0x40], rdi
xor r8d, r8d
lea edx, [r8 + 0x66]
mov rcx, rdi
call sub.MFC42u.dll_CMiniDockFrameWnd::Create
call sub.MFC42u.dll_Ordinal_1463
mov edx, pe_nt_image_headers64
mov rcx, qword [rax + 0x10]
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [0x0045aae8], rax
mov edi, ebp
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret