Function at 0x4131d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x493692
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
mov dword [esp + 0x20], 0
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0xc6
lea eax, [esp + 0x2a]
push 0
mov dword [esp + 0x100], 0
push eax
mov word [esp + 0x30], 0
call fcn.00463d60
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xf8], 1
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, 2
lea esi, [esp + 0x1c]
mov byte [esp + 0xf8], bl
call fcn.0042cd40
lea edi, [esp + 0x10]
mov byte [esp + 0xf8], 3
call fcn.00401cd0
mov byte [esp + 0xf8], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4132f8
mov ecx, edi
lea eax, [esp + 0x10]
call fcn.00402080
mov esi, dword [esp + 0x10]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.0045f332
add esp, 8
test edi, edi
jl 0x41355a
cmp edi, dword [esi - 8]
jg 0x41355a
push 0xe
push str.drivermain.ini
lea edx, [esp + 0x18]
mov dword [esi - 0xc], edi
push edx
mov word [esi + edi*2], 0
call fcn.00401ff0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x64
lea ecx, [esp + 0x2c]
push ecx
push 0x4a0c40
push str.Version
push str.DisplayVersions
call esi
test eax, eax
je 0x4134b4
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x413362
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00401f30
lea edi, [esp + 0x14]
call fcn.00401c30
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
mov ecx, edi
push ecx
mov ecx, 2
lea edx, [esp + 0x20]
call fcn.00403180
lea edi, [esp + 0x18]
mov byte [esp + 0xf8], 4
call fcn.00401cd0
mov byte [esp + 0xf8], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4133da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4a0c40
push 0x4a1108
lea ecx, [esp + 0x20]
push ecx
call fcn.004168d0
push 0x4a0c40
push 0x4a110c
lea edx, [esp + 0x20]
push edx
call fcn.004168d0
mov eax, dword [esp + 0x10]
push eax
push 0x64
lea ecx, [esp + 0x2c]
push ecx
push 0x4a0c40
push 0x4a1090
push str.infos
call esi
test eax, eax
je 0x4134b4
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413430
sub eax, edx
sar eax, 1
lea edx, [esp + 0x24]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00401f30
lea eax, [esp + 0x14]
push eax
mov eax, 6
lea ecx, [esp + 0x20]
call fcn.00416af0
mov byte [esp + 0xf8], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00401ff0
mov byte [esp + 0xf8], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4134a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0045f067
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xf8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4134dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xf8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xf8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41352f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0045eec1
add esp, 0xec
ret
push 0x80070057
call fcn.00402340
int3