Function at 0x41947c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
mov edx, dword [0x418f54]
call fcn.00403ecc
xor eax, eax
push ebp
push 0x41973f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x9c
call fcn.004069cc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0x9c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x4194e1
mov eax, dword [ebp - 8]
mov dword [eax], 0x94
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetVersionExA
xor eax, eax
push ebp
push 0x4196f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x33], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2f], eax
cmp dword [ebp - 0x2f], 0
jne 0x41951f
lea eax, [ebp - 0xc]
mov edx, 0x419754
call fcn.004036d4
jmp 0x41952c
lea eax, [ebp - 0xc]
mov edx, 0x419764
call fcn.004036d4
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x33]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
mov eax, dword [ebp - 0x2f]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.00407a2c
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x2b]
call fcn.004036d4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x27], eax
lea eax, [ebp - 0x23]
mov edx, dword [ebp - 8]
add edx, 0x14
mov ecx, 0x80
call fcn.00403868
mov byte [ebp - 0x1f], 0
mov eax, dword [ebp - 0x10]
sub eax, 1
jb 0x419591
je 0x41959a
dec eax
je 0x4195d8
jmp 0x41966d
mov byte [ebp - 0x34], 0
jmp 0x41966d
and dword [ebp - 0x27], 0xffff
mov byte [ebp - 0x34], 1
cmp dword [ebp - 0x33], 4
jne 0x4195b5
cmp dword [ebp - 0x2f], 0
jle 0x4195b5
mov byte [ebp - 0x34], 2
cmp dword [ebp - 0x33], 4
jg 0x4195cf
cmp dword [ebp - 0x33], 4
jne 0x41966d
cmp dword [ebp - 0x2f], 0x5a
jl 0x41966d
mov byte [ebp - 0x34], 5
jmp 0x41966d
mov byte [ebp - 0x34], 3
cmp dword [ebp - 0x33], 5
jne 0x41960c
mov byte [ebp - 0x34], 4
cmp dword [ebp - 0x2f], 1
jl 0x4195f0
mov byte [ebp - 0x34], 6
cmp dword [ebp - 0x2f], 2
jl 0x41960c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x9a], 1
jne 0x419608
mov byte [ebp - 0x34], 6
jmp 0x41960c
mov byte [ebp - 0x34], 7
cmp dword [ebp - 0x33], 5
jle 0x419634
mov eax, dword [ebp - 8]
cmp byte [eax + 0x9a], 1
jne 0x419630
cmp dword [ebp - 0x2f], 1
jl 0x41962a
mov byte [ebp - 0x34], 0xa
jmp 0x419634
mov byte [ebp - 0x34], 8
jmp 0x419634
mov byte [ebp - 0x34], 9
push 0x41976c
push 0x41977c
call sub.KERNEL32.DLL_GetModuleHandleA_1
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41966d
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call dword [ebp - 0x14]
test eax, eax
je 0x41966d
cmp dword [ebp - 0x18], 0
je 0x41966d
mov byte [ebp - 0x1f], 1
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
mov al, byte [ebp - 0x34]
mov eax, dword [eax*4 + 0x44856c]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
mov eax, dword [ebp - 0x2b]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
mov eax, dword [ebp - 0x27]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x23]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
xor eax, eax
mov al, byte [ebp - 0x1f]
mov eax, dword [eax*4 + 0x448598]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov ecx, 4
mov eax, 0x419794
call fcn.00407a2c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x38]
call fcn.00406b88
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x1e]
call fcn.004036d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4196fa
mov eax, dword [ebp - 8]
call fcn.004025d0
ret