Function at 0x1007c430
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x100ffa04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2b8], 0
movlpd qword [ebp - 0x2b4], xmm0
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x2bc], ecx
test ecx, ecx
je 0x1007c48d
mov eax, dword [ecx]
lea edx, [ebp - 0x2b8]
push edx
push str.Init
call dword [eax + 0x18]
call fcn.10026460
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], edx
cmp dword [edi + 0x38], 0x10
lea ebx, [edi + 0x24]
mov eax, ebx
jb 0x1007c49a
mov eax, dword [ebx]
xorps xmm0, xmm0
mov dword [ebp - 0x2f4], str.Init
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2ec], 0xffffffff
mov dword [ebp - 0x2e8], 0xffffffff
movlpd qword [ebp - 0x2e4], xmm0
call fcn.10083de0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test al, al
je 0x1007c50b
call fcn.10083de0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], edx
call fcn.10083de0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
call fcn.10026460
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], edx
cmp dword [ebp + 0xc], 0
je 0x1007ccab
xor eax, eax
mov esi, edi
cmp edi, 8
cmove esi, eax
push esi
mov eax, dword [esi]
call dword [eax + 0x54]
mov ecx, dword [edi + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], ecx
mov dword [ebp - 0x2a8], 0
movlpd qword [ebp - 0x2a4], xmm0
test ecx, ecx
je 0x1007c569
mov eax, dword [ecx]
lea edx, [ebp - 0x2a8]
push edx
push str.Init
call dword [eax + 0x18]
call fcn.10026460
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], edx
cmp dword [ebx + 0x14], 0x10
jb 0x1007c571
mov ebx, dword [ebx]
xorps xmm0, xmm0
mov dword [ebp - 0x2dc], str.Init
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], 0xffffffff
mov dword [ebp - 0x2d0], 0xffffffff
movlpd qword [ebp - 0x2cc], xmm0
call fcn.10083de0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test al, al
je 0x1007c5e2
call fcn.10083de0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d0], edx
call fcn.10083de0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
call fcn.10026460
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], edx
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x15c], 6
ja 0x1007c614
jne 0x1007c60d
cmp dword [ebp - 0x158], 2
jae 0x1007c614
mov eax, 0x6e
jmp 0x1007c619
mov eax, 0x6f
cmp eax, dword [ebp + 0x10]
jge 0x1007c62d
mov dword [ebp - 0x288], 0xa
jmp 0x1007cb05
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x4c], eax
mov edx, dword [edi + 0x44]
cmp edx, ebx
je 0x1007c655
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [edi + 0x44]
mov edx, ebx
mov dword [edi + 0x44], ebx
test ecx, ecx
je 0x1007c655
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [edi + 0x44]
mov ecx, dword [edx]
lea eax, [edi + 0x48]
push eax
push edx
call dword [ecx + 0xa0]
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x1007c70d
push str.m_D3DDevice___NULL
lea ecx, [ebp - 0x4c]
call fcn.10007e90
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.10008360
add esp, 8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10007800
add esp, 0xc
cmp dword [ebp - 0x20], 8
jb 0x1007c6a7
push dword [ebp - 0x34]
call fcn.10022bb0
xor eax, eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x38], 8
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
jb 0x1007c6c9
push dword [ebp - 0x4c]
call fcn.10022bb0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x48d
push str..........._runtime_srccoreDeviceDX11Impl.cpp
call fcn.10026a30
add esp, 0x18
cmp dword [ebp - 8], 8
jb 0x1007c6fe
push dword [ebp - 0x1c]
call fcn.10022bb0
mov dword [ebp - 0x288], 0x12
jmp 0x1007cb05
lea edx, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0
mov eax, dword [ecx]
push edx
push 0x67
push ecx
call dword [eax + 0x74]
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x28c]
shr eax, 5
and al, 1
mov dword [ebp - 0x28c], 0
mov byte [edi + 0x40], al
mov eax, dword [edi + 0x44]
push edx
push 0x6b
push eax
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x29c]
shr eax, 5
and al, 1
mov dword [ebp - 0x29c], 0
mov byte [edi + 0x41], al
mov eax, dword [edi + 0x44]
push edx
push 0x100bdc70
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
test ebx, ebx
jns 0x1007c800
push str.m_D3DDevice__QueryInterface___uuidof_IDXGIDevice___reinterpret_cast_void__pIDXGIDevice__
lea ecx, [ebp - 0x34]
call fcn.10007e90
push ebx
lea eax, [ebp - 0x4c]
push str.COM_failed__HR___0X:
push eax
call fcn.10022510
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10007800
add esp, 0x18
lea ecx, [ebp - 0x4c]
call fcn.10006a50
lea ecx, [ebp - 0x34]
call fcn.10006a50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x496
push str..........._runtime_srccoreDeviceDX11Impl.cpp
call fcn.10026a30
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.10006a50
mov dword [ebp - 0x288], 0x12
jmp 0x1007caf5
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x298]
mov dword [ebp - 0x298], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ebx, eax
test ebx, ebx
jns 0x1007c87f
push str.pIDXGIDevice__GetAdapter_pIDXGIAdapter_
lea ecx, [ebp - 0x34]
call fcn.10007e90
push ebx
lea eax, [ebp - 0x4c]
push str.COM_failed__HR___0X:
push eax
call fcn.10022510
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10007800
add esp, 0x18
lea ecx, [ebp - 0x4c]
call fcn.10006a50
lea ecx, [ebp - 0x34]
call fcn.10006a50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x498
jmp 0x1007c8f2
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x284]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
jns 0x1007c916
push str.pIDXGIAdapter__GetDesc_adapterDesc_
lea ecx, [ebp - 0x34]
call fcn.10007e90
push ebx
lea eax, [ebp - 0x4c]
push str.COM_failed__HR___0X:
push eax
call fcn.10022510
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10007800
add esp, 0x18
lea ecx, [ebp - 0x4c]
call fcn.10006a50
lea ecx, [ebp - 0x34]
call fcn.10006a50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x49a
push str..........._runtime_srccoreDeviceDX11Impl.cpp
call fcn.10026a30
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.10006a50
mov dword [ebp - 0x288], 0x12
jmp 0x1007cae5
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x2c4]
mov dword [edi + 0x88], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x164]
mov dword [edi + 0x8c], eax
mov eax, dword [edi + 0x44]
push 8
push edx
movlpd qword [ebp - 0x2c4], xmm0
mov ecx, dword [eax]
push 8
push eax
call dword [ecx + 0x84]
mov eax, dword [ebp - 0x2c0]
and eax, dword [ebp - 0x2c4]
test al, 2
setne al
xor ebx, ebx
cmp dword [ebp - 0x184], 0x1002
mov byte [edi + 0x42], al
sete bl
je 0x1007c9fa
push str.Init___was_called_with_non_AMD_device
push str.adapterDesc.VendorId__0x1002
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.1000af00
add esp, 0x10
push eax
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.10008360
add esp, 8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10007800
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.10006a50
lea ecx, [ebp - 0x34]
call fcn.10006a50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x4a2
push str..........._runtime_srccoreDeviceDX11Impl.cpp
call fcn.10026a30
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.10006a50
mov dword [ebp - 0x288], 4
jmp 0x1007cae5
mov eax, dword [edi + 0x44]
lea edx, [ebp - 0x294]
push edx
mov dword [ebp - 0x294], 0
push 0x100e3f04
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x1007ca2a
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x14]
mov ecx, dword [edi + 0x44]
lea eax, [edi + 0x50]
push eax
mov dword [ebp - 0x2fc], 0
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x2f8], 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x60]
mov ebx, eax
test ebx, ebx
jns 0x1007cb7d
push str.m_D3DDevice__CreateQuery_query_desc_m_pQuery_
lea ecx, [ebp - 0x34]
call fcn.10007e90
push ebx
lea eax, [ebp - 0x4c]
push str.COM_failed__HR___0X:
push eax
call fcn.10022510
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10007800
add esp, 0x18
lea ecx, [ebp - 0x4c]
call fcn.10006a50
lea ecx, [ebp - 0x34]
call fcn.10006a50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x4b0
push str..........._runtime_srccoreDeviceDX11Impl.cpp
call fcn.10026a30
add esp, 0x18
mov dword [ebp - 0x288], 0x12
lea ecx, [ebp - 0x1c]
call fcn.10006a50
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x1007cae5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x1007caf5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x1007cb05
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2dc]
call fcn.100737c0
cmp dword [ebp - 0x2ac], 0
je 0x1007cb6c
call fcn.10026460
sub eax, dword [ebp - 0x2a4]
mov ebx, dword [ebp - 0x2ac]
sbb edx, dword [ebp - 0x2a0]
push 0
push 0xc
push edx
push eax
call fcn.1008ab00
mov edi, eax
mov ecx, 0x4b0
mov eax, edx
mul ecx
mov edx, 0x4b0
mov ecx, eax
mov eax, edi
mul edx
add ecx, edx
push ecx
push eax
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x2a8]
call dword [eax + 0x3c]
mov dword [ebp - 0x2ac], 0
mov eax, dword [esi]
push esi
call dword [eax + 0x58]
mov ebx, dword [ebp - 0x288]
jmp 0x1007cc36
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xd0], eax
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x1007cba1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x1007cbb1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x1007cbc1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2dc]
call fcn.100737c0
cmp dword [ebp - 0x2ac], 0
je 0x1007cc28
call fcn.10026460
sub eax, dword [ebp - 0x2a4]
mov ebx, dword [ebp - 0x2ac]
sbb edx, dword [ebp - 0x2a0]
push 0
push 0xc
push edx
push eax
call fcn.1008ab00
mov edi, eax
mov ecx, 0x4b0
mov eax, edx
mul ecx
mov edx, 0x4b0
mov ecx, eax
mov eax, edi
mul edx
add ecx, edx
push ecx
push eax
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x2a8]
call dword [eax + 0x3c]
mov dword [ebp - 0x2ac], 0
mov eax, dword [esi]
push esi
call dword [eax + 0x58]
xor ebx, ebx
mov dword [ebp - 0x288], ebx
lea ecx, [ebp - 0x2f4]
call fcn.100737c0
cmp dword [ebp - 0x2bc], 0
je 0x1007cd5f
call fcn.10026460
sub eax, dword [ebp - 0x2b4]
mov ebx, dword [ebp - 0x2bc]
sbb edx, dword [ebp - 0x2b0]
push 0
push 0xc
push edx
push eax
call fcn.1008ab00
mov esi, eax
mov ecx, 0x4b0
mov eax, edx
mul ecx
mov edi, eax
mov eax, esi
mul ecx
mov ecx, ebx
add edi, edx
mov edx, dword [ebx]
push edi
push eax
push dword [ebp - 0x2b8]
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x288]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008aaed
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x88]
mov ebx, eax
mov dword [ebp - 0x288], ebx
test ebx, ebx
je 0x1007cc2e
push str.InitFromAdapterInfo_NULL_
lea ecx, [ebp - 0x4c]
call fcn.10007e90
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.100267a0
add esp, 8
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10007800
add esp, 0xc
cmp dword [ebp - 8], 8
jb 0x1007ccff
push dword [ebp - 0x1c]
call fcn.10022bb0
xor eax, eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x38], 8
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
jb 0x1007cd21
push dword [ebp - 0x4c]
call fcn.10022bb0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 0
push str.AMFDeviceDX11Impl
push 0
push 0x4b5
push str..........._runtime_srccoreDeviceDX11Impl.cpp
call fcn.10026a30
add esp, 0x18
cmp dword [ebp - 0x20], 8
jb 0x1007cc36
push dword [ebp - 0x34]
call fcn.10022bb0
jmp 0x1007cc36
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aaed
mov esp, ebp
pop ebp
ret 0xc