Function at 0x426b30
Capabilities:
Accept command line arguments
Check os version
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0xa4]
push 0
push eax
mov dword [ebp - 0xa8], 0x44
call fcn.004c9b50
add esp, 0xc
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x118
lea edx, [ebp - 0x2c0]
push 0
push edx
mov dword [ebp - 0x2c4], 0x11c
call fcn.004c9b50
add esp, 0xc
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x800
call fcn.0044c4d0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x426bf5
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, 0x400
push edi
push esi
push str.PATH
call ebx
cmp eax, edi
jb 0x426be6
lea edi, [eax + 1]
lea ecx, [edi + edi]
push ecx
push esi
call fcn.0044c4b0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x426bf5
push edi
mov edx, eax
push edx
push str.PATH
call ebx
mov esi, dword [ebp - 0x1c]
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x426bef
mov eax, ecx
xor ecx, ecx
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 2
push 0x208
mov dword [ebp - 0x30], eax
call fcn.0044c490
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x426c22
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 2
push 0x208
call fcn.0044c490
mov esi, eax
add esp, 8
mov dword [ebp - 0x34], esi
test esi, esi
je 0x426c46
push esi
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 2
push 0x800
call fcn.0044c490
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x426e03
call fcn.004c6070
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x100
lea edx, [ebp - 0x10]
push edx
or eax, 0x20019
push eax
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionConsoleTrueTypeFont
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426e03
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
push 0
push edx
setne byte [ebp - 0x11]
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], 0x7e
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x426df9
lea ebx, [ebx]
mov eax, dword [ebp - 4]
inc dword [ebp - 0xc]
cmp eax, 0x3f
jbe 0x426d00
mov eax, 0x3f
xor ecx, ecx
mov word [ebp + eax*2 - 0x1a8], cx
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0x3f
jbe 0x426d19
mov eax, 0x3f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov word [ebp + eax*2 - 0x128], dx
lea eax, [ebp - 0x1a8]
push eax
call ebx
lea ecx, [ebp - 0x128]
push ecx
mov esi, eax
call ebx
push 0xa
lea edx, [ebp - 0x24]
mov ebx, eax
push edx
lea eax, [ebp - 0x1a8]
push eax
mov dword [ebp - 0x24], 0
call fcn.004c9eb4
add esp, 0xc
test eax, eax
je 0x426d65
cmp byte [ebp - 0x11], 0
je 0x426db6
cmp eax, 0xffffffff
je 0x426db6
lea eax, [ebx + esi + 3]
cmp eax, 0x800
jge 0x426db6
mov ecx, dword [ebp - 0x18]
cmp word [ecx], 0
je 0x426d89
mov edx, 9
mov word [edi], dx
add edi, 2
lea eax, [ebp - 0x1a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esi, [edi + esi*2]
mov ecx, 9
lea edx, [ebp - 0x128]
mov word [esi], cx
add esi, 2
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edi, [esi + ebx*2]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0xc]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1a8]
push ecx
push edx
push eax
mov dword [ebp - 4], 0x40
mov dword [ebp - 8], 0x7e
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x426cf0
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x426e19
push eax
call ebx
inc eax
mov dword [ebp - 8], eax
jmp 0x426e23
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0x38], eax
lea edi, [eax + 0x3cc]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x426e3e
push eax
call ebx
inc eax
mov dword [ebp - 0xc], eax
jmp 0x426e48
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add eax, eax
add edi, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x426e5f
push eax
call ebx
inc eax
mov dword [ebp - 0x10], eax
jmp 0x426e69
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add eax, eax
add edi, eax
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x426e7d
push esi
call ebx
inc eax
mov dword [ebp - 4], eax
jmp 0x426e87
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, eax
add edi, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x426ea1
push eax
call ebx
inc eax
mov dword [ebp - 0x28], eax
jmp 0x426eab
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add eax, eax
add edi, eax
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x426ec2
push esi
call ebx
inc eax
mov dword [ebp - 0x20], eax
jmp 0x426ecc
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
lea edi, [edi + eax*2]
push 1
push edi
call fcn.0044c490
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4271b1
mov dword [ebx], edi
call fcn.004c6070
movzx edx, al
neg edx
sbb edx, edx
and edx, 0x20
add edx, 0x20
mov dword [ebx + 0x48], edx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebx + 0x4c], eax
lea edi, [ebx + 4]
mov ecx, 0x11
lea esi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x54]
mov ecx, 0x47
lea esi, [ebp - 0x2c4]
rep movsd dword es:[edi], dword [esi]
call fcn.004c6060
movzx eax, al
mov dword [ebx + 0x1b8], eax
call fcn.004c5fa0
xor ecx, ecx
test al, al
setne cl
mov dword [ebx + 0x1ac], ecx
call fcn.004c6000
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
test al, al
setne dl
push str.ReactOS
mov dword [ebx + 0x1b0], edx
call esi
mov edi, eax
lea eax, [ebp - 0x2b0]
push eax
call esi
cmp word [ebp + eax*2 - 0x2ae], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp + eax*2 - 0x2ae]
je 0x426fad
lea ecx, [eax + edi*2 + 2]
lea edx, [ebp - 0x1b0]
cmp ecx, edx
jae 0x426fad
push str.ReactOS
xor ecx, ecx
push eax
mov word [eax + edi*2], cx
call esi
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x1b4], eax
cmp dword [ebx + 0x1b4], 0
jne 0x427032
cmp dword [ebp - 0x2c0], 5
jne 0x427032
lea edx, [ebp - 0x24]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427032
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0
push str.ProductName
push edx
mov dword [ebp - 0x44], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427028
push str.ReactOS
lea ecx, [ebp - 0x128]
push ecx
mov word [ebp + edi*2 - 0x128], ax
call esi
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x1b4], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebx + 0x1bc], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push ebx
push 0x424e80
push 0
push 0
mov dword [ebx + 0x1c0], eax
mov dword [ebx + 0x1c4], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4270a3
push str.GetConsoleHistoryInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4270a3
lea esi, [ebx + 0x170]
push esi
mov dword [esi], 0x10
call eax
test eax, eax
jne 0x4270a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
mov dword [esi], eax
lea eax, [ebx + 0x180]
lea ecx, [ebx + 0x188]
lea edx, [ebx + 0x190]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0xfffffff6
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0xfffffff5
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0xfffffff4
xor esi, esi
mov eax, dword [ebp + esi*8 - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp + esi*8 - 0x64]
lea edi, [ecx + 4]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x4270fb
mov dword [edi], 0xffffffff
inc esi
cmp esi, 3
jb 0x4270d5
mov eax, dword [ebp - 0x30]
lea esi, [ebx + 0x3cc]
test eax, eax
je 0x427122
mov ecx, dword [ebp - 0x10]
push eax
push ecx
push esi
call fcn.00401730
mov dword [ebx + 0x198], esi
add esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42713d
mov edx, dword [ebp - 0xc]
push eax
push edx
push esi
call fcn.00401730
mov dword [ebx + 0x19c], esi
add esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x427158
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.00401730
mov dword [ebx + 0x1a0], esi
add esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x427179
mov edi, dword [ebp - 8]
push eax
push edi
push esi
call fcn.00401730
mov dword [ebx + 0x1a4], esi
add esi, dword [ebp - 0x38]
mov dword [ebx + 0x1a8], edi
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x427194
mov ecx, dword [ebp - 0x28]
push eax
push ecx
push esi
call fcn.00401730
mov dword [ebx + 0x10], esi
add esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x18], 0
je 0x4271ae
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push edx
push eax
push esi
call fcn.00401730
mov dword [ebx + 0x3c8], esi
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4271c1
push eax
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4271d1
push eax
call fcn.0044c4f0
add esp, 4
test esi, esi
je 0x4271de
push esi
call fcn.0044c4f0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret