Function at 0x10001e20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001149b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10016180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.100042d0
add esp, 0xc
mov byte [ebp - 0x12c], 0
push 0x7f
push 0
lea edx, [ebp - 0x12b]
push edx
call fcn.100042d0
add esp, 0xc
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10002269
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x244]
call fcn.10003920
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0x104
mov byte [ebp - 0x23c], 0
push 0x103
push 0
lea ecx, [ebp - 0x23b]
push ecx
call fcn.100042d0
add esp, 0xc
cmp dword [ebp - 0x9c], 0
jne 0x10001ef1
mov dword [ebp - 0x134], str.SOFTWAREMICROSOFTWindows_3.1CurrentVersion
jmp 0x10001f37
cmp dword [ebp - 0x9c], 1
jne 0x10001f0f
cmp dword [ebp - 0xa4], 0
jne 0x10001f0f
mov dword [ebp - 0x134], str.SOFTWAREMICROSOFTWindows_95CurrentVersion
jmp 0x10001f37
cmp dword [ebp - 0x9c], 1
jne 0x10001f2d
cmp dword [ebp - 0xa4], 0
jbe 0x10001f2d
mov dword [ebp - 0x134], str.SOFTWAREMICROSOFTWindows_98CurrentVersion
jmp 0x10001f37
mov dword [ebp - 0x134], str.SOFTWAREMICROSOFTWindows_NTCurrentVersion
push 0x2001f
mov edx, dword [ebp - 0x134]
push edx
push 0x80000002
lea ecx, [ebp - 0x244]
call fcn.100039c0
test eax, eax
jne 0x10001fb6
mov dword [ebp - 0x248], 0x100124b0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x244]
call fcn.10003a20
test eax, eax
jne 0x10001fab
lea eax, [ebp - 0x23c]
push eax
call fcn.10004240
add esp, 4
push eax
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.10003ed0
add esp, 0xc
lea ecx, [ebp - 0x244]
call fcn.10003970
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x10001fe6
cmp dword [ebp - 0x24c], 1
je 0x1000200c
cmp dword [ebp - 0x24c], 2
je 0x100020ae
jmp 0x10002257
push 0x100124bc
call fcn.10004240
add esp, 4
push eax
push str.Win32s
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10003ed0
add esp, 0xc
jmp 0x10002257
cmp dword [ebp - 0xa8], 4
jne 0x10002041
cmp dword [ebp - 0xa4], 0
jne 0x10002041
push 0x100124cc
call fcn.10004240
add esp, 4
push eax
push 0x100124d0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.10003ed0
add esp, 0xc
jmp 0x100020a9
cmp dword [ebp - 0xa8], 4
jne 0x10002076
cmp dword [ebp - 0xa4], 0xa
jne 0x10002076
push 0x100124d4
call fcn.10004240
add esp, 4
push eax
push 0x100124d8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003ed0
add esp, 0xc
jmp 0x100020a9
cmp dword [ebp - 0xa8], 4
jne 0x100020a9
cmp dword [ebp - 0xa4], 0x5a
jne 0x100020a9
push 0x100124dc
call fcn.10004240
add esp, 4
push eax
push 0x100124e0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10003ed0
add esp, 0xc
jmp 0x10002257
cmp dword [ebp - 0xa8], 6
jne 0x1000218b
cmp dword [ebp - 0xa4], 0
jne 0x1000218b
lea eax, [ebp - 0x12c]
push eax
call fcn.10004f80
add esp, 4
push str.VISTA
lea ecx, [ebp - 0x12c]
push ecx
call fcn.10003900
add esp, 8
test eax, eax
jb 0x10002112
push 0x100124ec
call fcn.10004240
add esp, 4
push eax
push str.Vista
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003ed0
add esp, 0xc
jmp 0x10002186
push 0x100124fc
lea ecx, [ebp - 0x12c]
push ecx
call fcn.10003900
add esp, 8
test eax, eax
jb 0x1000214d
push 0x10012504
call fcn.10004240
add esp, 4
push eax
push str.2008
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003ed0
add esp, 0xc
jmp 0x10002186
push 0x10012514
lea ecx, [ebp - 0x12c]
push ecx
call fcn.10003900
add esp, 8
test eax, eax
jb 0x10002186
push 0x1001251c
call fcn.10004240
add esp, 4
push eax
push str.2007
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003ed0
add esp, 0xc
jmp 0x10002257
cmp dword [ebp - 0xa8], 5
jne 0x100021c3
cmp dword [ebp - 0xa4], 1
jne 0x100021c3
push 0x1001252c
call fcn.10004240
add esp, 4
push eax
push 0x10012530
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10003ed0
add esp, 0xc
jmp 0x10002257
cmp dword [ebp - 0xa8], 5
jne 0x100021f8
cmp dword [ebp - 0xa4], 0
jne 0x100021f8
push 0x10012534
call fcn.10004240
add esp, 4
push eax
push str.2000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.10003ed0
add esp, 0xc
jmp 0x10002257
cmp dword [ebp - 0xa8], 5
jne 0x1000222d
cmp dword [ebp - 0xa4], 2
jne 0x1000222d
push 0x10012544
call fcn.10004240
add esp, 4
push eax
push str.2003
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003ed0
add esp, 0xc
jmp 0x10002257
cmp dword [ebp - 0xa8], 4
ja 0x10002257
push 0x10012554
call fcn.10004240
add esp, 4
push eax
push str.WINNT
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10003ed0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.10003950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004730
mov esp, ebp
pop ebp
ret