Function at 0x4223e0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55bf27
mov eax, dword fs:[0]
push eax
sub esp, 0xa48
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0xa40], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8810]
xor eax, esp
push eax
lea eax, [esp + 0xa58]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x28], vtable.CTList_class_CDevice_.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 0x5665c4
mov dword [esp + 0xa64], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x40c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x42248c
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetSearchPathMode
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ebx, ebx
je 0x42248c
push 0x800
push 0
push str.nvapi.dll
call ebx
mov dword [edi + 0x108], eax
test eax, eax
jne 0x42249d
push str.nvapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x108], eax
mov eax, dword [edi + 0x108]
test eax, eax
je 0x422761
push str.nvapi_QueryInterface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x422761
push 0x150e828
call esi
push 0xd22bdd7e
mov dword [edi + 0x434], eax
call esi
push 0xe5ac921f
mov dword [edi + 0x438], eax
call esi
push 0xceee8e9f
mov dword [edi + 0x43c], eax
call esi
push 0x2ddfb66e
mov dword [edi + 0x440], eax
call esi
push 0x1be0b8e5
mov dword [edi + 0x444], eax
call esi
push 0x2a0a350f
mov dword [edi + 0x448], eax
call esi
push 0xe3640a56
mov dword [edi + 0x44c], eax
call esi
push 0x5f608315
mov dword [edi + 0x450], eax
call esi
push 0xda141340
mov dword [edi + 0x454], eax
call esi
push 0x465f9bcf
mov dword [edi + 0x458], eax
call esi
push 0x927da4f6
mov dword [edi + 0x45c], eax
call esi
push 0xba94c56e
mov dword [edi + 0x460], eax
call esi
push 0x60ded2ed
mov dword [edi + 0x464], eax
call esi
push 0x7f9b368
mov dword [edi + 0x468], eax
call esi
push 0xedcf624e
mov dword [edi + 0x46c], eax
call esi
add esp, 0x40
push 0x1ea54a3b
mov dword [edi + 0x470], eax
call esi
push 0xdcb616c3
mov dword [edi + 0x474], eax
call esi
push 0x7bcf4ac
mov dword [edi + 0x478], eax
call esi
push 0x57f7caac
mov dword [edi + 0x47c], eax
call esi
push 0x42aea16a
mov dword [edi + 0x480], eax
call esi
push 0x2fde12c5
mov dword [edi + 0x484], eax
call esi
push 0x409d9841
mov dword [edi + 0x488], eax
call esi
push 0x3d358a0c
mov dword [edi + 0x48c], eax
call esi
push 0x22d54523
mov dword [edi + 0x490], eax
call esi
push 0xfb85b01e
mov dword [edi + 0x494], eax
call esi
push 0x35aed5e8
mov dword [edi + 0x498], eax
call esi
push 0xfdc129fa
mov dword [edi + 0x49c], eax
call esi
push 0xc7026a87
mov dword [edi + 0x4a0], eax
call esi
push 0x63e2f56f
mov dword [edi + 0x4a4], eax
call esi
push 0xbe17923
mov dword [edi + 0x4a8], eax
call esi
push 0x86f05d7a
mov dword [edi + 0x4ac], eax
call esi
add esp, 0x40
push 0x4e2f76a8
mov dword [edi + 0x4b0], eax
call esi
push 0xae5fbcfe
mov dword [edi + 0x4b4], eax
call esi
push 0xb6d62591
mov dword [edi + 0x4b8], eax
call esi
push 0xd988f0f3
mov dword [edi + 0x4bc], eax
call esi
push 0xd8265d24
mov dword [edi + 0x4c0], eax
call esi
push 0xd048c3b1
mov dword [edi + 0x4c4], eax
call esi
push 0x7975c581
mov dword [edi + 0x4c8], eax
call esi
push 0x17073a3c
mov dword [edi + 0x4cc], eax
call esi
push 0xafd1b02c
mov dword [edi + 0x4d0], eax
call esi
push 0
mov dword [edi + 0x4d4], eax
call esi
push 0xbc8163d
mov dword [edi + 0x4d8], eax
call esi
push 0x65fe3aad
mov dword [edi + 0x4dc], eax
call esi
push 0xfc13ee11
mov dword [edi + 0x4e0], eax
call esi
push 0x46fbeb03
mov dword [edi + 0x4e4], eax
call esi
push 0x11104158
mov dword [edi + 0x4e8], eax
call esi
push 0xdb9ed906
mov dword [edi + 0x4ec], eax
call esi
add esp, 0x40
push 0x1b4ff3df
mov dword [edi + 0x4f0], eax
call esi
push 0xc12eb19e
mov dword [edi + 0x4f4], eax
call esi
push 0xf40238ef
mov dword [edi + 0x4f8], eax
call esi
add esp, 0xc
mov dword [edi + 0x4fc], eax
mov eax, dword [edi + 0x434]
test eax, eax
je 0x42307b
cmp dword [edi + 0x43c], 0
je 0x42307b
cmp dword [edi + 0x440], 0
je 0x42307b
cmp dword [edi + 0x444], 0
je 0x42307b
cmp dword [edi + 0x448], 0
je 0x42307b
cmp dword [edi + 0x44c], 0
je 0x42307b
call eax
test eax, eax
jne 0x423061
lea ecx, [edi + 0x40c]
lea eax, [edi + 0x30c]
push ecx
push eax
mov eax, dword [edi + 0x43c]
mov dword [esp + 0x1c], 1
call eax
add esp, 8
test eax, eax
jne 0x423061
mov eax, dword [edi + 0x40c]
test eax, eax
jbe 0x423061
xor ebx, ebx
test eax, eax
jle 0x423061
jmp 0x422800
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x54]
push edx
mov edx, dword [edi + ebx*4 + 0x30c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 0x444]
lea ecx, [esp + 0x2c]
lea esi, [edi + 0x30c]
push ecx
push edx
call eax
add esp, 0x14
test eax, eax
jne 0x423054
mov edx, dword [esi + ebx*4]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x448]
push edx
call eax
add esp, 8
test eax, eax
jne 0x422859
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + ebx*4]
mov ecx, dword [edi + 0x44c]
lea edx, [esp + 0x60]
push edx
push eax
call ecx
add esp, 8
call fcn.00416b80
mov ecx, eax
call fcn.00413330
test eax, eax
je 0x423054
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
mov ecx, eax
push edx
shr ecx, 0x10
push ecx
push eax
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.004253f0
test eax, eax
jne 0x4228cc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
push ecx
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.004253f0
test eax, eax
jle 0x422911
lea edx, [esp + 0x28]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0
call fcn.00401440
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x422911
mov ecx, esi
call fcn.00444130
cmp eax, dword [esp + 0x1c]
je 0x422940
lea ecx, [esp + 0x48]
call fcn.00403130
mov esi, eax
mov dword [esp + 0x18], eax
test esi, esi
jne 0x4228f1
push 0x660
call fcn.005120bc
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0xa60], 1
test eax, eax
je 0x422e8b
mov ecx, eax
call fcn.00441940
mov esi, eax
jmp 0x422e8d
push ebx
push edi
mov ecx, esi
call fcn.00441e60
mov ecx, dword [edi + ebx*4 + 0x30c]
mov edx, dword [edi + 0x440]
lea eax, [esp + 0x90c]
push eax
lea eax, [edi + 0x30c]
push ecx
call edx
add esp, 8
test eax, eax
jne 0x422a39
mov esi, str.Graphics_Device
lea eax, [esp + 0x90c]
mov edi, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4229a0
test cl, cl
je 0x42299c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4229a0
add eax, 2
add esi, 2
test cl, cl
jne 0x422980
xor eax, eax
jmp 0x4229a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x422a39
lea eax, [esp + 0x90c]
push str.NVIDIA
push eax
call fcn.00531010
add esp, 8
test eax, eax
jne 0x422a1c
lea ecx, [esp + 0x90c]
push str.NVidia
push ecx
call fcn.00531010
add esp, 8
test eax, eax
jne 0x422a1c
lea edx, [esp + 0x90c]
push str.nvidia
push edx
call fcn.00531010
add esp, 8
test eax, eax
jne 0x422a1c
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x90c]
push eax
push 0x5685b0
add ecx, 0x10
push 0x100
push ecx
call fcn.00415470
add esp, 0x10
jmp 0x422a39
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x90c]
push edx
add eax, 0x10
push 0x100
push eax
call fcn.00531f88
add esp, 0xc
mov eax, dword [edi + 0x494]
test eax, eax
je 0x422b16
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0xb4]
lea esi, [edi + 0x30c]
push ecx
push edx
mov dword [esp + 0xbc], 0x30224
call eax
add esp, 8
test eax, eax
je 0x422ae3
mov ecx, dword [esi + ebx*4]
mov edx, dword [edi + 0x494]
lea eax, [esp + 0xb4]
push eax
push ecx
mov dword [esp + 0xbc], 0x30224
call edx
add esp, 8
test eax, eax
je 0x422ae3
mov ecx, dword [esi + ebx*4]
mov edx, dword [edi + 0x494]
lea eax, [esp + 0xb4]
push eax
push ecx
mov dword [esp + 0xbc], 0x2002c
call edx
add esp, 8
test eax, eax
je 0x422ae3
mov ecx, dword [esi + ebx*4]
mov edx, dword [edi + 0x494]
lea eax, [esp + 0xb4]
push eax
push ecx
mov dword [esp + 0xbc], 0x10014
call edx
add esp, 8
test eax, eax
jne 0x422b16
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xb8]
push eax
lea ecx, [esi + 0x430]
push 0x20
push ecx
call fcn.00531f88
lea edx, [esp + 0xd4]
push edx
push 0x20
add esi, 0x450
push esi
call fcn.00531f88
add esp, 0x18
mov ecx, dword [edi + 0x4a0]
xor esi, esi
cmp ecx, esi
je 0x422b50
mov edx, dword [edi + ebx*4 + 0x30c]
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call ecx
add esp, 8
cmp eax, esi
jne 0x422b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x4b8], eax
mov ecx, dword [edi + 0x4a4]
cmp ecx, esi
je 0x422b84
lea edx, [esp + 0x14]
lea eax, [edi + 0x30c]
mov eax, dword [eax + ebx*4]
push edx
push eax
mov dword [esp + 0x1c], esi
call ecx
add esp, 8
cmp eax, esi
jne 0x422b84
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x4bc], ecx
mov eax, dword [edi + 0x4a8]
cmp eax, esi
je 0x422baa
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call eax
add esp, 8
mov eax, dword [edi + 0x4ac]
cmp eax, esi
je 0x422bd0
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call eax
add esp, 8
mov eax, dword [edi + 0x4b0]
cmp eax, esi
je 0x422bf6
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call eax
add esp, 8
mov eax, dword [edi + 0x4b4]
cmp eax, esi
je 0x422c1c
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call eax
add esp, 8
mov eax, dword [edi + 0x4b8]
cmp eax, esi
je 0x422c42
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call eax
add esp, 8
mov eax, dword [edi + 0x4bc]
cmp eax, esi
je 0x422c68
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x30c]
push edx
mov dword [esp + 0x1c], esi
call eax
add esp, 8
cmp dword [edi + 0x4d4], esi
je 0x422cbd
push 0x50
lea eax, [esp + 0x68]
push esi
push eax
call fcn.00530830
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x70]
lea eax, [edi + 0x30c]
push ecx
push edx
mov dword [esp + 0x78], 0x20050
call dword [edi + 0x4d4]
add esp, 0x14
cmp eax, esi
jne 0x422cbd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x4c8], ecx
mov dword [eax + 0x4c4], edx
cmp dword [edi + 0x498], esi
je 0x422d02
push 0x62c
lea eax, [esp + 0x2e0]
push esi
push eax
call fcn.00530830
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x2e8]
lea eax, [edi + 0x30c]
push ecx
push edx
mov dword [esp + 0x2f0], 0x1062c
call dword [edi + 0x498]
add esp, 0x14
mov ecx, dword [edi + 0x4c0]
cmp ecx, esi
je 0x422d48
mov edx, dword [edi + ebx*4 + 0x30c]
lea eax, [esp + 0xa0c]
push eax
lea eax, [edi + 0x30c]
push edx
call ecx
add esp, 8
cmp eax, esi
jne 0x422d48
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xa0c]
push eax
add ecx, 0x490
push 0x10
push ecx
call fcn.00531f88
add esp, 0xc
mov ecx, dword [edi + 0x4c4]
cmp ecx, esi
je 0x422d96
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea edx, [esp + 0x38]
lea eax, [edi + 0x30c]
mov eax, dword [eax + ebx*4]
push edx
push eax
mov dword [esp + 0x40], 0x20010
call ecx
add esp, 8
cmp eax, esi
jne 0x422d96
mov ecx, dword [esp + 0x40]
or ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x4ac], ecx
mov eax, dword [edi + 0x4c8]
cmp eax, esi
je 0x422db8
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [edi + 0x30c]
push edx
call eax
add esp, 8
mov eax, dword [edi + 0x4d0]
cmp eax, esi
je 0x422dda
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [edi + 0x30c]
push edx
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
call fcn.00441f00
cmp eax, esi
je 0x422e2a
mov eax, dword [eax + 0x14]
movzx eax, word [eax + 6]
and eax, 0xfff0
cmp eax, 0x1e00
jne 0x422e2a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x4b8]
cmp eax, 0x58
je 0x422e1c
cmp eax, 0x60
jne 0x422e2e
fld dword [0x5685ac]
fstp dword [ecx + 0x4d0]
jmp 0x422e2e
fld dword [0x5685a8]
fstp dword [ecx + 0x4d0]
jmp 0x422e2e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x4b0]
and eax, 0xfffff000
cmp eax, 0x10b0000
ja 0x422e5d
je 0x422e64
cmp eax, 0x1090000
je 0x422e64
cmp eax, 0x10a0000
je 0x422e64
mov dword [esp + 0x14], 1
jmp 0x423054
cmp eax, 0x10c0000
jne 0x422e7e
mov eax, dword [ecx + 0x4bc]
cmp eax, 0xffffffff
je 0x422e7e
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ecx + 0x4c0], eax
mov dword [esp + 0x14], 1
jmp 0x423054
xor esi, esi
mov byte [esp + 0xa60], 0
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.00425470
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x500], ecx
mov dword [esi + 0x4b0], 0x1000000
mov edx, dword [esp + 0x20]
and edx, 0xffff
mov dword [esi + 0x50c], edx
mov eax, dword [esp + 0x20]
shr eax, 0x10
mov dword [esi + 0x510], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x514], ecx
mov edx, dword [esp + 0x24]
and edx, 0xffff
mov dword [esi + 0x518], edx
mov eax, dword [esp + 0x24]
shr eax, 0x10
mov ecx, esi
mov dword [esi + 0x51c], eax
call fcn.00441f40
mov ecx, esi
call fcn.00441820
push 0x108
call fcn.005120bc
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa60], 2
test eax, eax
je 0x422f3f
mov ecx, eax
call fcn.00444380
mov dword [esp + 0x18], eax
jmp 0x422f47
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
push esi
mov byte [esp + 0xa64], 0
call fcn.00444470
test eax, eax
je 0x422f77
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.00425270
jmp 0x422f8a
cmp dword [esp + 0x18], 0
je 0x422f8a
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edx, dword [edi + ebx*4 + 0x30c]
lea ecx, [esp + 0x90c]
lea eax, [edi + 0x30c]
mov eax, dword [edi + 0x440]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x423037
lea ecx, [esp + 0x90c]
push str.NVIDIA
push ecx
call fcn.00531010
add esp, 8
test eax, eax
jne 0x42301e
lea edx, [esp + 0x90c]
push str.NVidia
push edx
call fcn.00531010
add esp, 8
test eax, eax
jne 0x42301e
lea eax, [esp + 0x90c]
push str.nvidia
push eax
call fcn.00531010
add esp, 8
test eax, eax
jne 0x42301e
lea ecx, [esp + 0x90c]
push ecx
push 0x5685b0
lea edx, [esi + 0x10]
push 0x100
push edx
call fcn.00415470
add esp, 0x10
jmp 0x423037
lea eax, [esp + 0x90c]
push eax
lea ecx, [esi + 0x10]
push 0x100
push ecx
call fcn.00531f88
add esp, 0xc
push ebx
push edi
mov ecx, esi
call fcn.00441e60
push esi
call fcn.00416b80
mov ecx, eax
call fcn.00413330
mov ecx, eax
call fcn.00425280
inc ebx
cmp ebx, dword [edi + 0x40c]
jl 0x422800
lea ecx, [esp + 0x28]
mov dword [esp + 0xa60], 0xffffffff
call fcn.004014c0
mov eax, dword [esp + 0x14]
jmp 0x423091
lea ecx, [esp + 0x28]
mov dword [esp + 0xa60], 0xffffffff
call fcn.004014c0
xor eax, eax
mov ecx, dword [esp + 0xa58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa40]
xor ecx, esp
call fcn.0053081c
mov esp, ebp
pop ebp
ret