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

Disassembly:
sub esp, 0x50
push ebp
mov ebp, dword [esp + 0x58]
push esi
or esi, 0xffffffff
cmp dword [ebp + 0x68], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0
je 0xb4633
pop esi
mov eax, 1
pop ebp
add esp, 0x50
ret 4
mov ecx, dword [0x4e73e0]
test byte [ecx + 0x2387], 4
mov eax, 3
jne 0xb464d
mov eax, dword [ecx + 0x5d4]
sub eax, 1
je 0xb4673
sub eax, 1
je 0xb466c
sub eax, 1
je 0xb4665
cmp dword [ecx + 0x3e8c], 0
je 0xb467c
mov esi, 1
jmp 0xb4678
mov esi, 2
jmp 0xb4678
mov esi, 8
mov dword [esp + 0x44], esi
test byte [ecx + 0x2484], 0x20
je 0xb468e
mov esi, 2
mov dword [esp + 0x44], esi
mov edx, dword [ecx + 0x2330]
push 4
lea eax, [esp + 0x10]
push eax
push 0x19a
push edx
mov edx, dword [ecx + 0x233c]
mov ecx, dword [ecx + 0x2338]
call fcn.000355b0
add esp, 0x10
test eax, eax
je 0xb46be
or dword [esp + 0xc], 7
cmp esi, 0xffffffff
je 0xb46e8
lea ecx, [esp + 0x48]
mov eax, ecx
lea esp, [esp]
cmp dword [ecx], esi
jne 0xb46de
mov dword [ecx], 0xffffffff
mov esi, dword [esp + 0x44]
add eax, 4
cmp dword [eax], 0
mov ecx, eax
jne 0xb46d0
test esi, esi
push ebx
push edi
je 0xb4a7c
mov esi, dword [0x4e73e0]
mov dl, byte [esp + 0x14]
lea eax, [esp + 0x4c]
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0xb4710
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0xb4a6a
mov dword [ebp + 0x64], eax
sub eax, 1
je 0xb497f
sub eax, 1
je 0xb48a6
sub eax, 6
jne 0xb4a5c
mov edi, dword [esi + 0x252c]
shr edi, 4
and edi, 1
mov dword [esp + 0x10], edi
lea esp, [esp]
mov eax, dword [ebp + 0x88]
add eax, 0xfff
and eax, 0xfffff000
xor ecx, ecx
add eax, 0xffffffff
adc ecx, 0xffffffff
neg edi
sbb edi, edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 4]
lea edx, [eax + 2]
and edi, 0x1000
lea eax, [esi + 0x233c]
add edi, 0x1000
mov dword [esp + 0x38], ecx
lea ecx, [esi + 0x2338]
mov dword [ebp + 0x24], edx
or edi, 0x10
push edi
mov dword [esp + 0x28], eax
mov eax, dword [eax]
push 0x3e
push eax
mov eax, dword [esi + 0x2330]
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx]
add esi, 0x2330
push ecx
mov dword [esp + 0x28], esi
push eax
lea esi, [esp + 0x48]
lea ebx, [esp + 0x78]
mov dword [esp + 0x30], edx
call fcn.00035190
add esp, 0x14
cmp eax, 0x1b
jne 0xb483b
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push 0x10
mov dword [esp + 0x44], edx
lea edx, [esp + 0x44]
push edx
push 4
lea eax, [esp + 0x3c]
push eax
push 0x80002000
push ecx
mov dword [esp + 0x48], edx
call sub.WIN32K.SYS_EngDeviceIoControl
mov ecx, dword [esi]
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push edi
push 0x3e
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
push ecx
lea esi, [esp + 0x48]
lea ebx, [esp + 0x78]
call fcn.00035190
add esp, 0x14
xor ecx, ecx
cmp eax, ecx
je 0xb4861
cmp dword [esp + 0x10], ecx
mov esi, dword [0x4e73e0]
je 0xb4858
mov dword [esp + 0x10], ecx
mov edi, ecx
jmp 0xb4750
mov dword [esp + 0x64], ecx
jmp 0xb4a5c
mov eax, dword [esp + 0x64]
cmp eax, ecx
je 0xb4a56
mov dword [ebp + 0x68], eax
xor eax, eax
cmp dword [esp + 0x10], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], eax
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x90], eax
mov dword [ebp + 0xa4], eax
je 0xb4a56
or dword [ebp + 0xb8], 0x10
jmp 0xb4a56
mov eax, dword [esi + 0x252c]
and eax, 3
jne 0xb48ba
test dl, 4
je 0xb4a6a
test eax, eax
je 0xb48c7
test dl, 2
je 0xb4a6a
mov eax, dword [ebp + 0x88]
lea edx, [esp + 0x64]
push edx
push eax
lea edi, [ebp + 0xd8]
push edi
lea eax, [esi + 0x2524]
call fcn.00117090
test eax, eax
je 0xb4a56
cmp dword [esp + 0x64], 0
jne 0xb4947
mov eax, dword [ebp + 0x88]
lea ecx, [esp + 0x64]
push ecx
push eax
mov eax, dword [0x4e73e0]
mov edx, dword [eax + 0x233c]
mov ecx, dword [eax + 0x2338]
push edx
mov edx, dword [eax + 0x2330]
push ecx
push edx
xor ebx, ebx
xor ecx, ecx
mov edx, edi
call fcn.00091430
test eax, eax
je 0xb4947
mov eax, dword [ebp + 0x88]
push ebx
mov ebx, dword [0x4e73e0]
push edi
add ebx, 0x2524
call fcn.001172c0
jmp 0xb4a56
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x108]
mov edx, dword [ebp + 0x10c]
mov dword [ebp + 0x68], eax
xor eax, eax
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x74], edx
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x90], eax
mov dword [ebp + 0xa4], eax
jmp 0xb4a56
test dl, 1
je 0xb4a6a
and dword [ebp + 0xdc], 0xfffffffd
mov eax, dword [esi + 0x2358]
test eax, eax
jne 0xb49a0
mov eax, 0x40000000
jmp 0xb49b1
cmp eax, 0x7fffffff
jae 0xb49ac
add eax, 1
jmp 0xb49b1
mov eax, 0x40001000
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov dword [esi + 0x2358], eax
lea edi, [ebp + 0xd8]
push 0
mov dword [edi], eax
lea eax, [ebp + 0x88]
push 0
push eax
mov ebx, edi
call fcn.000b6840
test eax, eax
jne 0xb4a56
mov eax, dword [ebp + 0x88]
lea ecx, [esp + 0x64]
push ecx
push eax
mov eax, dword [0x4e73e0]
mov edx, dword [eax + 0x233c]
mov ecx, dword [eax + 0x2338]
push edx
mov edx, dword [eax + 0x2330]
push ecx
push edx
xor ebx, ebx
xor ecx, ecx
mov edx, edi
call fcn.00091430
mov esi, dword [0x4e73e0]
test eax, eax
mov eax, dword [esp + 0x64]
jne 0xb4a4f
mov ecx, dword [ebp + 0x108]
mov edx, dword [ebp + 0x10c]
mov dword [ebp + 0x68], eax
xor eax, eax
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x74], edx
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x90], eax
mov dword [ebp + 0xa4], eax
jmp 0xb4a5c
mov ecx, edi
call fcn.00069b40
mov esi, dword [0x4e73e0]
cmp dword [ebp + 0x68], 0
jne 0xb4a88
mov dl, byte [esp + 0x14]
mov ecx, dword [esp + 0x20]
add ecx, 4
cmp dword [ecx], 0
mov dword [esp + 0x20], ecx
mov eax, ecx
jne 0xb4710
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x50
ret 4
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x50
ret 4