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

Disassembly:
sub esp, 0x84
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.00440500
mov ecx, dword [esi + 0x39c]
mov edx, dword [esi + 0x398]
push ecx
push edx
push str..cxr_0x_I64x
lea eax, [esp + 0x20]
push 0x80
push eax
call fcn.00409840
mov esi, dword [esi + 0x614]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x108]
add esp, 0x20
push 6
lea edx, [esp + 0xc]
push edx
push 0xb
push esi
call eax
test eax, eax
lea eax, [edi + 1]
jge 0x409d74
mov eax, edi
mov ecx, dword [esp + 0x88]
pop edi
pop esi
xor ecx, esp
call fcn.004404e6
add esp, 0x84
ret
sub esp, 0x84
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.00440500
mov ecx, dword [esi + 0x39c]
mov edx, dword [esi + 0x398]
push ecx
push edx
push str..trap_0x_I64x
lea eax, [esp + 0x20]
push 0x80
push eax
call fcn.00409840
mov esi, dword [esi + 0x614]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x108]
add esp, 0x20
push 6
lea edx, [esp + 0xc]
push edx
push 0xb
push esi
call eax
test eax, eax
lea eax, [edi + 1]
jge 0x409e04
mov eax, edi
mov ecx, dword [esp + 0x88]
pop edi
pop esi
xor ecx, esp
call fcn.004404e6
add esp, 0x84
ret
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x394]
mov edx, dword [esi + 0x390]
push 0
lea eax, [esi + 0x220]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00409e20
test eax, eax
jne 0x40af8d
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x360]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call fcn.00441ca7
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [esi + 0x324]
push ecx
push str._s__4d__02d_02d__02d_02d_02d
push 0x50
add esi, 0x4bc
push esi
call fcn.00409840
add esp, 0x2c
mov eax, 1
pop esi
add esp, 8
ret
sub esp, 0x20
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x398], 3
jne 0x40b13a
cmp dword [esi + 0x39c], edi
jne 0x40b13a
mov ecx, dword [esi + 0x3a4]
mov edx, dword [esi + 0x3a0]
lea eax, [esp + 8]
push eax
push 8
push str.Tail.Overlay.CurrentStackLocation
push str.nt__IRP
push ecx
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.004091c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
add esp, 0x18
or edx, ecx
je 0x40b13a
lea edx, [esp + 0x10]
push edx
push 8
push str.DeviceObject
push str.nt__IO_STACK_LOCATION
push ecx
push eax
call fcn.004091c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, eax
add esp, 0x18
or edx, ecx
je 0x40b13a
lea edx, [esp + 0x18]
push edx
push 8
push str.DriverObject
push str.nt__DEVICE_OBJECT
push ecx
push eax
call fcn.004091c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, eax
add esp, 0x18
or edx, ecx
je 0x40b13a
lea edx, [esp + 0x20]
push edx
push 8
push str.DriverStart
push str.nt__DRIVER_OBJECT
push ecx
push eax
call fcn.004091c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, eax
add esp, 0x18
or edx, ecx
je 0x40b13a
push edi
lea edx, [esi + 0x220]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00409e20
test eax, eax
je 0x40b12f
lea eax, [esi + 0x324]
push eax
push 0x4626b8
lea ecx, [esi + 0x4bc]
push 0x50
push ecx
call fcn.00409840
push 0x462788
push 0x14
add esi, 0x55c
push esi
call fcn.00409840
add esp, 0x1c
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
sub esp, 0x80
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
xor esi, esi
push 0x1000
mov ebx, ecx
mov dword [esp + 0x10], esi
call fcn.0044066b
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x40b1a8
mov eax, dword [ebx + 0x614]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x64
push ebp
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov eax, dword [ecx + 0x7c]
call eax
test eax, eax
jge 0x40b1bf
push ebp
call fcn.00440dee
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004404e6
add esp, 0x80
ret
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], esi
jbe 0x40b258
push edi
mov edi, ebp
lea esp, [esp]
mov edx, dword [edi + 4]
mov eax, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
push eax
mov ecx, ebx
call fcn.00409e20
mov dword [esp + 0x10], eax
test eax, eax
je 0x40b255
push 0x15
lea ecx, [esp + 0x30]
push str.nt_NtTerminateProcess
push ecx
call fcn.00456f16
add esp, 0xc
test eax, eax
jne 0x40b21e
mov edx, dword [edi + 0x30]
mov dword [esp + 0x14], edx
jmp 0x40b236
push 0x16
lea eax, [esp + 0x30]
push str.nt_KiDispatchException
push eax
call fcn.00456f16
add esp, 0xc
test eax, eax
je 0x40b242
inc esi
sub edi, 0xffffff80
cmp esi, dword [esp + 0x24]
jb 0x40b1e0
jmp 0x40b255
shl esi, 7
mov ecx, dword [esi + ebp + 0x28]
mov edx, dword [esi + ebp + 0x2c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
xor esi, esi
pop edi
push ebp
call fcn.00440dee
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, eax
add esp, 4
or edx, ecx
je 0x40b2a3
lea edx, [esp + 0x24]
push edx
push 4
push str.ExceptionCode
push str.nt__EXCEPTION_RECORD
push ecx
push eax
call fcn.004091c0
mov eax, dword [esp + 0x3c]
add esp, 0x18
cmp eax, esi
je 0x40b2d4
push eax
push 0x462824
push 0x14
lea eax, [ebx + 0x55c]
push eax
jmp 0x40b2c4
mov eax, dword [esp + 0x10]
cmp eax, 0xc0000006
je 0x40b2b5
cmp eax, 0xc0000005
jne 0x40b2d4
push eax
push 0x462824
push 0x14
lea ecx, [ebx + 0x55c]
push ecx
call fcn.00409840
mov dword [esp + 0x1c], 1
add esp, 0x10
mov ecx, dword [ebx + 0x39c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x398]
push 0xf
lea eax, [esp + 0x80]
push eax
push ecx
push edx
mov dword [esp + 0x28], esi
call dword [0x49dad8]
mov byte [esp + 0x86], 0
cmp dword [esp + 0x14], esi
jbe 0x40b31c
lea eax, [esp + 0x78]
push eax
push 0x14
add ebx, 0x55c
push ebx
call fcn.004097b0
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004404e6
add esp, 0x80
ret
mov edx, dword [ecx + 0x37c]
xor eax, eax
cmp edx, 0xf4
ja 0x40b560
je 0x40b55b
sub edx, 0x3b
je 0x40b556
sub edx, 0x53
je 0x40b578
sub edx, 0x11
jne 0x40b582
jmp 0x40aff0
jmp 0x409d00
jmp 0x40b150
cmp edx, 0x116
jb 0x40b582
cmp edx, 0x117
jbe 0x40b57d
cmp edx, 0x1000008e
jne 0x40b582
jmp 0x409d90
jmp 0x40af60
ret