Function at 0x4b1530
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 0x58637e
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x6015a8]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
push edi
mov eax, dword [0x6015a8]
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.005635a0
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 0x4b15ff
jne 0x4b1605
cmp dword [esp + 0x3dc], 2
jae 0x4b1605
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 0x4b1662
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 0x4b16cb
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 0x4b1d4d
cmp dword [edi + 0x128], esi
je 0x4b1d4d
cmp dword [edi + 0x12c], esi
je 0x4b1d4d
cmp dword [edi + 0x120], esi
je 0x4b1d4d
cmp dword [edi + 0x124], esi
je 0x4b1d4d
cmp dword [edi + 0x10c], esi
je 0x4b1d4d
cmp dword [edi + 0x110], esi
je 0x4b1d4d
cmp dword [edi + 0x114], esi
je 0x4b1d4d
cmp dword [edi + 0x118], esi
je 0x4b1d4d
push 0x12
push esi
push esi
push 0x594f38
call eax
mov ebx, eax
mov dword [esp + 0x38], ebx
cmp ebx, 0xffffffff
je 0x4b1d47
mov ecx, dword [edi + 0x124]
lea eax, [esp + 0x39c]
push eax
push esi
push 0x594f38
push esi
push ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3b0], 0x1c
call ecx
test eax, eax
je 0x4b1d3e
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 0x4b1d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b1d15
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 0x4b1d0c
push 0x660
call fcn.00551d80
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x880], esi
cmp eax, esi
je 0x4b1838
mov ecx, eax
call fcn.0047a6b0
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 0x4b18d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b18d7
mov eax, dword [esp + 0x34]
push eax
call fcn.00551daf
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 0x4b18ca
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x10]
push 0x100
push edx
call fcn.00460090
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call fcn.00551dba
add esp, 4
mov ebx, dword [esp + 0x30]
add ebx, 4
push str.ven_
push ebx
call fcn.00563d10
add esp, 8
test eax, eax
je 0x4b1911
lea ecx, [esp + 0x10]
push ecx
push str.ven__X
push eax
call fcn.00563e22
add esp, 0xc
test eax, eax
jle 0x4b1911
mov edx, dword [esp + 0x10]
mov dword [esi + 0x50c], edx
push str.dev_
push ebx
call fcn.00563d10
add esp, 8
test eax, eax
je 0x4b1944
lea ecx, [esp + 0x10]
push ecx
push str.dev__X
push eax
call fcn.00563e22
add esp, 0xc
test eax, eax
jle 0x4b1944
mov edx, dword [esp + 0x10]
mov dword [esi + 0x510], edx
push str.rev_
push ebx
call fcn.00563d10
add esp, 8
test eax, eax
je 0x4b1977
lea ecx, [esp + 0x10]
push ecx
push str.rev__X
push eax
call fcn.00563e22
add esp, 0xc
test eax, eax
jle 0x4b1977
mov edx, dword [esp + 0x10]
mov dword [esi + 0x514], edx
push str.subsys_
push ebx
call fcn.00563d10
add esp, 8
test eax, eax
je 0x4b19c0
lea ecx, [esp + 0x10]
push ecx
push str.subsys__X
push eax
call fcn.00563e22
add esp, 0xc
test eax, eax
jle 0x4b19c0
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 0x4b1cd3
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 0x4b1a62
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x4b1a62
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 0x4b1aa3
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 0x4b1b14
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.00460090
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.005635a0
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 0x4b1c95
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 0x4b1c95
push 0x320
lea eax, [esp + 0x80]
push 0
push eax
call fcn.005635a0
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 0x4b1c88
cmp dword [edi + 0x108], eax
je 0x4b1c5c
cmp dword [esp + 0xb4], eax
jne 0x4b1c40
mov edx, dword [esp + 0x8c]
add dword [esi + 0x520], edx
mov eax, dword [esp + 0x90]
adc dword [esi + 0x524], eax
jmp 0x4b1c88
mov ecx, dword [esp + 0x8c]
add dword [esi + 0x528], ecx
mov edx, dword [esp + 0x90]
adc dword [esi + 0x52c], edx
jmp 0x4b1c88
mov eax, dword [esp + 0x8c]
xor ecx, ecx
cmp dword [esp + 0xac], ecx
jne 0x4b1c7c
add dword [esi + 0x520], eax
adc dword [esi + 0x524], ecx
jmp 0x4b1c88
add dword [esi + 0x528], eax
adc dword [esi + 0x52c], ecx
inc ebx
cmp ebx, dword [esi + 0x4ec]
jl 0x4b1bc3
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 0x4b1cfa
push esi
call fcn.00461b70
mov ecx, eax
call fcn.0045dc90
mov ecx, eax
call fcn.00471db0
mov dword [esp + 0x58], 1
jmp 0x4b1d04
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 0x594f38
push esi
push ebx
mov dword [esp + 0x40], eax
call edx
test eax, eax
jne 0x4b1782
mov eax, dword [edi + 0x120]
push ebx
call eax
mov eax, dword [esp + 0x58]
jmp 0x4b1d4f
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.00562d51
mov esp, ebp
pop ebp
ret