Function at 0x10022540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa9ae
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100de514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb4], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
cmp eax, dword [edi + 0x6c]
jne 0x100230ee
cmp byte [edi + 0x78], bl
je 0x100230ee
lea ecx, [ebp - 0xdc]
call fcn.10065450
sub esp, 0x28
mov dword [ebp - 4], ebx
mov eax, esp
lea ecx, [ebp - 0xdc]
push 1
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_567c140bd41922d601f1d3a73faca87d___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__.0
mov dword [eax + 0x24], eax
call fcn.10020140
test al, al
je 0x10022857
push 0xa
push str.cpu_period
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.1000eb90
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100660d0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x10022634
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002262a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002310c
push edx
push ecx
call fcn.1007559a
add esp, 8
push 0
push 0x100b565d
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.1000eb90
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
mov ebx, 1
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0xa8], ebx
call fcn.10066130
test al, al
je 0x100226d9
push 0
push 0x100b565d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000eb90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
mov ebx, 3
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0xa8], ebx
call fcn.100656b0
mov byte [ebp - 0xa1], 0
test eax, eax
jne 0x100226e0
mov byte [ebp - 0xa1], 1
mov dword [ebp - 4], 4
test bl, 2
je 0x10022735
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp edx, 0x10
jb 0x10022723
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022719
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023111
push edx
push ecx
call fcn.1007559a
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x74]
and ebx, 0xfffffffe
mov dword [ebp - 4], 3
cmp edx, 0x10
jb 0x10022776
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002276c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023116
push edx
push ecx
call fcn.1007559a
add esp, 8
cmp byte [ebp - 0xa1], 0
lea ecx, [ebp - 0x58]
jne 0x1002284e
push str.usage
push 0
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 1
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.utility
push 0
lea ecx, [ebp - 0x58]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 2
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.kernel_temp
push 0
lea ecx, [ebp - 0x58]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 3
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.frequency
push 0
lea ecx, [ebp - 0x58]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 4
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.power
push 0
lea ecx, [ebp - 0x58]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 5
lea ecx, [edi + 0x60]
call fcn.100461d0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.100628a0
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x3c]
je 0x10022fea
sub esp, 0x28
lea ecx, [ebp - 0xdc]
mov eax, esp
push 2
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_567c140bd41922d601f1d3a73faca87d___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__.0
mov dword [eax + 0x24], eax
call fcn.10020140
test al, al
je 0x10022fea
push 0xa
push str.gpu_period
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000eb90
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100660d0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x100228fb
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100228f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002311b
push edx
push ecx
call fcn.1007559a
add esp, 8
push 0
push 0x100b565d
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.1000eb90
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 9
or ebx, 4
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0xa8], ebx
call fcn.10066130
test al, al
je 0x100229a2
push 0
push 0x100b565d
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.1000eb90
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0xa
or ebx, 8
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0xa8], ebx
call fcn.100656b0
mov byte [ebp - 0xa1], 0
test eax, eax
jne 0x100229a9
mov byte [ebp - 0xa1], 1
mov dword [ebp - 4], 9
test bl, 8
je 0x100229fb
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x100229e9
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100229df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023120
push edx
push ecx
call fcn.1007559a
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 4], 8
cmp edx, 0x10
jb 0x10022a3c
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022a32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023125
push edx
push ecx
call fcn.1007559a
add esp, 8
cmp byte [ebp - 0xa1], 0
je 0x10022a4e
mov byte [ebp - 4], 0
jmp 0x10022fe2
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x1002312a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa8], eax
mov eax, str.hardware_id
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa8]
test eax, 0xffff0000
jne 0x10022a8c
movzx eax, ax
push eax
call fcn.1000baf0
jmp 0x10022a98
push 0xb
push str.hardware_id
call fcn.10017410
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0xc
push eax
mov ecx, edi
call fcn.100289f0
mov esi, dword [ebp - 0xac]
cmp esi, dword [edi]
je 0x10022b02
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10023134
mov ecx, dword [ebp - 0xa8]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10022af6
test dx, dx
je 0x10022af2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10022af6
add ecx, 4
add eax, 4
test dx, dx
jne 0x10022ad0
xor eax, eax
jmp 0x10022afb
sbb eax, eax
or eax, 1
shr eax, 0x1f
test al, al
je 0x10022b42
lea eax, [ebp - 0xa8]
mov ecx, edi
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa1]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x100b683a
call fcn.100188b0
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0xac]
push eax
call fcn.10019220
mov esi, dword [ebp - 0xac]
mov edx, dword [esi + 0x14]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022b60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10017f00
mov edx, dword [ebp - 0xa8]
or eax, 0xffffffff
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10022b9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0xfde9
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1005d190
add esp, 0xc
push 0
push 0x100b565d
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.1000eb90
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x28]
call fcn.100656b0
mov edx, dword [ebp - 0x8c]
mov ebx, eax
mov dword [ebp - 0xb0], ebx
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x10022c45
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022c3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002313e
push edx
push ecx
call fcn.1007559a
add esp, 8
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], eax
test ebx, ebx
jle 0x10022e20
nop dword [eax]
cmp ebx, 1
jle 0x10022e20
lea ecx, [ebp - 0x70]
push ecx
push str.gpu_id
push eax
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063b20
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x70]
mov ebx, dword [ebp - 0x70]
lea edi, [ebp - 0x88]
mov esi, dword [ebp - 0x60]
cmp eax, 0x10
mov edx, dword [ebp - 0x78]
cmovae ecx, ebx
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0xb8], ecx
cmovae edi, dword [ebp - 0x88]
mov dword [ebp - 0xc4], edi
cmp esi, edx
ja 0x10022d93
test esi, esi
je 0x10022de4
movsx ecx, byte [ecx]
mov eax, edi
sub eax, esi
mov dword [ebp - 0xc0], ecx
inc edx
add eax, edx
mov dword [ebp - 0xbc], eax
sub eax, edi
push eax
push ecx
push edi
call fcn.1007fa40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10022d93
nop dword [eax + eax]
mov ecx, dword [ebp - 0xb8]
mov edx, edi
sub esi, 4
jb 0x10022d21
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10022d26
add edx, 4
add ecx, 4
sub esi, 4
jae 0x10022d10
cmp esi, 0xfffffffc
je 0x10022d5a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10022d53
cmp esi, 0xfffffffd
je 0x10022d5a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10022d53
cmp esi, 0xfffffffe
je 0x10022d5a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10022d53
cmp esi, 0xffffffff
je 0x10022d5a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x10022d5a
sbb eax, eax
or eax, 1
jmp 0x10022d5c
xor eax, eax
test eax, eax
je 0x10022d88
mov eax, dword [ebp - 0xbc]
inc edi
sub eax, edi
push eax
push dword [ebp - 0xc0]
push edi
call fcn.1007fa40
mov esi, dword [ebp - 0x60]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10022d00
jmp 0x10022d93
sub edi, dword [ebp - 0xc4]
cmp edi, 0xffffffff
jne 0x10022de1
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x10022dc4
inc ecx
mov eax, ebx
cmp ecx, 0x1000
jb 0x10022dba
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002310c
push ecx
push ebx
call fcn.1007559a
add esp, 8
mov eax, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xa8], eax
cmp eax, ebx
jl 0x10022c60
jmp 0x10022e20
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
cmp eax, 0x10
jb 0x10022e20
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x10022e16
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023143
push ecx
push ebx
call fcn.1007559a
add esp, 8
mov ebx, dword [ebp - 0xac]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0xb4]
push str.usage
push ebx
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 6
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.temp
push ebx
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 7
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.gpu_clock
push ebx
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 8
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.gpu_mem_clock
push ebx
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 9
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.power
push ebx
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 0xa
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.dis_mem_usage
push ebx
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 0xb
lea ecx, [edi + 0x60]
call fcn.100461d0
push str.shd_mem_usage
push ebx
lea ecx, [ebp - 0x28]
call fcn.10065590
mov ecx, eax
call fcn.10062e30
mov ecx, eax
call fcn.10063a00
push eax
push 0xc
lea ecx, [edi + 0x60]
call fcn.100461d0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xe
cmp edx, 0x10
jb 0x10022f78
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022f6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023148
push edx
push ecx
call fcn.1007559a
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x10022fcb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10022fc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002314d
push edx
push ecx
call fcn.1007559a
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.100628a0
mov ecx, dword [0x100e0780]
test ecx, ecx
jne 0x1002304e
push 0x100dd170
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100e0780], 0
jne 0x1002303d
push 0x2c
call fcn.1007556a
add esp, 4
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x1002302b
mov ecx, eax
call fcn.1003e980
mov ecx, eax
jmp 0x1002302d
xor ecx, ecx
mov byte [ebp - 4], 0
xchg dword [ebp - 0xb4], eax
mov dword [0x100e0780], ecx
push 0x100dd170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100e0780]
call fcn.100346a0
xor esi, esi
mov dword [ebp - 0xb0], esi
test eax, eax
je 0x10023092
mov ecx, dword [eax]
lea edx, [ebp - 0xac]
push edx
push 0x100b6840
push eax
mov dword [ebp - 0xac], esi
call dword [ecx]
test eax, eax
cmovns esi, dword [ebp - 0xac]
mov dword [ebp - 0xb0], esi
jns 0x10023092
cmp eax, 0x80004002
jne 0x10023152
mov byte [ebp - 4], 0x12
test esi, esi
je 0x100230dd
mov eax, dword [esi]
lea ecx, [ebp - 0xa8]
push ecx
push 0x6a
push esi
mov dword [ebp - 0xa8], 0
call dword [eax + 0x20]
test eax, eax
jns 0x100230c3
push 0x100b6840
push esi
push eax
call fcn.10061510
push dword [ebp - 0xa8]
lea ecx, [edi + 0x60]
push 0xd
call fcn.100461d0
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 0
call dword [eax + 8]
inc dword [edi + 0x90]
lea ecx, [ebp - 0xdc]
call fcn.100628a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007590b
mov esp, ebp
pop ebp
ret 4
call fcn.10083519
call fcn.10083519
call fcn.10083519
call fcn.10083519
call fcn.10083519
call fcn.10083519
push 0x80004005
call fcn.1000a5d0
push 0x80004005
call fcn.1000a5d0
call fcn.10083519
call fcn.10083519
call fcn.10083519
call fcn.10083519
push eax
call fcn.100614f0
int3