Function at 0x45f00b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp ecx, dword [esi + 0x14]
jb 0x45f029
mov eax, 0xc00000f0
jmp 0x45f23b
and dword [ebp + 0xc], 0
push ebx
mov dword [0x47c294], 1
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x10]
lea ebx, [edi + edx]
and ebx, 0xfff
lea ebx, [ebx + eax + 0xfff]
shr ebx, 0xc
test edx, edx
mov dword [ebp - 0x14], ebx
je 0x45f0a8
mov ebx, 0x1000
sub ebx, edx
cmp ecx, ebx
jae 0x45f083
sub eax, ecx
add edx, ecx
test byte [esi + 6], 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
je 0x45f237
add dword [esi + 0xc], ecx
jmp 0x45f237
and dword [esi + 0x18], 0
add edi, 0x1000
sub eax, ebx
sub ecx, ebx
test byte [esi + 6], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
je 0x45f0a0
add dword [esi + 0xc], ebx
xor edi, edi
inc edi
mov dword [ebp + 0xc], edi
jmp 0x45f0ab
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x45f0d8
sub dword [esi + 0x14], ecx
mov edx, ecx
shr ecx, 0xc
mov eax, ecx
shl eax, 0xc
add dword [esi + 0x10], eax
and edx, 0xfff
add edi, ecx
test byte [esi + 6], 1
mov dword [esi + 0x18], edx
mov dword [ebp + 0xc], edi
je 0x45f0d8
add eax, edx
add dword [esi + 0xc], eax
test edi, edi
je 0x45f237
cmp dword [0x48834c], 1
jne 0x45f0f0
push edi
push esi
call fcn.0045e8bb
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
mov cx, word [esi + 6]
lea ebx, [esi + 0x1c]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
je 0x45f128
test cl, 2
je 0x45f128
test ch, 8
jne 0x45f128
mov ecx, edi
neg ecx
add eax, 0x12c
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
xadd dword [ecx], eax
call dword [sym.imp.HAL.dll_KeRaiseIrqlToDpcLevel]
and dword [ebp - 0x10], 0
test edi, edi
mov byte [ebp + 0xb], al
jbe 0x45f1f7
mov eax, dword [ebp - 4]
and eax, 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
cmp word [ebp - 0x18], 0
je 0x45f1eb
test byte [ebp - 3], 8
jne 0x45f1eb
test byte [ebp - 4], 0x80
mov eax, dword [ebx]
mov ecx, dword [0x4884c8]
lea eax, [eax + eax*2]
lea edi, [ecx + eax*8]
je 0x45f1a4
or dword [edi + 0xc], 1
mov eax, dword [edi + 0x10]
test ah, 4
mov ecx, dword [edi + 0xc]
jne 0x45f1a4
test cl, 4
jne 0x45f1a4
shr eax, 0xc
je 0x45f1a4
cmp eax, 0xfffff
je 0x45f1a4
push dword [edi + 0x10]
call fcn.00424d51
and dword [edi + 0x10], 0xfff
mov ax, word [edi + 0xe]
cmp ax, 2
jne 0x45f1c0
cmp dword [edi + 8], 1
jb 0x45f1ba
dec dword [0x47a9c4]
dec word [edi + 0xe]
jmp 0x45f1e8
cmp ax, 1
je 0x45f1cd
dec eax
mov word [edi + 0xe], ax
jmp 0x45f1e8
mov eax, edi
sub eax, dword [0x4884c8]
push 0x18
cdq
pop ecx
idiv ecx
dec dword [0x47a9c4]
mov ecx, eax
call fcn.004111f5
mov edi, dword [ebp + 0xc]
add ebx, 4
dec dword [ebp - 0xc]
jne 0x45f14c
mov cl, byte [ebp + 0xb]
call dword [sym.imp.HAL.dll_KfLowerIrql]
mov ecx, dword [ebp - 0x10]
jmp 0x45f219
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x45f21e
mov edx, dword [ebp - 8]
add dword [ebp - 8], 4
add ebx, 4
mov dword [edx], eax
inc ecx
cmp ecx, dword [ebp - 0x14]
jb 0x45f205
test byte [ebp - 4], 1
je 0x45f237
test byte [ebp - 3], 2
je 0x45f22e
add edi, dword [ebx]
jmp 0x45f232
or byte [esi + 7], 2
mov eax, dword [ebp - 8]
mov dword [eax], edi
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 8