Function at 0x136e4
Capabilities:
Check os version
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x248d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
call fcn.0001d82e
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
call fcn.00011e64
test al, al
lea eax, [ebp - 0x130]
je 0x13752
push 0x1ed72
jmp 0x13757
push 0x1eca6
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x80
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov esi, eax
cmp esi, edi
jge 0x1379b
mov ecx, dword [ebp - 0x120]
cmp ecx, edi
je 0x13794
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
jmp 0x139d8
cmp dword [ebp - 0x120], edi
je 0x137fd
cmp dword [ebp - 0x114], 6
jb 0x13806
call fcn.00011e64
cmp al, 1
je 0x137fd
mov eax, dword [ebp - 0x120]
cmp dword [eax + 4], edi
je 0x137fd
mov eax, dword [eax + 4]
mov dword [0x24974], eax
mov eax, dword [eax + 8]
mov dword [0x24978], eax
cmp eax, edi
je 0x137fd
push 0x38
pop ecx
mov edx, 0x24980
sub edx, ecx
jmp 0x137e5
mov eax, dword [0x24978]
add eax, ecx
mov esi, dword [eax]
mov dword [edx + ecx], esi
add ecx, 4
mov dword [eax], fcn.00013600
cmp ecx, 0xa4
jbe 0x137e0
cmp dword [ebp - 0x114], 6
jae 0x13836
mov ecx, dword [ebx + 0x20]
cmp ecx, edi
je 0x13836
movzx eax, word [ebx + 0x1c]
cmp ax, 0x1c
jb 0x13836
movzx eax, ax
push eax
push edi
push ecx
call fcn.0001d82e
mov edi, dword [ebx + 0x20]
add esp, 0xc
push 6
pop ecx
mov esi, 0x1ed56
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
call fcn.00011e64
test al, al
je 0x1386f
mov ecx, dword [ebx + 0x20]
cmp ecx, edi
je 0x1386f
movzx eax, word [ebx + 0x1c]
cmp ax, 0x1c
jb 0x1386f
movzx eax, ax
push eax
push edi
push ecx
call fcn.0001d82e
mov edi, dword [ebx + 0x20]
add esp, 0xc
push 6
pop ecx
mov esi, 0x1ed3a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov eax, dword [0x24978]
cmp eax, edi
je 0x1387a
mov ebx, eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x124]
push edi
push dword [eax + 0x20]
push dword [eax + 0x2c]
push edi
push 0x14
pop esi
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, edi
mov dword [ebp - 0x128], eax
jge 0x138ff
mov ecx, dword [ebp - 0x120]
cmp ecx, edi
je 0x138b4
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [0x24974], edi
je 0x139d2
cmp dword [0x24978], edi
je 0x139d2
push 0x38
pop edx
sub edx, 0x24980
xor ecx, ecx
mov ebx, dword [0x24978]
lea eax, [ecx + 0x24980]
mov edi, dword [eax]
lea esi, [edx + ecx]
mov dword [esi + ebx + 0x24980], edi
and dword [eax], 0
add ecx, 4
cmp ecx, 0x6c
jbe 0x138d7
jmp 0x139d2
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov edx, eax
cmp edx, edi
jne 0x13981
push dword [ebp - 0x11c]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], edi
cmp ecx, edi
je 0x13939
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [0x24974], edi
je 0x139d2
cmp dword [0x24978], edi
je 0x139d2
push 0x38
pop edx
sub edx, 0x24980
xor ecx, ecx
mov ebx, dword [0x24978]
lea eax, [ecx + 0x24980]
mov edi, dword [eax]
lea esi, [ecx + edx]
mov dword [esi + ebx + 0x24980], edi
and dword [eax], 0
add ecx, 4
cmp ecx, 0x6c
jbe 0x1395c
jmp 0x139d2
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 0x28]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], esi
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x11c]
and ecx, esi
or dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x11c]
mov dword [0x24970], eax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0001d7ee
leave
ret 4