Function at 0x45c0c0
Capabilities:
Check os version
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55d4fe
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8810]
xor eax, esp
push eax
lea eax, [esp + 0x878]
mov dword fs:[0], eax
xor esi, esi
mov edi, ecx
push 0x94
lea eax, [esp + 0x3d8]
push esi
push eax
mov dword [esp + 0x64], esi
mov dword [edi + 0x10c], esi
mov dword [edi + 0x110], esi
mov dword [edi + 0x114], esi
mov dword [edi + 0x118], esi
mov dword [edi + 0x11c], esi
mov dword [edi + 0x120], esi
mov dword [edi + 0x124], esi
mov dword [edi + 0x128], esi
mov dword [edi + 0x12c], esi
mov dword [edi + 0x108], 1
call fcn.00530830
add esp, 0xc
lea ecx, [esp + 0x3d4]
push ecx
mov dword [esp + 0x3d8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x3d8]
cmp eax, 6
jb 0x45c18f
jne 0x45c195
cmp dword [esp + 0x3dc], 2
jae 0x45c195
mov dword [edi + 0x108], esi
push str.gdi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x45c1f2
push str.D3DKMTOpenAdapterFromDeviceName
push eax
call ebx
mov edx, dword [esp + 0x14]
push str.D3DKMTCloseAdapter
push edx
mov dword [edi + 0x10c], eax
call ebx
mov dword [edi + 0x110], eax
mov eax, dword [esp + 0x14]
push str.D3DKMTQueryStatistics
push eax
call ebx
mov ecx, dword [esp + 0x14]
push str.D3DKMTQueryAdapterInfo
push ecx
mov dword [edi + 0x114], eax
call ebx
mov dword [edi + 0x118], eax
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x45c25b
push str.SetupDiGetClassDevsA
push eax
call ebx
mov edx, dword [esp + 0x10]
push str.SetupDiGetDeviceInterfaceDetailA
push edx
mov dword [edi + 0x11c], eax
call ebx
mov dword [edi + 0x128], eax
mov eax, dword [esp + 0x10]
push str.SetupDiGetDeviceRegistryPropertyA
push eax
call ebx
mov ecx, dword [esp + 0x10]
push str.SetupDiDestroyDeviceInfoList
push ecx
mov dword [edi + 0x12c], eax
call ebx
mov edx, dword [esp + 0x10]
push str.SetupDiEnumDeviceInterfaces
push edx
mov dword [edi + 0x120], eax
call ebx
mov dword [edi + 0x124], eax
mov eax, dword [edi + 0x11c]
cmp eax, esi
je 0x45c8dd
cmp dword [edi + 0x128], esi
je 0x45c8dd
cmp dword [edi + 0x12c], esi
je 0x45c8dd
cmp dword [edi + 0x120], esi
je 0x45c8dd
cmp dword [edi + 0x124], esi
je 0x45c8dd
cmp dword [edi + 0x10c], esi
je 0x45c8dd
cmp dword [edi + 0x110], esi
je 0x45c8dd
cmp dword [edi + 0x114], esi
je 0x45c8dd
cmp dword [edi + 0x118], esi
je 0x45c8dd
push 0x12
push esi
push esi
push 0x570de4
call eax
mov ebx, eax
mov dword [esp + 0x38], ebx
cmp ebx, 0xffffffff
je 0x45c8d7
mov ecx, dword [edi + 0x124]
lea eax, [esp + 0x39c]
push eax
push esi
push 0x570de4
push esi
push ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3b0], 0x1c
call ecx
test eax, eax
je 0x45c8ce
mov ecx, dword [edi + 0x128]
push esi
lea edx, [esp + 0x18]
push edx
push esi
push esi
lea eax, [esp + 0x3ac]
push eax
push ebx
mov dword [esp + 0x3b4], 0x1c
mov dword [esp + 0x2c], esi
call ecx
test eax, eax
jne 0x45c8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45c8a5
mov edx, dword [esp + 0x14]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x3b8]
push eax
mov dword [esi], 5
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x128]
push edx
push esi
lea eax, [esp + 0x3ac]
push eax
push ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x3d0], 0x1c
call ecx
test eax, eax
je 0x45c89c
push 0x660
call fcn.005120bc
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x880], esi
cmp eax, esi
je 0x45c3c8
mov ecx, eax
call fcn.00441940
mov esi, eax
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3cc]
push ecx
mov dword [esi + 0x4e8], edx
mov edx, dword [edi + 0x12c]
push ebx
mov dword [esp + 0x89c], 0xffffffff
mov dword [esp + 0x50], 0x40
call edx
test eax, eax
jne 0x45c467
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45c467
mov eax, dword [esp + 0x34]
push eax
call fcn.005120eb
mov ecx, dword [esp + 0x38]
add esp, 4
push 0
push ecx
push eax
push 0
push 0
lea edx, [esp + 0x3cc]
push edx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x12c]
push ebx
call eax
test eax, eax
je 0x45c45a
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x10]
push 0x100
push edx
call fcn.00415470
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call fcn.005120f6
add esp, 4
mov ebx, dword [esp + 0x30]
add ebx, 4
push str.ven_
push ebx
call fcn.00531010
add esp, 8
test eax, eax
je 0x45c4a1
lea ecx, [esp + 0x10]
push ecx
push str.ven__X
push eax
call fcn.00531122
add esp, 0xc
test eax, eax
jle 0x45c4a1
mov edx, dword [esp + 0x10]
mov dword [esi + 0x50c], edx
push str.dev_
push ebx
call fcn.00531010
add esp, 8
test eax, eax
je 0x45c4d4
lea ecx, [esp + 0x10]
push ecx
push str.dev__X
push eax
call fcn.00531122
add esp, 0xc
test eax, eax
jle 0x45c4d4
mov edx, dword [esp + 0x10]
mov dword [esi + 0x510], edx
push str.rev_
push ebx
call fcn.00531010
add esp, 8
test eax, eax
je 0x45c507
lea ecx, [esp + 0x10]
push ecx
push str.rev__X
push eax
call fcn.00531122
add esp, 0xc
test eax, eax
jle 0x45c507
mov edx, dword [esp + 0x10]
mov dword [esi + 0x514], edx
push str.subsys_
push ebx
call fcn.00531010
add esp, 8
test eax, eax
je 0x45c550
lea ecx, [esp + 0x10]
push ecx
push str.subsys__X
push eax
call fcn.00531122
add esp, 0xc
test eax, eax
jle 0x45c550
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0xffff
sar eax, 0x10
and eax, 0xffff
mov dword [esi + 0x518], edx
mov dword [esi + 0x51c], eax
push 0x200
lea eax, [esp + 0x470]
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x10c]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x46c]
push edx
mov dword [esp + 0x40], ecx
call eax
test eax, eax
jne 0x45c863
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x4f8], ecx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x4fc], edx
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x118]
lea ecx, [esp + 0x70]
push edx
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0xc
call eax
test eax, eax
jne 0x45c5f2
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x45c5f2
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esi + 0x500], eax
mov dword [esi + 0x504], ecx
mov dword [esi + 0x508], edx
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x118]
lea ecx, [esp + 0x18]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 4
call eax
test eax, eax
jne 0x45c633
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x4cc], ecx
mov edx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x118]
lea eax, [esp + 0x5c]
push ecx
mov dword [esp + 0x24], 0x12
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 8
call edx
test eax, eax
jne 0x45c6a4
mov eax, dword [esp + 0x5c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x68]
movzx edx, ax
push edx
shr eax, 0x10
push eax
push str._u._u._u._u
lea eax, [esi + 0x470]
push 0x20
push eax
call fcn.00415470
add esp, 0x1c
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x118]
lea edx, [esp + 0x64]
push eax
mov dword [esp + 0x24], 0x31
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 8
call ecx
push 0x320
lea edx, [esp + 0x80]
push ebx
push edx
call fcn.00530830
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
add esp, 0xc
lea edx, [esp + 0x7c]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x114]
push edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ecx
call eax
test eax, eax
jne 0x45c825
mov ecx, dword [esp + 0x90]
mov dword [esi + 0x4f0], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x4ec], edx
mov dword [esi + 0x528], ebx
mov dword [esi + 0x52c], ebx
mov dword [esi + 0x520], ebx
mov dword [esi + 0x524], ebx
test edx, edx
jle 0x45c825
push 0x320
lea eax, [esp + 0x80]
push 0
push eax
call fcn.00530830
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 0xc
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], ecx
mov ecx, dword [edi + 0x114]
push eax
mov dword [esp + 0x80], 3
mov dword [esp + 0x88], edx
mov dword [esp + 0x398], ebx
call ecx
test eax, eax
jne 0x45c818
cmp dword [edi + 0x108], eax
je 0x45c7ec
cmp dword [esp + 0xb4], eax
jne 0x45c7d0
mov edx, dword [esp + 0x8c]
add dword [esi + 0x520], edx
mov eax, dword [esp + 0x90]
adc dword [esi + 0x524], eax
jmp 0x45c818
mov ecx, dword [esp + 0x8c]
add dword [esi + 0x528], ecx
mov edx, dword [esp + 0x90]
adc dword [esi + 0x52c], edx
jmp 0x45c818
mov eax, dword [esp + 0x8c]
xor ecx, ecx
cmp dword [esp + 0xac], ecx
jne 0x45c80c
add dword [esi + 0x520], eax
adc dword [esi + 0x524], ecx
jmp 0x45c818
add dword [esi + 0x528], eax
adc dword [esi + 0x52c], ecx
inc ebx
cmp ebx, dword [esi + 0x4ec]
jl 0x45c753
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
push eax
mov dword [esi + 0x570], ecx
mov dword [esi + 0x574], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esi + 0x560], ecx
mov dword [esi + 0x564], edx
cmp dword [esi + 0x500], 0xffffffff
je 0x45c88a
push esi
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.00425280
mov dword [esp + 0x58], 1
jmp 0x45c894
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x124]
lea ecx, [esp + 0x39c]
push ecx
inc eax
push eax
push 0x570de4
push esi
push ebx
mov dword [esp + 0x40], eax
call edx
test eax, eax
jne 0x45c312
mov eax, dword [edi + 0x120]
push ebx
call eax
mov eax, dword [esp + 0x58]
jmp 0x45c8df
xor eax, eax
mov ecx, dword [esp + 0x878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.0053081c
mov esp, ebp
pop ebp
ret