Function at 0x13700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
xor ecx, ecx
mov word [esp + 1], cx
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
mov ebx, eax
lea eax, [esp + 0x2c]
push edi
cmp dword [esp + 0xc0], ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0xc], 0
mov byte [esp + 0xf], cl
je 0x13b47
cmp dword [esp + 0xc4], ecx
je 0x13b47
cmp dword [esp + 0xcc], ecx
je 0x13b47
mov ecx, dword [esp + 0xd0]
test ecx, ecx
je 0x13b47
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x13b47
mov edi, dword [eax]
test edi, edi
je 0x13b47
cmp dword [esp + 0xd8], 0
je 0x13b47
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x13b47
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0x23c]
and esi, 0xfffffff8
cmp eax, 6
jne 0x137ae
mov eax, 4
jmp 0x137d0
cmp eax, 5
jne 0x137ba
mov eax, 3
jmp 0x137d0
cmp eax, 4
jne 0x137c6
mov eax, 2
jmp 0x137d0
xor edx, edx
cmp eax, 3
sete dl
mov eax, edx
or esi, eax
cmp dword [esp + 0xcc], 0
je 0x137eb
cmp dword [ebp + 0xcf8], 0
jne 0x137eb
and esi, 0xfffdffff
mov eax, esi
lea edx, [edi + 0x3f]
and eax, 0x30000
and edx, 0xffffffc0
cmp eax, 0x20000
jne 0x13856
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
movzx edi, byte [esp + 0x10]
mov ecx, edi
shr ecx, 4
mov eax, 4
shl eax, cl
mov ecx, dword [esp + 0xdc]
and esi, 0xfffffcff
or ebx, 8
lea ecx, [eax + ecx - 1]
add eax, 0xffffffff
not eax
and ecx, eax
mov dword [esp + 0xdc], ecx
mov ecx, edi
and ecx, 0xf
mov eax, 0x40
shl eax, cl
mov byte [esp + 0x12], 0
lea edx, [eax + edx - 1]
add eax, 0xffffffff
not eax
and edx, eax
jmp 0x13875
cmp dword [ebp + 0xc9c], 0
je 0x13875
test bh, 0x10
jne 0x13875
and esi, 0xfffffcff
or ebx, 8
add edx, 0xff
xor dl, dl
xor eax, eax
mov ecx, 0x22
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa4]
mov ecx, dword [ebp + 0xa8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe0]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
push 0x88
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x3c]
push eax
push 4
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x80202004
push edx
mov dword [esp + 0x58], 6
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x70], 0x4e563244
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x90], esi
call sub.WIN32K.SYS_EngDeviceIoControl
cmp dword [esp + 0x40], 0
je 0x13985
cmp dword [esp + 0xe8], 0
je 0x1397a
mov eax, dword [ebp + 0x148]
test eax, 0x4000000
je 0x1397a
test bh, 0x10
jne 0x13925
test eax, 0x40000000
je 0x1397a
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
and eax, 0xfffcffff
or al, 8
or ah, 1
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
push 0x88
and ecx, 0xfbffffff
or ecx, 0x2000000
mov dword [esp + 0x68], eax
lea eax, [esp + 0x3c]
push eax
push 4
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x80202004
push edx
mov dword [esp + 0x2c], 0
call sub.WIN32K.SYS_EngDeviceIoControl
cmp dword [esp + 0x40], 0
jne 0x13a48
mov ecx, dword [esp + 0x74]
mov bl, byte [esp + 0x7c]
mov eax, dword [esp + 0x9c]
and ecx, 0x6000000
cmp ecx, 0x2000000
mov byte [esp + 0x12], bl
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x8800d000
je 0x139bf
cmp dword [ebp + 0xc9c], 0
je 0x13a5f
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x58]
push 0
push edx
mov edx, dword [ebp + 0xa8]
push eax
mov eax, dword [ebp + 0xa4]
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
lea esi, [esp + 0x38]
mov edx, 0x8800d100
call fcn.00034f40
add esp, 0x24
test eax, eax
je 0x13a57
mov eax, dword [esp + 0x58]
test eax, eax
je 0x13a48
mov edx, dword [ebp + 0xa4]
mov ecx, dword [ebp + 0xa8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
push 0x10
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov ecx, edx
push ecx
push 4
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push 0x80002000
push eax
call sub.WIN32K.SYS_EngDeviceIoControl
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0x2c
or dword [esp + 0x18], 0x8800d100
mov esi, dword [esp + 0xcc]
test esi, esi
je 0x13adb
test bl, bl
mov eax, dword [esp + 0x8c]
je 0x13a86
mov ecx, dword [esp + 0x6c]
call fcn.00024e80
imul eax, dword [esp + 0xdc]
mov ecx, dword [ebp + 0xa8]
mov edx, dword [ebp + 0xa4]
neg bl
sbb ebx, ebx
and ebx, 0x100
push ebx
push esi
push 0
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
push edx
mov edx, dword [esp + 0x78]
push eax
call fcn.000358e0
add esp, 0x24
test eax, eax
je 0x13adb
mov edi, dword [esp + 0x58]
xor eax, eax
lea ebx, [esp + 0x14]
mov esi, ebp
call fcn.00013c00
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0x2c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xe4]
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
mov dword [eax], ecx
mov eax, dword [esp + 0x80]
pop ebx
add esp, 0xac
ret 0x2c
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xac
ret 0x2c