Function at 0x403a64
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa84
xor eax, eax
mov dword [0x454c40], eax
push str.c:_temp
call fcn.00445a60
pop ecx
push 0x458d57
push 0x454ad4
call fcn.004463c0
add esp, 8
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 4], 0
jne 0x403ab4
push 0x458d5a
push 0x454ad4
call fcn.004463c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403ac6
mov byte [0x454ad4], 0
jmp 0x404248
push 0x454ad4
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0044435c
add esp, 8
push str..tmp
lea eax, [ebp - 0x42c]
push eax
call fcn.00444280
add esp, 8
push 2
push 0
push dword [ebp - 4]
call fcn.004466ac
add esp, 0xc
push dword [ebp - 4]
call fcn.00446710
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4e20
jg 0x403b20
push dword [ebp - 4]
call fcn.00445c04
pop ecx
jmp 0x403d0f
cmp dword [ebp - 0x24], 0x7a120
jle 0x403b49
push 0
mov edx, dword [ebp - 0x24]
add edx, 0xfff85ee0
push edx
push dword [ebp - 4]
call fcn.004466ac
add esp, 0xc
mov dword [ebp - 0x24], 0x7a120
jmp 0x403b58
push 0
push 0
push dword [ebp - 4]
call fcn.004466ac
add esp, 0xc
push dword [ebp - 0x24]
call fcn.00443374
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403bbd
push dword [ebp - 4]
call fcn.00445c04
pop ecx
cmp dword [ebp - 0x2c], 0
je 0x403b82
push dword [ebp - 0x2c]
call fcn.00443384
pop ecx
push 0x458d66
push 0x454ad4
call fcn.004463c0
add esp, 8
mov dword [ebp - 4], eax
push dword [ebp - 0x24]
push str._._START_._
push str._s_r_n____skipped__d_of_previous_file_____r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0x10
push dword [ebp - 4]
call fcn.00445c04
pop ecx
jmp 0x403d0f
push dword [ebp - 4]
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x2c]
call fcn.0044661c
add esp, 0x10
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.00445c04
pop ecx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x24]
jl 0x403b73
push str._._START_._
call fcn.0044438c
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x403c44
xor edx, edx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x1c]
jge 0x403c33
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x10]
mov dl, byte [ecx + eax]
mov ecx, dword [ebp - 0x10]
cmp dl, byte [ecx + str._._START_._]
jne 0x403c33
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x403c0e
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x1c]
jge 0x403c44
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x403c01
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0xc]
cmp ecx, 0x4e20
jge 0x403c6d
cmp dword [ebp - 0x24], 0x4e20
jle 0x403c68
mov eax, dword [ebp - 0x24]
add eax, 0xffffb1e0
mov dword [ebp - 0xc], eax
jmp 0x403c6d
xor edx, edx
mov dword [ebp - 0xc], edx
push 0x458d93
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004463c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403b73
push str._...__r_n
push dword [ebp - 8]
call fcn.004463ec
add esp, 8
push dword [ebp - 8]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xc]
push eax
push 1
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0xc]
push edx
call fcn.00446864
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call fcn.00445c04
pop ecx
push dword [ebp - 0x2c]
call fcn.00443384
pop ecx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x403cf0
lea edx, [ebp - 0x42c]
push edx
call fcn.00445acc
pop ecx
jmp 0x403b73
push 0x454ad4
call fcn.00445acc
pop ecx
push 0x454ad4
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00446f44
add esp, 8
push 0x458d9e
push 0x454ad4
call fcn.004463c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403d36
mov byte [0x454ad4], 0
jmp 0x404248
push 2
push 0
push dword [ebp - 4]
call fcn.004466ac
add esp, 0xc
push str._._START_._
push 0x458da1
push dword [ebp - 4]
call fcn.004463ec
add esp, 0xc
lea eax, [ebp - 0x57c]
push eax
call sub.KERNEL32.DLL_GetLocalTime
movzx edx, word [ebp - 0x570]
push edx
movzx ecx, word [ebp - 0x572]
push ecx
movzx eax, word [ebp - 0x574]
push eax
movzx edx, word [ebp - 0x57c]
push edx
movzx ecx, word [ebp - 0x57a]
push ecx
movzx eax, word [ebp - 0x576]
push eax
push str._02d._02d._04d__02d:_02d:_02d
lea edx, [ebp - 0x2c4]
push edx
call fcn.00447d04
add esp, 0x20
lea ecx, [ebp - 0x2c4]
push ecx
call sub.KERNEL32.DLL_GetTickCount
push eax
push str._ld___s_________PCDOCW_PROG_START__________r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0x10
push str.COMPIL:__
push dword [ebp - 4]
call fcn.004463ec
add esp, 8
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push dword [edx*4 + 0x454c3c]
push 0x458dfb
push dword [ebp - 4]
call fcn.004463ec
add esp, 0xc
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 1
jl 0x403ddc
push str.T80_10.09.2024
push str.___Ver___s__r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0xc
mov dword [ebp - 0xd0], 0x94
lea ecx, [ebp - 0xd0]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
imul eax, dword [ebp - 0xc0], 0x3e8
imul edx, dword [ebp - 0xcc], 0x64
add eax, edx
add eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xcc], 6
jne 0x403e71
cmp dword [ebp - 0xc8], 0
jne 0x403e71
push str.WinVista
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x960
jne 0x403e93
push str.WinNT4.0
lea eax, [ebp - 0x2c4]
push eax
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x9c6
jne 0x403eb5
push str.WinS2003
lea edx, [ebp - 0x2c4]
push edx
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x9c5
jne 0x403ed7
push str.WinXP
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x9c4
jne 0x403ef9
push str.Win2000
lea eax, [ebp - 0x2c4]
push eax
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x5d2
jne 0x403f18
push str.WinMe
lea edx, [ebp - 0x2c4]
push edx
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x582
jne 0x403f37
push str.Win98
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc], 0x578
jne 0x403f56
push str.Win95
lea eax, [ebp - 0x2c4]
push eax
call fcn.0044435c
add esp, 8
jmp 0x403f89
cmp dword [ebp - 0xc0], 0
jne 0x403f75
push str.Win3.1
lea edx, [ebp - 0x2c4]
push edx
call fcn.0044435c
add esp, 8
jmp 0x403f89
push 0x458e4f
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xc0]
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
lea edx, [ebp - 0x2c4]
push edx
push str._s_OSV_ld._ld._ld__ld___s__r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0x20
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x34], eax
push 0x6c
push dword [ebp - 0x34]
call sub.GDI32.DLL_GetDeviceCaps
push eax
push 1
call sub.USER32.DLL_GetSystemMetrics
push eax
push 0
call sub.USER32.DLL_GetSystemMetrics
push eax
push str.SCR:__dx_dx_d_r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0x14
push dword [ebp - 0x34]
push 0
call sub.USER32.DLL_ReleaseDC
call sub.KERNEL32.DLL_GetSystemDefaultLangID
mov word [ebp - 0x36], ax
cmp word [ebp - 0x36], 0
je 0x404016
cmp word [ebp - 0x36], 0x809
jne 0x40402f
push 0x458e81
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x409
jne 0x404050
push 0x458e85
lea eax, [ebp - 0x2c4]
push eax
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x40c
jne 0x404071
push 0x458e89
lea edx, [ebp - 0x2c4]
push edx
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x407
jne 0x404092
push 0x458e8d
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x410
jne 0x4040b3
push 0x458e91
lea eax, [ebp - 0x2c4]
push eax
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x415
jne 0x4040d1
push 0x458e95
lea edx, [ebp - 0x2c4]
push edx
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x40a
jne 0x4040ef
push 0x458e99
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x405
jne 0x40410d
push 0x458e9d
lea eax, [ebp - 0x2c4]
push eax
call fcn.0044435c
add esp, 8
jmp 0x40413f
cmp word [ebp - 0x36], 0x419
jne 0x40412b
push 0x458ea1
lea edx, [ebp - 0x2c4]
push edx
call fcn.0044435c
add esp, 8
jmp 0x40413f
push 0x458ea5
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0044435c
add esp, 8
call sub.KERNEL32.DLL_GetACP
mov dword [ebp - 0x28], eax
push 0x458eeb
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c4]
push eax
movzx edx, word [ebp - 0x36]
push edx
push str.LNG:_SystemDefaultLangID_d__s___Ansi_code_page__d__Prog_s__Flg:_
push dword [ebp - 4]
call fcn.004463ec
add esp, 0x18
mov byte [ebp - 0x2c4], 0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push 0x468af8
lea eax, [ebp - 0x42c]
push eax
call fcn.0044435c
add esp, 8
mov edx, dword [ebp - 0xc]
push dword [edx*4 + 0x45491c]
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00444280
add esp, 8
lea eax, [ebp - 0x56c]
push eax
lea edx, [ebp - 0x42c]
push edx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4041f5
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0xc]
push dword [ecx*4 + 0x45491c]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00444280
add esp, 8
push 0x458eef
lea edx, [ebp - 0x2c4]
push edx
call fcn.00444280
add esp, 8
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jl 0x404177
lea ecx, [ebp - 0x2c4]
push ecx
push str._s__r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0xc
call fcn.00402820
test eax, eax
je 0x404229
mov eax, 0x458f0b
jmp 0x40422e
mov eax, str._not
push eax
push str.User_is_s_admin_r_n_r_n
push dword [ebp - 4]
call fcn.004463ec
add esp, 0xc
push dword [ebp - 4]
call fcn.00445c04
pop ecx
mov esp, ebp
pop ebp
ret