Function at 0x513520
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac7d1
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ecx
push str.CBaseOSSpecTypeWin2K::PCLReboot
lea ecx, [ebp - 0x6a0]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5135ed
test byte [ecx + 0x1c], 1
je 0x5135b1
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x108
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x5135ed
test byte [ecx + 0x1c], 1
je 0x5135ed
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push edi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x109
call fcn.00430170
add esp, 0x14
push esi
lea ecx, [ebp - 0x6a4]
call fcn.00403320
push 0x40
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00571c00
add esp, 0x30
lea ecx, [ebp - 0x6a8]
call fcn.0046a2f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x258]
mov ecx, dword [0x6184f0]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebp + eax*2 - 0x25a], 0x5c
je 0x51369b
push 0x5c692c
lea eax, [ebp - 0x258]
push eax
call esi
push str.InsDrv.ini
lea eax, [ebp - 0x258]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x258]
push eax
push 0x104
lea eax, [ebp - 0x668]
push eax
push 0x5c6930
push str.PCL5e
push str.PCLRebootVersion
call esi
lea eax, [ebp - 0x258]
push eax
push 0x104
lea eax, [ebp - 0x460]
push eax
push 0x5c6930
push str.PCL6
push str.PCLRebootVersion
call esi
cmp word [ebp - 0x668], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jne 0x513715
push str.4.70
lea eax, [ebp - 0x668]
push eax
call esi
cmp word [ebp - 0x460], 0
jne 0x51372d
push str.2.40
lea eax, [ebp - 0x460]
push eax
call esi
push 0
lea eax, [ebp - 0x50]
push eax
push edi
lea ecx, [ebp - 0x6a8]
call fcn.0046d300
mov eax, dword [ebp - 0x6a4]
cmp dword [eax - 0xc], 0
jl 0x5138dc
push str.PCL6
push eax
call fcn.00570be3
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x6a4]
test ecx, ecx
je 0x5137f0
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x5137f0
lea eax, [ebp - 0x50]
push eax
call fcn.00582d08
lea eax, [ebp - 0x460]
fstp qword [ebp - 0x6b8]
push eax
call fcn.00582d08
fstp qword [ebp - 0x6b0]
movsd xmm0, qword [ebp - 0x6b0]
add esp, 8
comisd xmm0, xmmword [ebp - 0x6b8]
jb 0x5138dc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5138c4
test byte [ecx + 0x1c], 4
je 0x5138c4
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10a
jmp 0x5138b7
cmp dword [eax - 0xc], 0
jl 0x5138dc
push 0x5c8a8c
push eax
call fcn.00570be3
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x6a4]
test ecx, ecx
je 0x51381d
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x51384e
cmp dword [eax - 0xc], 0
jl 0x5138dc
push str.PCL5e
push eax
call fcn.00570be3
add esp, 8
test eax, eax
je 0x5138dc
sub eax, dword [ebp - 0x6a4]
sar eax, 1
cmp eax, 0xffffffff
je 0x5138dc
lea eax, [ebp - 0x50]
push eax
call fcn.00582d08
lea eax, [ebp - 0x668]
fstp qword [ebp - 0x6b0]
push eax
call fcn.00582d08
fstp qword [ebp - 0x6b8]
movsd xmm0, qword [ebp - 0x6b8]
add esp, 8
comisd xmm0, xmmword [ebp - 0x6b0]
jb 0x5138dc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5138c4
test byte [ecx + 0x1c], 4
je 0x5138c4
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10b
mov edx, 0x5dd3a8
call fcn.00401840
add esp, 0xc
mov ecx, dword [0x6184f0]
push 0x5ca984
push str.PSPCLREBOOT
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov byte [ebp - 0x69c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x513925
test byte [ecx + 0x1c], 1
je 0x513925
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10c
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x6a8]
call fcn.0046a3c0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x6a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x513952
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x6a0]
call fcn.0040a570
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8