Function at 0x403a00
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42a7ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
xor ebx, ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x18], ebx
call fcn.00401ad0
mov edi, dword [esp + 0x42c]
xor eax, eax
mov ecx, 0xe3
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 0x20019
push ebx
push str.HARDWAREDEVICEMAPVIDEO
push 0x80000002
mov dword [esp + 0x438], ebx
call edi
cmp eax, ebx
jne 0x403ec2
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.DeviceVideo0
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [esp + 0x10], ebx
jne 0x403ec0
xor eax, eax
mov cl, byte [esp + eax + 0x36]
mov byte [esp + eax + 0x224], cl
inc eax
cmp cl, bl
jne 0x403ab0
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x230]
push ecx
push 0x80000002
call edi
cmp eax, ebx
jne 0x403ec0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.HardwareInformation.AdapterString
mov esi, 0x100
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
mov edi, dword [esp + 0x434]
jne 0x403b21
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
call fcn.00403570
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.HardwareInformation.ChipType
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x403b5a
lea edx, [edi + 0xff]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
call fcn.00403570
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.HardwareInformation.DacType
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x403b93
lea edx, [edi + 0x1fe]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
call fcn.00403570
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.HardwareInformation.MemorySize
push ecx
mov dword [esp + 0x2c], esi
mov byte [edi + 0x2fd], bl
call ebp
test eax, eax
jne 0x403c01
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp esi, ebx
jbe 0x403bf5
jmp 0x403bd0
movsx eax, byte [esp + ecx + 0x24]
cdq
mov edi, 0xa
idiv edi
mov eax, dword [esp + 0x434]
add dl, 0x30
mov byte [eax + ecx + 0x2fd], dl
inc ecx
cmp ecx, esi
jb 0x403bd0
mov edi, eax
mov byte [ecx + edi + 0x2fd], bl
mov esi, 0x100
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
add edi, 0x33d
push edi
lea edx, [esp + 0x20]
push edx
push ebx
push str.InstalledDisplayDrivers
push eax
mov dword [esp + 0x2c], esi
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x224]
push 0x5c
push edx
mov dword [esp + 0x18], ebx
call fcn.00410e90
lea ecx, [esp + 0x22c]
sub eax, ecx
inc eax
mov esi, eax
push esi
mov edx, ecx
push edx
lea eax, [esp + 0x134]
push eax
call fcn.00410d60
lea edi, [esp + 0x138]
add esp, 0x14
mov byte [esp + esi + 0x124], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403c70
mov ecx, dword [str.ENUM]
mov dl, byte [0x42c8d8]
lea eax, [esp + 0x10]
push eax
push 0x20019
mov dword [edi], ecx
push ebx
lea ecx, [esp + 0x130]
push ecx
push 0x80000002
mov byte [edi + 4], dl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403ec0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x42c8d0
push edx
mov dword [esp + 0x2c], 0x100
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [esp + 0x10], ebx
jne 0x403ec0
lea eax, [esp + 0x224]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403cf6
sub eax, edx
mov esi, ebx
mov ecx, eax
mov edx, ebx
je 0x403d29
jmp 0x403d10
cmp byte [esp + ecx + 0x224], 0x5c
jne 0x403d20
cmp esi, 2
je 0x403d28
inc esi
dec ecx
inc edx
cmp ecx, ebx
ja 0x403d10
jmp 0x403d29
dec edx
mov esi, eax
sub esi, edx
push esi
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x12c]
push edx
call fcn.00410d60
lea edi, [esp + 0x130]
add esp, 0xc
mov byte [esp + esi + 0x124], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403d55
mov eax, dword [str.Enum_]
mov cx, word [0x42c8cc]
mov dword [edi], eax
lea eax, [esp + 0x24]
mov word [edi + 4], cx
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403d75
lea edi, [esp + 0x124]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x403d86
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 0x20019
mov ecx, eax
push ebx
lea eax, [esp + 0x130]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403ec0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.Service
push ecx
mov dword [esp + 0x2c], 0x100
call ebp
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov dword [esp + 0x10], ebx
jne 0x403ec0
push 0x100
lea eax, [esp + 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x324]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403e20
mov ecx, dword [str.drivers_]
mov edx, dword [0x42c8b8]
mov ax, word [0x42c8bc]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov word [edi + 8], ax
lea eax, [esp + 0x24]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403e50
lea edi, [esp + 0x324]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x403e61
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x324]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403e81
mov ecx, dword [str..sys]
mov eax, dword [esp + 0x434]
mov dl, byte [0x42c8b0]
mov dword [edi], ecx
add eax, 0x37d
push eax
lea ecx, [esp + 0x328]
push ecx
lea ecx, [esp + 0x24]
mov byte [edi + 4], dl
call fcn.004034a0
mov dword [esp + 0x20], 1
pop esi
pop ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x424], 0xffffffff
call fcn.00401b90
mov ecx, dword [esp + 0x41c]
mov eax, dword [esp + 0x18]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret 4