Function at 0x403f00
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42a7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call fcn.00401ad0
mov edi, dword [esp + 0x33c]
xor eax, eax
mov ecx, 0xe3
rep stosd dword es:[edi], eax
push str.system.ini
push 0x100
stosb byte es:[edi], al
lea eax, [esp + 0x234]
push eax
push ebx
push str.display.drv
push str.boot.description
mov dword [esp + 0x34c], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, 0xc
mov esi, str.SystemCurrentControlSetServicesClassDisplay_
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x28]
push 0x42c9bc
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403fa5
sub eax, edx
cmp eax, 4
jae 0x403fd4
mov dx, word [0x42c8d0]
mov ecx, 4
sub ecx, eax
lea edi, [esp + 0x2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403fc6
dec ecx
mov word [edi], dx
jne 0x403fc1
lea eax, [esp + 0x24]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403fe0
lea edi, [esp + 0x2c]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ff0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
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 + 0x38]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call ebp
cmp eax, ebx
jne 0x4041c1
mov edx, dword [esp + 0x33c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.DriverDesc
push ecx
mov dword [esp + 0x2c], 0x100
call ebx
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x10], 0
jne 0x4041d4
mov eax, dword [esp + 0x33c]
lea esi, [esp + 0x22c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4040a7
test cl, cl
je 0x4040a3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4040a7
add eax, 2
add esi, 2
test cl, cl
jne 0x404083
xor eax, eax
jmp 0x4040ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404207
lea edi, [esp + 0x2c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4040c0
mov eax, dword [str.DEFAULT]
mov ecx, dword [0x42c9a8]
mov dl, byte [0x42c9ac]
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
push 0x20019
mov dword [edi + 4], ecx
push 0
lea ecx, [esp + 0x38]
push ecx
push 0x80000002
mov byte [edi + 8], dl
call ebp
test eax, eax
jne 0x4041bf
mov ebp, dword [esp + 0x33c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea esi, [ebp + 0x33d]
push esi
lea eax, [esp + 0x28]
push eax
push 0
push 0x42c9a0
push ecx
mov dword [esp + 0x2c], 0x100
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
lea eax, [esp + 0x130]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x12c]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404160
mov cx, word [0x42c8a8]
mov eax, esi
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404176
lea edi, [esp + 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404187
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebp, 0x37d
push ebp
lea edx, [esp + 0x130]
rep movsb byte es:[edi], byte [esi]
push edx
lea ecx, [esp + 0x24]
call fcn.004034a0
mov dword [esp + 0x18], 1
xor ebx, ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4041d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x334], 0xffffffff
call fcn.00401b90
mov ecx, dword [esp + 0x32c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret 4
mov eax, dword [esp + 0x33c]
mov byte [eax], 0
jmp 0x4041d4