Function at 0x4019a3
Capabilities:
Create process on windows
Get system information on windows
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x417004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
lea ecx, [esp + 0xc4]
call fcn.00402055
lea ecx, [esp + 0x48]
call fcn.00402055
lea ecx, [esp + 0x64]
call fcn.00402055
lea edx, [esp + 0x48]
call fcn.00402b5b
test eax, eax
jne 0x401f48
lea ecx, [esp + 0x7c]
call fcn.00402055
push ecx
push ecx
lea ecx, [esp + 0x50]
call fcn.00401f9a
mov edx, eax
xor edi, edi
cmp edx, 0xffffffff
je 0x401a62
lea ecx, [esp + 0x48]
lea esi, [edx + 1]
call fcn.00401fdb
cmp esi, eax
jae 0x401a62
push edx
push edi
lea eax, [esp + 0x38]
push eax
call fcn.00401f80
push eax
lea ecx, [esp + 0x80]
call fcn.0040201d
lea ecx, [esp + 0x30]
call fcn.004016f9
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
call fcn.00401f80
push eax
lea ecx, [esp + 0x4c]
call fcn.0040201d
lea ecx, [esp + 0x30]
call fcn.004016f9
lea edx, [esp + 0x64]
mov ecx, str.HMCL_JAVA_OPTS
call fcn.00402bea
test eax, eax
je 0x401a82
push str._XX:MinHeapFreeRatio5__XX:MaxHeapFreeRatio15
lea ecx, [esp + 0x68]
call fcn.00401fe4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x804
mov esi, 0x11c
cmp ax, cx
lea eax, [esp + 0x100]
push esi
push edi
push eax
sete byte [esp + 0x1f]
call fcn.00405190
add esp, 0xc
mov dword [esp + 0x100], esi
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov dword [esp + 0x104], 6
mov dword [esp + 0x108], 1
push 3
push 2
push edi
push edi
call esi
push 3
push 1
push edx
push eax
call esi
push edx
push eax
push 3
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
lea eax, [esp + 0xdc]
push eax
setne byte [esp + 0x16]
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0xdc], 9
push 0xc
sete bl
pop eax
cmp word [esp + 0xdc], ax
mov byte [esp + 0x10], bl
sete byte [esp + 0x11]
jne 0x401b5b
push str.jre_arm64_binjavaw.exe
lea ecx, [esp + 0x1c]
call fcn.004012cc
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x20]
call fcn.00401729
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.004016f9
test bl, bl
je 0x401b92
push str.jre_x64_binjavaw.exe
lea ecx, [esp + 0x1c]
call fcn.004012cc
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x20]
call fcn.00401729
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.004016f9
push str.jre_x86_binjavaw.exe
lea ecx, [esp + 0x1c]
call fcn.004012cc
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x20]
call fcn.00401729
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.004016f9
lea ecx, [esp + 0xc4]
call fcn.00401298
test al, al
je 0x401c0e
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x414e1c
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x3c]
call fcn.00402253
pop ecx
lea edx, [esp + 0x84]
mov ecx, eax
call fcn.00401804
pop ecx
pop ecx
lea ecx, [esp + 0x30]
call fcn.004016f9
lea ecx, [esp + 0x94]
call fcn.00402055
push 0x26
lea edx, [esp + 0x98]
pop ecx
call fcn.00402e14
test eax, eax
jns 0x401c3e
push str.C:Program_Files_
lea ecx, [esp + 0x98]
call fcn.00401fe4
mov ebx, 0x417780
mov dword [esp + 0x14], edi
mov eax, sym.HMCLauncher.exe_AmdPowerXpressRequestHighPerformance
cmp eax, ebx
sbb edi, edi
and edi, 0xfffffff9
add edi, 7
mov esi, dword [ebx]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402066
push esi
lea ecx, [esp + 0x34]
call fcn.004012cc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00402e83
lea ecx, [esp + 0x30]
call fcn.004016f9
lea ecx, [esp + 0x18]
call fcn.00402ea7
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x20]
call fcn.0040187e
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.004016f9
mov eax, dword [esp + 0x14]
lea ebx, [ebx + 4]
inc eax
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x401c56
push 0x2a
lea edx, [esp + 0x98]
pop ecx
call fcn.00402e14
mov ebx, 0x417780
test eax, eax
jns 0x401cf0
push str.C:Program_Files__x86__
lea ecx, [esp + 0x98]
call fcn.00401fe4
and dword [esp + 0x14], 0
mov esi, dword [ebx]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402066
push esi
lea ecx, [esp + 0x34]
call fcn.004012cc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00402e83
lea ecx, [esp + 0x30]
call fcn.004016f9
lea ecx, [esp + 0x18]
call fcn.00402ea7
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x20]
call fcn.0040187e
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.004016f9
mov eax, dword [esp + 0x14]
add ebx, 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x401cf5
push str.javaw
lea ecx, [esp + 0x34]
call fcn.004012cc
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x38]
call fcn.00401729
pop ecx
pop ecx
lea ecx, [esp + 0x30]
call fcn.004016f9
lea ecx, [esp + 0xac]
call fcn.00402055
lea ecx, [esp + 0x18]
call fcn.00402055
push 0x1a
lea edx, [esp + 0x1c]
pop ecx
call fcn.00402e14
test eax, eax
jns 0x401dd2
push 0x28
lea edx, [esp + 0x1c]
pop ecx
call fcn.00402e14
test eax, eax
js 0x401e96
push str..hmcl
lea ecx, [esp + 0x34]
call fcn.004012cc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00402e83
lea ecx, [esp + 0x30]
call fcn.004016f9
push str.java
lea ecx, [esp + 0x34]
call fcn.004012cc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00402e83
lea ecx, [esp + 0x30]
call fcn.004016f9
cmp byte [esp + 0x11], 0
lea ecx, [esp + 0x30]
je 0x401e4b
push str.windows_arm64
call fcn.004012cc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00402e83
lea ecx, [esp + 0x30]
call fcn.004016f9
mov bl, byte [esp + 0x10]
jmp 0x401e7a
mov bl, byte [esp + 0x10]
test bl, bl
je 0x401e5a
push str.windows_x86_64
jmp 0x401e5f
push str.windows_x86
call fcn.004012cc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00402e83
lea ecx, [esp + 0x30]
call fcn.004016f9
lea ecx, [esp + 0x18]
call fcn.00402ea7
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xb0]
call fcn.00401fed
jmp 0x401e9a
mov bl, byte [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.004016f9
lea ecx, [esp + 0xac]
call fcn.00401fcf
test al, al
jne 0x401ecb
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x84]
call fcn.0040187e
pop ecx
pop ecx
cmp byte [esp + 0x12], 0
je 0x401ee3
test bl, bl
mov esi, str.https:__download.bell_sw.com_java_17.0.4.11_bellsoft_jre17.0.4.11_windows_i586_full.msi
mov eax, str.https:__aka.ms_download_jdk_microsoft_jdk_17_windows_x64.msi
cmovne esi, eax
jmp 0x401ee8
mov esi, str.https:__www.java.com
mov cl, byte [esp + 0x13]
mov edx, str.Java_not_found
test cl, cl
mov eax, str.gb0R
push 0x31
cmove eax, edx
mov edx, str.The_Java_runtime_environment_is_required_to_run_HMCL_and_Minecraft__nClick_OK_to_start_downloading_java._nPlease_restart_HMCL_after_installing_Java.
push eax
mov eax, 0x4151b8
cmove eax, edx
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x401f27
push 5
push ebx
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0xac]
call fcn.004016f9
lea ecx, [esp + 0x94]
call fcn.004016f9
lea ecx, [esp + 0x7c]
call fcn.004016f9
lea ecx, [esp + 0x64]
call fcn.004016f9
lea ecx, [esp + 0x48]
call fcn.004016f9
lea ecx, [esp + 0xc4]
call fcn.004016f9
mov ecx, dword [esp + 0x224]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.0040354f
mov esp, ebp
pop ebp
ret 0x10