Function at 0x41fc1d
Capabilities:
Print debug messages
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xdf4
mov eax, 0x5b61df
call fcn.005718de
mov dword [ebp - 0xdf0], edx
mov dword [ebp - 0xdd8], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xddc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xde8], eax
mov eax, dword [ebp + 0x14]
push 0x5f4ce8
mov dword [ebp - 0xdec], eax
call fcn.004107ce
push 0x208
lea eax, [ebp - 0x5b8]
mov dword [ebp - 0xdd0], edi
push edi
push eax
mov dword [ebp - 0xdcc], edi
mov dword [ebp - 0xdd4], edi
call fcn.00589570
add esp, 0xc
mov dword [ebp - 0x5c8], 0x100
lea ecx, [ebp - 0x5d0]
mov dword [ebp - 0x5d0], edi
push str.SYSTEMCurrentControlSetEnum_
call fcn.0041fbce
mov esi, 0xc8
mov dword [ebp - 4], edi
push esi
lea eax, [ebp - 0x2e8]
push edi
push eax
call fcn.00589570
push esi
xor esi, esi
lea eax, [ebp - 0x3b0]
push esi
push eax
call fcn.00589570
xor eax, eax
mov dword [ebp - 0x604], 7
mov edi, str.VEN_
mov dword [ebp - 0x608], esi
push edi
mov word [ebp - 0x618], ax
call fcn.0058e098
add esp, 0x1c
lea ecx, [ebp - 0x618]
push eax
push edi
call fcn.004107ce
mov byte [ebp - 4], 1
xor eax, eax
mov edi, str.DEV_
mov dword [ebp - 0x5ec], 7
push edi
mov dword [ebp - 0x5f0], esi
mov word [ebp - 0x600], ax
call fcn.0058e098
pop ecx
push eax
push edi
lea ecx, [ebp - 0x600]
call fcn.004107ce
push 0x20
mov byte [ebp - 4], 2
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov edi, eax
mov dword [ebp - 0xe00], edi
test edi, edi
je 0x41fd62
mov ecx, dword [edi]
push edi
call dword [ecx + 0x10]
test eax, eax
mov eax, dword [edi]
jne 0x41fd9e
push edi
call dword [eax + 8]
mov dword [ebp - 0xdd0], esi
push esi
push 1
lea ecx, [ebp - 0x600]
call fcn.0041164f
push esi
push 1
lea ecx, [ebp - 0x618]
call fcn.0041164f
mov ecx, dword [ebp - 0x5d0]
add ecx, 0xfffffff0
call fcn.0040cb81
mov eax, dword [ebp - 0xdd0]
call fcn.00571888
ret
lea ecx, [ebp - 0xdc8]
push ecx
push esi
push esi
push edi
call dword [eax + 0x14]
push dword [ebp - 0x9a0]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x2e8]
push str._04X
push eax
call esi
lea eax, [ebp - 0x2e8]
push eax
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x5e8]
call fcn.0042075b
add esp, 0x10
lea ecx, [ebp - 0x618]
push eax
call fcn.0040d5cc
xor eax, eax
lea ecx, [ebp - 0x5e8]
push eax
push 1
call fcn.0041164f
push dword [ebp - 0x99c]
lea eax, [ebp - 0x3b0]
push str._04X
push eax
call esi
lea eax, [ebp - 0x3b0]
push eax
lea edx, [ebp - 0x600]
lea ecx, [ebp - 0x5e8]
call fcn.0042075b
add esp, 0x10
lea ecx, [ebp - 0x600]
push eax
call fcn.0040d5cc
xor esi, esi
lea ecx, [ebp - 0x5e8]
push esi
push 1
call fcn.0041164f
push esi
lea eax, [ebp - 0x978]
mov dword [ebp - 0x978], 0x348
push eax
push esi
push esi
mov dword [ebp - 0xde0], esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x42047a
mov edi, esi
cmp word [ebp - 0x830], 0
jne 0x41fe7f
mov eax, esi
jmp 0x41fe8c
lea eax, [ebp - 0x830]
push eax
call fcn.0058e098
pop ecx
mov esi, dword [ebp - 0xdd8]
mov ecx, esi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004107ce
xor eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x5c0], eax
jb 0x41feb3
mov eax, dword [esi]
jmp 0x41feb5
mov eax, esi
push eax
lea ecx, [ebp - 0x5c0]
call fcn.0041fbce
push 7
pop edx
xor ecx, ecx
mov dword [ebp - 0x5d4], edx
xor eax, eax
mov dword [ebp - 0x5d8], ecx
mov word [ebp - 0x5e8], ax
mov dword [ebp - 0x61c], edx
mov dword [ebp - 0x620], ecx
mov word [ebp - 0x630], ax
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 5
call fcn.00420733
push ecx
push str.VEN_
lea ecx, [ebp - 0x5c0]
call fcn.00418e55
test eax, eax
js 0x41ff5a
push 8
push eax
lea eax, [ebp - 0xdd0]
push eax
lea ecx, [ebp - 0x5c0]
call fcn.00418da6
mov byte [ebp - 4], 6
mov esi, dword [eax]
xor eax, eax
cmp word [esi], ax
je 0x41ff3b
push esi
call fcn.0058e098
pop ecx
push eax
push esi
lea ecx, [ebp - 0x5e8]
call fcn.004107ce
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xdd0]
add ecx, 0xfffffff0
call fcn.0040cb81
push ecx
push str.DEV_
lea ecx, [ebp - 0x5c0]
call fcn.00418e55
test eax, eax
js 0x41ffb7
push 8
push eax
lea eax, [ebp - 0xde4]
push eax
lea ecx, [ebp - 0x5c0]
call fcn.00418da6
mov byte [ebp - 4], 7
mov esi, dword [eax]
xor eax, eax
cmp word [esi], ax
je 0x41ff98
push esi
call fcn.0058e098
pop ecx
push eax
push esi
lea ecx, [ebp - 0x630]
call fcn.004107ce
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xde4]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x630]
call fcn.0041dfc8
test eax, eax
jne 0x420415
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x5e8]
call fcn.0041dfc8
test eax, eax
jne 0x420415
lea eax, [ebp - 0x934]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xde8]
lea ecx, [ebp - 0x618]
xor esi, esi
cmp eax, ecx
je 0x420015
push 0xffffffffffffffff
push esi
push ecx
mov ecx, eax
call fcn.00410f13
mov eax, dword [ebp - 0xdec]
lea ecx, [ebp - 0x600]
cmp eax, ecx
je 0x420030
push 0xffffffffffffffff
push esi
push ecx
mov ecx, eax
call fcn.00410f13
cmp word [ebp - 0x934], 0
jne 0x42003e
mov eax, esi
jmp 0x42004b
lea eax, [ebp - 0x934]
push eax
call fcn.0058e098
pop ecx
mov ecx, dword [ebp - 0xdf0]
push eax
lea eax, [ebp - 0x934]
push eax
call fcn.004107ce
lea eax, [ebp - 0x730]
mov dword [ebp - 0x5bc], esi
push eax
lea ecx, [ebp - 0x5bc]
call fcn.0041fbce
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 8
call fcn.0041f8fa
mov ecx, dword [ebp - 0xdd8]
cmp dword [ecx + 0x10], esi
je 0x4203d3
lea eax, [ebp - 0x830]
mov dword [ebp - 0x5cc], esi
push eax
lea edx, [ebp - 0x5d0]
lea ecx, [ebp - 0x5cc]
call fcn.0041f7f6
pop ecx
lea eax, [ebp - 0xdcc]
mov byte [ebp - 4], 9
push eax
push 0x20019
push esi
push dword [ebp - 0x5cc]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4203b3
push 0x104
lea eax, [ebp - 0x5b8]
push esi
push eax
call fcn.00589570
add esp, 0xc
lea eax, [ebp - 0x5c8]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x5b8]
push eax
push dword [ebp - 0xdd4]
jmp 0x42038e
push 0x5f5a10
lea edx, [ebp - 0x5cc]
lea ecx, [ebp - 0xdf8]
call fcn.0041f7f6
lea ecx, [ebp - 0x5b8]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0xdf4]
call fcn.0041f7f6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 0xb
call fcn.00418e86
mov ecx, dword [ebp - 0xdf4]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xdf8]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
lea eax, [ebp - 0xdcc]
push eax
push 0x20019
push esi
push dword [ebp - 0x5bc]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42036e
push 0x20a
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00589570
add esp, 0xc
mov dword [ebp - 0x5c4], 0x104
lea eax, [ebp - 0x5c4]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Driver
push dword [ebp - 0xdcc]
call esi
test eax, eax
jne 0x42036c
push str.SYSTEMCurrentControlSetControlClass_
lea ecx, [ebp - 0x5bc]
call fcn.0041920c
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0x5bc]
lea ecx, [ebp - 0xdfc]
call fcn.0041f7f6
pop ecx
push eax
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 0xc
call fcn.00418e86
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xdfc]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
lea eax, [ebp - 0xdcc]
push eax
push 0x20019
xor eax, eax
push eax
push dword [ebp - 0x5bc]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42036c
push 0x20a
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00589570
add esp, 0xc
mov dword [ebp - 0x5c4], 0x104
lea eax, [ebp - 0x5c4]
push eax
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
push eax
push str.DriverDate
push dword [ebp - 0xdcc]
call esi
mov esi, dword [ebp - 0xddc]
test eax, eax
jne 0x4202d9
xor edx, edx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edx
jb 0x4202a9
mov eax, dword [esi]
jmp 0x4202ab
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x220], cx
jne 0x4202bd
mov eax, edx
jmp 0x4202ca
lea eax, [ebp - 0x220]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.004107ce
xor eax, eax
push 0x20a
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00589570
add esp, 0xc
mov dword [ebp - 0x5c4], 0x104
lea eax, [ebp - 0x5c4]
push eax
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
push eax
push str.DriverVersion
push dword [ebp - 0xdcc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420360
xor edx, edx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], edx
jb 0x420330
mov eax, dword [ebx]
jmp 0x420332
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x220], cx
jne 0x420344
mov eax, edx
jmp 0x420351
lea eax, [ebp - 0x220]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.004107ce
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x42036c
cmp dword [esi + 0x10], eax
jne 0x4203ae
xor esi, esi
mov eax, dword [ebp - 0xdd4]
lea ecx, [ebp - 0x5c8]
push esi
push esi
push esi
push esi
push ecx
lea ecx, [ebp - 0x5b8]
inc eax
push ecx
mov dword [ebp - 0xdd4], eax
push eax
push dword [ebp - 0xdcc]
mov dword [ebp - 0x5c8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42010f
jmp 0x4203b3
xor edi, edi
inc edi
xor esi, esi
push dword [ebp - 0xdcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x5cc]
mov dword [ebp - 0xdcc], esi
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov ecx, dword [ebp - 0x5bc]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
push esi
push 1
lea ecx, [ebp - 0x630]
call fcn.0041164f
push esi
push 1
lea ecx, [ebp - 0x5e8]
call fcn.0041164f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c0]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
test edi, edi
jne 0x42046e
jmp 0x420445
xor esi, esi
lea ecx, [ebp - 0x630]
push esi
push 1
call fcn.0041164f
push esi
push 1
lea ecx, [ebp - 0x5e8]
call fcn.0041164f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c0]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov esi, dword [ebp - 0xde0]
xor eax, eax
push eax
lea eax, [ebp - 0x978]
inc esi
push eax
push esi
mov dword [ebp - 0xde0], esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
jne 0x41fe71
mov dword [ebp - 0xdd0], edi
mov edi, dword [ebp - 0xe00]
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x41fd68