Function at 0x438d00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d357
mov eax, dword fs:[0]
push eax
mov eax, 0x1274
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x127c], ecx
mov edi, dword [ebp + 8]
push ecx
push str.CheckRunEnvironment::GetDriverFolderInMedia
lea ecx, [ebp - 0x1278]
mov dword [ebp - 0x1280], edi
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x438dda
test byte [ecx + 0x1c], 1
je 0x438d9f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caaf4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x438dda
test byte [ecx + 0x1c], 1
je 0x438dda
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x24
call fcn.00405920
add esp, 0x10
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1218]
add esp, 0x24
mov dword [ebp - 0x1240], str.PDriverw32
mov dword [ebp - 0x123c], str.PDriverx64
mov dword [ebp - 0x1238], str.PDriverw32
mov ecx, dword [ecx + 0x1c]
push eax
push str.SOURCEDIR
mov dword [ebp - 0x1234], str.PDriverx64
mov dword [ebp - 0x1230], str.PDriverARM64
mov dword [ebp - 0x122c], str.DRIVERFILE_2KXP
mov dword [ebp - 0x1228], str.DRIVERFILE_X64
mov dword [ebp - 0x1224], str.DRIVERFILE_2KXP
mov dword [ebp - 0x1220], str.DRIVERFILE_X64
mov dword [ebp - 0x121c], str.DRIVERFILE_ARM64
call fcn.004f65f0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebp + eax*2 - 0xa1a], 0x5c
je 0x438eda
push 0x5c692c
lea eax, [ebp - 0xa18]
push eax
call esi
push str.InsDrv.ini
lea eax, [ebp - 0xa18]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
mov edi, dword [ebp - 0x127c]
nop word [eax + eax]
lea eax, [ebp - 0xa18]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5c6930
push dword [ebp + esi*4 - 0x1240]
push str.DriverSetPath
call ebx
test eax, eax
je 0x438f48
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.00439130
lea eax, [ebp - 0x218]
push eax
jmp 0x438f4d
push 0x5c6930
mov ecx, dword [0x6184f0]
push dword [ebp + esi*4 - 0x122c]
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
inc esi
cmp esi, 5
jl 0x438f00
mov eax, dword fs:[0x2c]
mov edi, dword [ebp - 0x1280]
mov ecx, dword [eax]
mov eax, dword [0x61866c]
cmp eax, dword [ecx + 4]
jg 0x4390de
push str.Windows_NT_x86
mov ecx, 0x6187b4
call fcn.004049b0
test al, al
je 0x438fb0
mov ecx, dword [0x6184f0]
push edi
push str.DRIVERFILE_2KXP
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
jmp 0x439029
call fcn.0052ee40
push str.Windows_x64
lea ecx, [eax + 0x144]
call fcn.004049b0
test al, al
je 0x438fdf
mov ecx, dword [0x6184f0]
push edi
push str.DRIVERFILE_X64
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
jmp 0x439029
call fcn.0052ee40
push 0x5c6aec
lea ecx, [eax + 0x144]
call fcn.004049b0
test al, al
je 0x43900e
mov ecx, dword [0x6184f0]
push edi
push str.DRIVERFILE_ARM64
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
jmp 0x439029
push 0x5cad20
lea eax, [ebp - 0x1218]
push eax
push 0x5c70f4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x439070
test byte [ecx + 0x1c], 4
je 0x439070
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x25
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
mov byte [ebp - 0x1274], 1
cmp ecx, 0x608f30
je 0x4390b3
test byte [ecx + 0x1c], 1
je 0x4390b3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x26
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1278]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
push 0x61866c
call fcn.0056db45
add esp, 4
cmp dword [0x61866c], 0xffffffff
jne 0x438f87
mov byte [ebp - 4], 1
call fcn.0052e630
push 0x5b1350
call fcn.0056dea1
push 0x61866c
mov byte [ebp - 4], 0
call fcn.0056dafb
add esp, 8
jmp 0x438f87