Function at 0x40d5f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x489401
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x504a70]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504a70]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov dword [esp + 0x24], edi
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d64d
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
test esi, esi
mov dword [esp + 0x650], 0
mov ecx, dword [0x507158]
mov eax, dword [ecx + 8]
jl 0x40e1fc
cmp esi, dword [eax + 8]
jge 0x40e1fc
mov edx, dword [eax + 4]
mov ebp, dword [edx + esi*4]
lea eax, [edx + esi*4]
mov dword [edi + 0x24], ebp
movzx eax, byte [ebp + 9]
movzx ecx, byte [ebp + 8]
mov bl, byte [ebp + 0xa]
push eax
push ecx
call fcn.00410b40
mov esi, dword [ebp + 0xf4]
test esi, esi
je 0x40d778
push 0x3ff
lea edx, [esp + 0x249]
push 0
push edx
mov byte [esp + 0x250], 0
call fcn.0046ac40
add esp, 0xc
xor ecx, ecx
lea eax, [esi + 2]
jmp 0x40d6e0
movzx edx, byte [eax - 2]
mov byte [esp + ecx + 0x244], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx + 0x245], dl
movzx edx, byte [eax]
mov byte [esp + ecx + 0x246], dl
movzx edx, byte [eax + 1]
mov byte [esp + ecx + 0x247], dl
add ecx, 4
add eax, 4
cmp ecx, 0x400
jl 0x40d6e0
push 0x400
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0041f160
add esp, 0xc
mov byte [esp + 0x650], 1
mov edx, dword [eax]
push edx
push str._nBIOS:_n_s_n_n
push 0x54a128
call fcn.0040d1b0
mov byte [esp + 0x65c], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d778
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x34]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00404c60
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x658], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push str.CardName
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], 0
call fcn.0040cf00
mov eax, dword [ebp + 0x30]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00404c60
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x658], 3
mov ecx, esp
mov dword [esp + 0x28], esp
push str.GPUName
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], 0
call fcn.0040cf00
mov eax, dword [ebp + 0xb0]
test eax, eax
jbe 0x40d83c
push ecx
mov esi, esp
mov dword [esp + 0x1c], esp
push eax
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 4
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4f21d0
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], 0
call fcn.0040cf00
mov eax, dword [ebp + 0xb4]
test eax, eax
jbe 0x40d882
push ecx
mov esi, esp
mov dword [esp + 0x1c], esp
push eax
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push str.DieSize
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], 0
call fcn.0040cf00
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.0042cdf0
push ecx
mov bl, 6
mov byte [esp + 0x654], bl
mov edx, dword [eax]
mov esi, esp
mov dword [esp + 0x1c], esp
push edx
push 0x4f20e4
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 7
mov ecx, esp
mov dword [esp + 0x24], esp
push str.GPURevision
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], bl
call fcn.0040cf00
mov byte [esp + 0x650], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xf8]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00404c60
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x658], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push str.BIOSVersion
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx ecx, word [ebp + 0x14]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
push str._04X
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 9
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DeviceID
call fcn.00403e00
mov ecx, edi
mov byte [esp + 0x658], 0
call fcn.0040cf00
mov di, word [ebp + 0x10]
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
call fcn.0040d330
push ecx
mov byte [esp + 0x658], 0xa
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Vendor
call fcn.00403e00
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx edx, word [ebp + 0x10]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push edx
push str._04X
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0xb
mov ecx, esp
mov dword [esp + 0x20], esp
push str.VendorID
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx eax, byte [ebp + 0xa]
movzx ecx, byte [ebp + 9]
movzx edx, byte [ebp + 8]
push 0x2c
push eax
push ecx
mov ecx, dword [0x50715c]
push edx
call fcn.00421420
push ecx
mov dword [esp + 0x20], esp
mov edi, eax
mov eax, esp
call fcn.0040d330
push ecx
mov byte [esp + 0x658], 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Subvendor
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx eax, byte [ebp + 0xa]
movzx ecx, byte [ebp + 9]
movzx edx, byte [ebp + 8]
push 0x2c
push eax
push ecx
mov ecx, dword [0x50715c]
push edx
call fcn.00421420
push ecx
movzx eax, ax
mov esi, esp
mov dword [esp + 0x20], esp
push eax
push str._04X
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0xd
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SubvendorID
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx ecx, byte [ebp + 0xa]
movzx edx, byte [ebp + 9]
movzx eax, byte [ebp + 8]
push 0x2e
push ecx
mov ecx, dword [0x50715c]
push edx
push eax
call fcn.00421420
movzx ecx, ax
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
push str._04X
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SubsysID
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx eax, byte [ebp + 0xa]
push ecx
movzx ecx, byte [ebp + 9]
mov edx, esp
mov dword [esp + 0x20], esp
push eax
movzx eax, byte [ebp + 8]
push ecx
push eax
push edx
call fcn.00410c80
push ecx
mov byte [esp + 0x658], 0xf
mov ecx, esp
mov dword [esp + 0x20], esp
push str.BusInterface
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
cmp word [ebp + 0xae], 0
je 0x40dbc7
movzx ecx, word [ebp + 0xa8]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push str.NumROPs
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx edx, word [ebp + 0xae]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push edx
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x11
mov ecx, esp
mov dword [esp + 0x20], esp
push str.NumShadersUnified
jmp 0x40dc7c
movzx eax, word [ebp + 0xa8]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push eax
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x12
mov ecx, esp
mov dword [esp + 0x20], esp
push str.NumROPs
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx ecx, word [ebp + 0xac]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x13
mov ecx, esp
mov dword [esp + 0x20], esp
push str.NumShadersPixel
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx edx, word [ebp + 0xaa]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push edx
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x14
mov ecx, esp
mov dword [esp + 0x20], esp
push str.NumShadersVertex
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
push ecx
lea eax, [ebp + 0xd0]
mov esi, esp
mov dword [esp + 0x20], esp
push eax
push 0x4f20e4
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x15
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DirectXSupport
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
lea ecx, [ebp + 0xc0]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
push 0x4f20e4
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x16
mov ecx, esp
mov dword [esp + 0x20], esp
push str.ShaderModel
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cc00
push ecx
mov byte [esp + 0x658], 0x17
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MemType
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
movzx eax, word [ebp + 0x20]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push eax
push 0x4f2b98
call fcn.00412cd0
add esp, 4
mov byte [esp + 0x658], 0x18
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MemBusWidth
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
mov ecx, dword [ebp + 0x1c]
shr ecx, 0x14
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
push 0x4f2b98
call fcn.00412cd0
mov byte [esp + 0x65c], 0x19
add esp, 4
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MemSize
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0
call fcn.0040cf00
push 0x104
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ddf7
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x650], 0x1a
mov ecx, dword [ebp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push str._s_system32_s.sys
push eax
call fcn.00405230
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004225b0
add esp, 0x18
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x654], 0x1b
call fcn.00404670
mov byte [esp + 0x650], 0x1a
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40de73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, 0x4f1164
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dea6
test dx, dx
je 0x40dea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dea6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40de80
xor eax, eax
jmp 0x40deab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40df18
mov ecx, dword [ebp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push str._s_system32_s.dll
push eax
call fcn.00405230
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004225b0
add esp, 0x18
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x654], 0x1c
call fcn.00404670
mov byte [esp + 0x650], 0x1a
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40df18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, 0x4f1164
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40df47
test dx, dx
je 0x40df43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40df47
add eax, 4
add ecx, 4
test dx, dx
jne 0x40df21
xor eax, eax
jmp 0x40df4c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40dfb9
mov ecx, dword [ebp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push str._s_system32drivers_s.sys
push eax
call fcn.00405230
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004225b0
add esp, 0x18
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x654], 0x1d
call fcn.00404670
mov byte [esp + 0x650], 0x1a
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dfb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, 0x4f1164
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dfe8
test dx, dx
je 0x40dfe4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dfe8
add eax, 4
add ecx, 4
test dx, dx
jne 0x40dfc2
xor eax, eax
jmp 0x40dfed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40e05a
mov ecx, dword [ebp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push str._s_system32drivers_s.dll
push eax
call fcn.00405230
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.004225b0
add esp, 0x18
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x654], 0x1e
call fcn.00404670
mov byte [esp + 0x650], 0x1a
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e05a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d3a0
mov byte [esp + 0x654], 0x1f
mov edx, dword [eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov esi, esp
mov dword [esp + 0x20], esp
push edx
push eax
push ecx
push str._s__s____s
call fcn.00412cd0
add esp, 0xc
mov byte [esp + 0x658], 0x20
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.DriverVersion
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0x1f
call fcn.0040cf00
mov byte [esp + 0x650], 0x1a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e0da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.0040e210
fldz
lea ecx, [esp + 0x34]
fst qword [esp + 0x2c]
push ecx
fstp qword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.0042c5e0
fld qword [esp + 0x2c]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
sub esp, 8
fstp qword [esp]
push str._.0f
call fcn.00412cd0
add esp, 8
mov byte [esp + 0x658], 0x21
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.ClockGPUDefault
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0x1a
call fcn.0040cf00
fld qword [esp + 0x34]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
sub esp, 8
fstp qword [esp]
push str._.0f
call fcn.00412cd0
add esp, 8
mov byte [esp + 0x658], 0x22
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.ClockMemDefault
call fcn.00403e00
mov ecx, ebx
mov byte [esp + 0x658], 0x1a
call fcn.0040cf00
lea eax, [edi - 0x10]
mov byte [esp + 0x650], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x650], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.0046875c
add esp, 0x640
ret
jmp fcn.0045d951