Function at 0x100767a0
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address
Link many functions at runtime
Resolve function by parsing pe exports
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10173be5
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x10206870]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10206870]
xor eax, esp
push eax
lea eax, [esp + 0x514]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x524]
xor eax, eax
lea edi, [ebp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov dword [ebp + 0x2c], esi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x28], esi
mov dword [ebp + 0x70], esi
cmp eax, esi
je 0x10076b5c
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x70], eax
cmp eax, esi
je 0x10076b5c
push str.zeGetGlobalProcAddrTable
push eax
call ebx
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x70]
push str.zeGetDeviceProcAddrTable
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push str.zeGetDriverProcAddrTable
push ecx
mov dword [ebp + 0x78], eax
call ebx
mov edx, dword [ebp + 0x70]
push str.zesGetDeviceProcAddrTable
push edx
mov dword [ebp + 0x7c], eax
call ebx
mov dword [ebp + 0x80], eax
mov eax, dword [ebp + 0x70]
push str.zesGetTemperatureProcAddrTable
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push str.zesGetEngineProcAddrTable
push ecx
mov dword [ebp + 0x84], eax
call ebx
mov edx, dword [ebp + 0x70]
push str.zesGetPowerProcAddrTable
push edx
mov dword [ebp + 0x88], eax
call ebx
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x70]
push str.zesGetFrequencyProcAddrTable
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push str.zesGetFanProcAddrTable
push ecx
mov dword [ebp + 0x90], eax
call ebx
mov ecx, dword [ebp + 0x74]
mov dword [ebp + 0x94], eax
cmp ecx, esi
je 0x10076b5c
cmp dword [ebp + 0x78], esi
je 0x10076b5c
cmp dword [ebp + 0x7c], esi
je 0x10076b5c
cmp dword [ebp + 0x84], esi
je 0x10076b5c
cmp dword [ebp + 0x88], esi
je 0x10076b5c
cmp dword [ebp + 0x8c], esi
je 0x10076b5c
cmp dword [ebp + 0x90], esi
je 0x10076b5c
cmp eax, esi
je 0x10076b5c
lea edx, [esp + 0x2c]
push edx
push 0x10009
call ecx
add esp, 8
test eax, eax
jne 0x10076944
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x98], eax
mov edx, dword [ebp + 0x7c]
lea ecx, [esp + 0xc8]
push ecx
push 0x10009
call edx
add esp, 8
test eax, eax
jne 0x10076977
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0x9c], ecx
mov eax, dword [ebp + 0x78]
lea edx, [esp + 0x1c4]
push edx
push 0x10009
call eax
add esp, 8
test eax, eax
jne 0x100769aa
mov ecx, dword [esp + 0x1c4]
mov edx, dword [esp + 0x1cc]
mov dword [ebp + 0xa4], ecx
mov dword [ebp + 0xa8], edx
mov ecx, dword [ebp + 0x80]
lea eax, [esp + 0x12c]
push eax
push 0x10009
call ecx
add esp, 8
test eax, eax
jne 0x10076a2e
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x150]
mov dword [ebp + 0xac], edx
mov edx, dword [esp + 0x15c]
mov dword [ebp + 0xb0], eax
mov eax, dword [esp + 0x164]
mov dword [ebp + 0xf8], ecx
mov ecx, dword [esp + 0x16c]
mov dword [ebp + 0x104], edx
mov edx, dword [esp + 0x174]
mov dword [ebp + 0xc4], eax
mov eax, dword [esp + 0x18c]
mov dword [ebp + 0xd8], ecx
mov dword [ebp + 0xe8], edx
mov dword [ebp + 0xb4], eax
mov edx, dword [ebp + 0x84]
lea ecx, [esp + 0x4c]
push ecx
push 0x10009
call edx
add esp, 8
test eax, eax
jne 0x10076a65
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [ebp + 0xb8], eax
mov dword [ebp + 0xbc], ecx
mov dword [ebp + 0xc0], edx
mov ecx, dword [ebp + 0x88]
lea eax, [esp + 0x40]
push eax
push 0x10009
call ecx
add esp, 8
test eax, eax
jne 0x10076a92
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [ebp + 0xfc], edx
mov dword [ebp + 0x100], eax
mov edx, dword [ebp + 0x8c]
lea ecx, [esp + 0xa8]
push ecx
push 0x10009
call edx
add esp, 8
test eax, eax
jne 0x10076ad5
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb0]
mov dword [ebp + 0xec], eax
mov dword [ebp + 0xf0], ecx
mov dword [ebp + 0xf4], edx
mov ecx, dword [ebp + 0x90]
lea eax, [esp + 0xe4]
push eax
push 0x10009
call ecx
add esp, 8
test eax, eax
jne 0x10076b25
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xf4]
mov dword [ebp + 0xc8], edx
mov edx, dword [esp + 0xf8]
mov dword [ebp + 0xcc], eax
mov dword [ebp + 0xd0], ecx
mov dword [ebp + 0xd4], edx
mov ecx, dword [ebp + 0x94]
lea eax, [esp + 0x5c]
push eax
push 0x10009
call ecx
add esp, 8
test eax, eax
jne 0x10076b5c
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x70]
mov dword [ebp + 0x108], edx
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x110], ecx
cmp dword [ebp + 0x70], esi
jne 0x10076d93
push 0x10199348
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x70], eax
cmp eax, esi
je 0x10076d87
push 0x10199358
push eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x10199360
push edx
mov dword [ebp + 0x98], eax
call ebx
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0x70]
push 0x10199378
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x10199384
push ecx
mov dword [ebp + 0xa0], eax
call ebx
mov edx, dword [ebp + 0x70]
push str.zeDeviceGetProperties
push edx
mov dword [ebp + 0xa4], eax
call ebx
mov dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0x70]
push 0x101993a8
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x101993c0
push ecx
mov dword [ebp + 0xac], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x101993dc
push edx
mov dword [ebp + 0xb0], eax
call ebx
mov dword [ebp + 0xb4], eax
mov eax, dword [ebp + 0x70]
push 0x101993fc
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x10199418
push ecx
mov dword [ebp + 0xb8], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x10199430
push edx
mov dword [ebp + 0xbc], eax
call ebx
mov dword [ebp + 0xc0], eax
mov eax, dword [ebp + 0x70]
push 0x10199448
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x10199468
push ecx
mov dword [ebp + 0xc4], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x10199484
push edx
mov dword [ebp + 0xc8], eax
call ebx
mov dword [ebp + 0xcc], eax
mov eax, dword [ebp + 0x70]
push 0x101994a4
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x101994bc
push ecx
mov dword [ebp + 0xd0], eax
call ebx
mov edx, dword [ebp + 0x70]
mov dword [ebp + 0xd4], eax
push 0x101994d8
push edx
call ebx
mov dword [ebp + 0xd8], eax
mov eax, dword [ebp + 0x70]
push 0x101994f4
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x1019950c
push ecx
mov dword [ebp + 0xdc], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x10199524
push edx
mov dword [ebp + 0xe0], eax
call ebx
mov dword [ebp + 0xe4], eax
mov eax, dword [ebp + 0x70]
push 0x10199538
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x10199554
push ecx
mov dword [ebp + 0xe8], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x1019956c
push edx
mov dword [ebp + 0xec], eax
call ebx
mov dword [ebp + 0xf0], eax
mov eax, dword [ebp + 0x70]
push 0x10199588
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x1019959c
push ecx
mov dword [ebp + 0xf4], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x101995b8
push edx
mov dword [ebp + 0xf8], eax
call ebx
mov dword [ebp + 0xfc], eax
mov eax, dword [ebp + 0x70]
push 0x101995d0
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x101995e8
push ecx
mov dword [ebp + 0x100], eax
call ebx
mov edx, dword [ebp + 0x70]
push 0x101995fc
push edx
mov dword [ebp + 0x104], eax
call ebx
mov dword [ebp + 0x108], eax
mov eax, dword [ebp + 0x70]
push 0x10199610
push eax
call ebx
mov ecx, dword [ebp + 0x70]
push 0x10199620
push ecx
mov dword [ebp + 0x10c], eax
call ebx
mov dword [ebp + 0x110], eax
cmp dword [ebp + 0x70], esi
jne 0x10076d93
xor eax, eax
jmp 0x10077058
push 0x10199630
push 0x10199634
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [ebp + 0x98]
cmp eax, esi
je 0x10077054
cmp dword [ebp + 0xa0], esi
je 0x10077054
cmp dword [ebp + 0xa4], esi
je 0x10077054
cmp dword [ebp + 0xac], esi
je 0x10077054
push 2
call eax
add esp, 4
cmp eax, esi
jne 0x10077054
mov eax, dword [ebp + 0xa0]
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x20], esi
call eax
mov ecx, dword [esp + 0x20]
lea edx, [ecx*4]
push edx
call fcn.1003e892
mov ecx, dword [ebp + 0xa0]
add esp, 0xc
push eax
mov dword [ebp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
call ecx
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, 0x10
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
jl 0x10076e36
mov eax, 0x10
cmp ebx, eax
jge 0x10077054
mov eax, dword [ebp + 0x2c]
push esi
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov ecx, dword [eax + ebx*4]
push edx
mov edx, dword [ebp + 0xa4]
push ecx
call edx
mov eax, dword [esp + 0x20]
lea ecx, [eax*4]
add esp, 0xc
push ecx
call fcn.1003e892
add esp, 4
mov dword [edi], eax
push eax
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebp + 0xa4]
push ecx
call edx
add esp, 0xc
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], esi
jle 0x10077049
push 0x2f8
lea eax, [esp + 0x218]
push 0
push eax
call fcn.1003f7d0
mov edx, dword [edi]
add esp, 0xc
lea ecx, [esp + 0x214]
mov dword [esp + 0x214], 1
mov eax, dword [edx + esi*4]
push ecx
mov ecx, dword [ebp + 0xac]
push eax
call ecx
add esp, 8
cmp dword [esp + 0x224], 5
jne 0x10077036
mov edx, dword [edi]
mov edi, dword [edx + esi*4]
push 0x30
xor ebx, ebx
lea eax, [esp + 0x78]
push ebx
push eax
mov dword [esp + 0x3c], edi
xor esi, esi
call fcn.1003f7d0
mov eax, dword [ebp + 0xb0]
add esp, 0xc
mov dword [esp + 0x74], 2
cmp eax, ebx
je 0x10076f78
lea ecx, [esp + 0x74]
push ecx
push edi
call eax
add esp, 8
test eax, eax
jne 0x10076f78
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov eax, ebp
call fcn.10078390
test eax, eax
je 0x10076f45
mov esi, eax
jmp 0x10076fd2
push 0x178
call fcn.1003ddbb
add esp, 4
test eax, eax
je 0x10076f5f
call fcn.10069cc0
mov esi, eax
jmp 0x10076f61
xor esi, esi
mov ecx, dword [ebp + 0xc]
push esi
call fcn.100014e0
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x30]
push esi
call fcn.100014e0
jmp 0x10076fd2
mov dword [esp + 0x34], vtable.CTList_class_CDevice_.0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x51c], ebx
mov eax, dword [esp + 0x228]
mov ebx, dword [esp + 0x22c]
push eax
lea edi, [esp + 0x38]
mov eax, ebp
call fcn.10078330
test eax, eax
jle 0x10076fbe
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10076fbc
mov esi, dword [eax + 4]
test esi, esi
jne 0x10076fbe
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x51c], 0xffffffff
call fcn.100014a0
test esi, esi
je 0x1007702e
cmp dword [esi + 0x160], 0
jne 0x10076ffc
push 0x68
call fcn.1003ddbb
add esp, 4
test eax, eax
je 0x10076ff4
call fcn.10006770
jmp 0x10076ff6
xor eax, eax
mov dword [esi + 0x160], eax
mov ecx, dword [esi + 0x160]
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x254]
imul eax, dword [esp + 0x258]
imul eax, dword [esp + 0x25c]
mov dword [esi + 0x15c], eax
mov dword [esp + 0x28], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc esi
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
jl 0x10076e97
mov ebx, dword [esp + 0x24]
inc ebx
add edi, 4
xor esi, esi
jmp 0x10076e20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x514]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.1003dc89
add esp, 0x50c
ret 4