Function at 0x10050240
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x3b4]
sub esp, 0x3b4
push 0xffffffffffffffff
push 0x101306c4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10194008]
xor eax, ebp
mov dword [ebp + 0x3b0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 0x3c0]
lea eax, [ebp + 8]
push 0x110
push 0
push eax
mov dword [ebp + 4], 0x114
call fcn.100fe280
add esp, 0xc
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10050652
cmp dword [ebp + 8], 6
jb 0x10050652
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.10051490
mov eax, dword [ebx]
add esp, 4
mov dword [ebx + 4], eax
mov eax, dword [edi]
test eax, eax
je 0x10050652
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10158e94
push eax
call esi
push 0x1015bb50
push dword [edi]
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp - 0x1c]
mov edi, eax
push 0x10158eb8
push dword [ecx]
call esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x10050652
test edi, edi
je 0x10050652
test eax, eax
je 0x10050652
xorps xmm0, xmm0
movlpd qword [ebp + 0x1a0], xmm0
mov dword [ebp + 0x1a0], 0
mov dword [ebp + 0x1a4], 0
call fcn.10050dd0
mov dword [ebp + 0x1a0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x180]
call fcn.10005680
mov byte [ebp - 4], 3
lea eax, [ebp + 0x180]
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push 0x804
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push str._s0x_08x_s
push eax
call fcn.100573d0
mov dword [ebp + 0x198], 0
add esp, 0x14
mov dword [ebp + 0x198], 0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x198]
push 0x20019
call fcn.10067620
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x180]
lea eax, [ebp]
mov dword [ebp], 0
push eax
push 0x20019
push 0
call fcn.100065d0
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x100505fe
push 0x208
xor esi, esi
lea eax, [ebp + 0x1a8]
push esi
push eax
call fcn.100fe280
add esp, 0xc
mov dword [ebp + 0x19c], 0x104
lea eax, [ebp + 0x19c]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x1a8]
push eax
push esi
push dword [ebp]
call edi
test eax, eax
jne 0x10050463
lea ecx, [ebp + 0x1a8]
call fcn.10056c30
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push dword [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x1a0]
call fcn.10051520
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x19c]
mov dword [ebp + 0x19c], 0x104
push eax
lea eax, [ebp + 0x1a8]
inc esi
push eax
push esi
push dword [ebp]
call edi
test eax, eax
je 0x10050413
push dword [ebp]
call dword [ebp - 0x20]
mov eax, dword [ebp + 0x1a0]
mov esi, dword [eax]
cmp esi, eax
je 0x100505fe
nop dword [eax]
push dword [esi + 0x10]
lea eax, [ebp + 0x180]
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push 0x804
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push str._s0x_08x_s_08d
push eax
call fcn.100573d0
add esp, 0x18
lea eax, [ebp]
lea ecx, [ebp + 0x180]
push eax
push 0x20019
push 0
call fcn.100065d0
push eax
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x100505b6
lea ecx, [ebp + 0x118]
call fcn.1004e630
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
push 0x10154ca4
mov dword [ebp + 0x14c], 0x804
call fcn.10008150
mov byte [ebp - 4], 8
lea eax, [ebp + 0x118]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp]
call fcn.100506f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.10004ab0
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x10050592
push eax
push 0x68
call fcn.100048b0
mov ecx, dword [ebp + 0x118]
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
lea eax, [ebp + 0x11c]
mov dword [edi], ecx
lea ecx, [edi + 4]
push eax
call fcn.10004ac0
mov byte [ebp - 4], 9
lea eax, [ebp + 0x134]
push eax
lea ecx, [edi + 0x1c]
call fcn.10004ac0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x38]
mov eax, dword [ebp + 0x14c]
mov dword [edi + 0x34], eax
lea eax, [ebp + 0x150]
push eax
call fcn.10004ac0
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x168]
push eax
lea ecx, [edi + 0x50]
call fcn.10004ac0
mov byte [ebp - 4], 7
add dword [ebx + 4], 0x68
jmp 0x100505a1
lea ecx, [ebp + 0x118]
push ecx
push eax
mov ecx, ebx
call fcn.10050f70
push dword [ebp]
call dword [ebp - 0x20]
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x118]
call fcn.1004e6b0
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100505dc
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100505d8
cmp esi, dword [eax + 8]
jne 0x100505d8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100505c8
mov esi, eax
jmp 0x100505f2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100505f2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100505e6
cmp esi, dword [ebp + 0x1a0]
jne 0x10050480
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x198]
call fcn.100677c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x180]
call fcn.10004ab0
mov dword [ebp - 4], 0xf
lea ecx, [ebp + 0x1a0]
mov eax, dword [ebp + 0x1a0]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.10050bc0
mov dword [ebp - 4], 0xffffffff
push 0x14
push dword [ebp + 0x1a0]
call fcn.100fc94e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3b0]
xor ecx, ebp
call fcn.100fc499
lea esp, [ebp + 0x3b4]
pop ebp
ret 8