Function at 0x402040
Capabilities:
Check os version
Get common file path
Read .ini file
Terminate process

Disassembly:
mov eax, 0x44c4
call fcn.004034a0
push ebx
push ebp
push esi
lea eax, [esp + 0x128]
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x130], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402303
mov eax, dword [esp + 0x44e0]
lea ecx, [esp + 0x7d4]
lea edx, [esp + 0x6d0]
push ecx
push edx
push eax
call fcn.00401820
add esp, 0xc
lea ecx, [esp + 0x1c0]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402303
lea edx, [esp + 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x1bf]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4020e3
lea eax, [esp + 0x1c0]
push 0x409214
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1c0]
lea edx, [esp + 0x3c8]
push ecx
push edx
call edi
lea eax, [esp + 0x3c8]
push str.fonts_
push eax
call esi
lea ecx, [esp + 0x5cc]
push 0x104
mov edx, dword [esp + 0x44dc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
lea eax, [esp + 0x4d0]
push ebp
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x5d8]
push ecx
push edx
call fcn.00403320
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c4]
push eax
push ecx
call edi
lea edx, [esp + 0x4cc]
lea eax, [esp + 0x2c4]
push edx
push eax
call esi
lea ecx, [esp + 0x2c4]
lea edx, [esp + 0x28]
push ecx
push edx
call edi
lea eax, [esp + 0x6d0]
lea ecx, [esp + 0x28]
push eax
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0x28]
push edx
push ebp
push str.neverreboot
push str.fontoptions
call esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
push ebp
push str.exitonnt5
push str.fontoptions
call esi
lea ecx, [esp + 0x28]
mov edi, eax
push ecx
push ebp
push str.exitonnt
push str.fontoptions
call esi
lea edx, [esp + 0x28]
mov ebx, eax
push edx
push ebp
push str.exitonwin98
push str.fontoptions
call esi
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push 1
push str.versioncheck
push str.fontoptions
call esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
push ecx
push 1
push str.upgrade
push str.fontoptions
call esi
test edi, edi
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x13c]
je 0x402225
cmp eax, 2
jne 0x402225
cmp ecx, 5
jae 0x40224a
test ebx, ebx
je 0x40222e
cmp eax, 2
je 0x40224a
test ebp, ebp
je 0x402251
cmp eax, 1
jne 0x402251
cmp ecx, 4
jne 0x402248
cmp dword [esp + 0x134], 0xa
jae 0x40224a
cmp ecx, ecx
jbe 0x402251
mov eax, 1
jmp 0x402255
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4022e4
lea edx, [esp + 0x28]
lea eax, [esp + 0x8d4]
push edx
push 0x3c00
lea ecx, [esp + 0x7dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea esi, [esp + 0x8d4]
mov al, byte [esp + 0x8d4]
test al, al
je 0x4022e4
mov al, byte [esi + 1]
test al, al
je 0x4022e4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
je 0x4022d8
cmp byte [esi], 0x3b
je 0x4022d8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x3d0]
push ecx
lea eax, [esp + 0x1cc]
push edx
lea ecx, [esp + 0x2d4]
push eax
push ecx
push esi
call fcn.004019f0
add esp, 0x1c
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40228f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4022fb
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4022fb
push 0xbc2
jmp 0x4022fd
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44c4
ret 0x10