Function at 0x101632d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x134]
push edi
push ecx
mov ecx, esi
mov dword [ebp - 0x13c], esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi + 0x18]
xor ebx, ebx
sub eax, dword [esi + 0x14]
or edi, 0xffffffff
sar eax, 2
test eax, eax
je 0x101635d1
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x124]
push 0x10202ca0
mov dword [ebp - 0x124], eax
call fcn.10023e80
test al, al
jne 0x1016336b
push 1
push 0x10202ca0
lea ecx, [ebp - 0x124]
call fcn.10003740
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi + 0x14]
lea eax, [eax + ebx*4]
push eax
call fcn.101b1a50
mov edx, dword [ebp - 0x124]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101633a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x130]
sub esi, edi
sar esi, 2
cmp esi, 2
jb 0x10163598
mov ecx, dword [ebp - 0x134]
mov eax, dword [edi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101633ed
test dx, dx
je 0x101633e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101633ed
add eax, 4
add ecx, 4
test dx, dx
jne 0x101633c7
xor eax, eax
jmp 0x101633f2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10163598
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10163426
test dx, dx
je 0x10163422
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10163426
add eax, 4
add ecx, 4
test dx, dx
jne 0x10163400
xor eax, eax
jmp 0x1016342b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10163598
cmp esi, 5
jb 0x101635bf
cmp dword [0x1025ab60], eax
jne 0x101634aa
mov dword [ebp - 0x138], eax
mov ecx, 0x1024e5d0
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.101b11a0
test eax, eax
jne 0x1016347d
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov dword [0x1025ab58], eax
mov eax, dword [ebp - 0x118]
mov dword [0x1025ab5c], eax
call fcn.10009c50
mov edi, dword [ebp - 0x130]
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [0x1025ab60], eax
mov esi, dword [edi + 8]
mov ecx, 0x1021aa50
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101634da
test dx, dx
je 0x101634d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101634da
add eax, 4
add ecx, 4
test dx, dx
jne 0x101634b4
xor eax, eax
jmp 0x101634df
sbb eax, eax
or eax, 1
test eax, eax
je 0x101634fe
push esi
call sub.msvcrt.dll__wtoi
add esp, 4
cmp eax, dword [0x1025ab58]
jne 0x10163598
mov edi, dword [ebp - 0x130]
mov esi, dword [edi + 0xc]
mov ecx, 0x1021aa50
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1016352e
test dx, dx
je 0x1016352a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1016352e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10163508
xor eax, eax
jmp 0x10163533
sbb eax, eax
or eax, 1
test eax, eax
je 0x1016354e
push esi
call sub.msvcrt.dll__wtoi
add esp, 4
cmp eax, dword [0x1025ab5c]
jne 0x10163598
mov edi, dword [ebp - 0x130]
mov esi, dword [edi + 0x10]
mov ecx, 0x1021aa50
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1016357e
test dx, dx
je 0x1016357a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1016357e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10163558
xor eax, eax
jmp 0x10163583
sbb eax, eax
or eax, 1
test eax, eax
je 0x101635bf
push esi
call sub.msvcrt.dll__wtoi
add esp, 4
cmp eax, dword [0x1025ab60]
je 0x101635bf
lea ecx, [ebp - 0x130]
call fcn.1002a3c0
mov esi, dword [ebp - 0x13c]
inc ebx
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
sar eax, 2
cmp ebx, eax
jae 0x101635d1
or edi, 0xffffffff
jmp 0x10163312
lea ecx, [ebp - 0x130]
call fcn.1002a3c0
mov esi, 1
jmp 0x101635d3
xor esi, esi
mov eax, dword [ebp - 0x134]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x101635f1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4