Function at 0x170f0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x28ab8
push 0x28910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push edi
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
cmp eax, ebx
je 0x17393
cmp esi, edi
jbe 0x17393
mov eax, dword [eax + 0x50]
add eax, edi
cmp esi, eax
jae 0x17393
mov dword [ebp - 4], ebx
push 1
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x2c]
push edx
push esi
push edi
call fcn.000173b0
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x17398
mov esi, dword [ebp - 0x2c]
add esi, 4
push 0x65786b72
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x171b6
mov dword [ebp - 0x20], 0xc000009a
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x172fb
push esi
push 0x90
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x171d6
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov esi, dword [ebp - 0x24]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x1724f
jmp 0x171e9
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
add ebx, edx
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [esi + 4]
push ecx
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov edx, dword [esi + 0x10]
push edx
push ebx
mov eax, dword [esi + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00016e20
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x172f2
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
sub eax, edi
add eax, dword [ebp + 8]
push eax
mov edx, dword [esi + 0x10]
push edx
push ebx
push ecx
call fcn.00016f40
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x172f2
mov eax, dword [esi + 0x10]
add dword [ebp + 0xc], eax
mov esi, dword [esi]
test esi, esi
jne 0x171e6
mov ebx, dword [ebp - 0x1c]
mov esi, ebx
test ebx, ebx
je 0x1725f
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], ecx
mov ebx, ecx
test esi, esi
je 0x172e3
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov ebx, dword [eax + 0x18]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x18]
sub ecx, dword [edx + 4]
sub ecx, ebx
add ecx, edi
mov eax, dword [esi + 0x14]
add eax, dword [esi + 8]
sub eax, edi
add eax, ebx
add eax, dword [ebp - 0x28]
mov edx, dword [esi + 0x10]
sub edx, 1
je 0x172ba
sub edx, 1
je 0x172ae
sub edx, 2
je 0x172a5
mov dword [ebp - 0x20], 0xc000003e
jmp 0x172c1
mov edx, dword [esi + 0xc]
add edx, ecx
mov dword [eax], edx
jmp 0x172c1
mov dx, word [esi + 0xc]
add dx, cx
mov word [eax], dx
jmp 0x172c1
mov dl, byte [esi + 0xc]
add dl, cl
mov byte [eax], dl
push 0
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call esi
cmp dword [ebp - 0x20], 0
jl 0x172f8
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x172e0
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
jmp 0x17267
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x17307
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x17304
push 0
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x17326
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
push 0
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x17326
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
jmp 0x17313
mov edi, dword [ebp - 0x30]
mov eax, edi
test edi, edi
je 0x17331
mov edi, dword [edi]
test eax, eax
je 0x17346
push 0
push eax
call esi
mov eax, edi
test edi, edi
je 0x17342
mov edi, dword [edi]
test eax, eax
jne 0x17335
mov eax, ebx
test ebx, ebx
je 0x17353
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], ecx
mov ebx, ecx
test eax, eax
je 0x1736d
push 0
push eax
call esi
mov eax, ebx
test ebx, ebx
je 0x17369
mov edx, dword [ebx]
mov dword [ebp - 0x1c], edx
mov ebx, edx
test eax, eax
jne 0x17357
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc