Function at 0x402430
Capabilities:
Check if file exists
Check os version
Create process on windows
Create thread
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x407008]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push 0x114
lea eax, [esp + 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x70], 0x114
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4026cf
cmp dword [esp + 0x74], 5
jne 0x4026cf
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x402497
cmp eax, 2
jne 0x4026cf
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 4
cmp dword [eax + 0x10], 7
jne 0x402520
cmp dword [eax + 0xc], 0x16
jne 0x402520
push 0
push 0
push 0
push 0x4016a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x208
lea eax, [esp + 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x70]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x70]
call fcn.00401370
call fcn.004016e0
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0040277e
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [esp + 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
cmp word [esp + 0x70], ax
jne 0x402554
xor ecx, ecx
jmp 0x40256f
lea ecx, [esp + 0x70]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402560
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x58]
call fcn.00401bf0
lea ecx, [esp + 0x50]
call fcn.00401940
mov ecx, dword [esp + 0x64]
mov bl, al
cmp ecx, 8
jb 0x40259d
inc ecx
push ecx
push dword [esp + 0x54]
call fcn.00401cf0
test bl, bl
je 0x4026e3
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401b00
push 1
sub esp, 8
mov ecx, eax
call fcn.00401b70
push ecx
inc eax
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00401b00
mov ecx, eax
call fcn.00401a80
push eax
lea ecx, [esp + 0x54]
call fcn.00402160
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, 8
jb 0x4025fd
inc eax
push eax
push dword [esp + 0xc]
call fcn.00401cf0
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0
cmp eax, 8
jb 0x402628
inc eax
push eax
push dword [esp + 0x24]
call fcn.00401cf0
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], 0
cmp eax, 8
jb 0x402653
inc eax
push eax
push dword [esp + 0x3c]
call fcn.00401cf0
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4026a6
test al, 0x10
jne 0x4026a6
cmp dword [esp + 0x64], 8
lea edx, [esp + 0x50]
cmovae edx, dword [esp + 0x50]
call fcn.00401a00
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
push 1
cmovae eax, dword [esp + 0x54]
push 0
push 0
push eax
push 0x405064
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x64]
cmp eax, 8
jb 0x4026e3
inc eax
push eax
push dword [esp + 0x54]
call fcn.00401cf0
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0040277e
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Error
push str.This_program_can_run_in_only_Windows_XP.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x27c]
pop ebx
xor ecx, esp
call fcn.0040277e
mov esp, ebp
pop ebp
ret 0x10