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

Disassembly:
mov ecx, dword [0x61c868]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x42ea38
sub esp, 0xa8
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x98]
mov dword [esp], ecx
call sym.runtime.assertLockHeld
mov eax, dword [0x61c7a4]
mov ecx, dword [0x5d8340]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [sym.runtime._pageAlloc_.find.func1]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0xa4], eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call sym.runtime.packPallocSum
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, 0xffffffff
xor ebp, ebp
jmp 0x42df76
mov esi, dword [esp + 0x44]
lea edx, [esi + 1]
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ebp, ebx
cmp edx, 4
jge 0x42e053
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
lea eax, [0x5d8600]
mov ecx, dword [eax + edx*4]
mov ebx, 1
shl ebx, cl
shl ebp, cl
lea esi, [edx + edx*2]
mov dword [esp + 0x98], esi
mov edi, dword [esp + 0xac]
mov eax, dword [edi + esi*4 + 8]
mov esi, dword [edi + 0x34]
mov dword [esp + 0x94], esi
lea esi, [0x5d8620]
mov esi, dword [esi + edx*4]
mov dword [esp + 0x34], esi
cmp ecx, 0x20
sbb ecx, ecx
and ebx, ecx
mov dword [esp + 0x64], ebx
and ebp, ecx
mov dword [esp + 0x58], ebp
sub eax, ebp
neg eax
shl ebp, 3
sar eax, 0x1f
and eax, ebp
neg ebx
mov dword [esp + 0x90], ebx
mov esi, dword [esp + 0x98]
add eax, dword [edi + esi*4]
mov dword [esp + 0x9c], eax
mov dword [esp], edx
mov esi, dword [esp + 0x94]
mov dword [esp + 4], esi
call sym.runtime.offAddrToLevelIndex
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x90]
and edx, eax
mov ebx, dword [esp + 0x58]
cmp edx, ebx
jne 0x42e037
mov ecx, dword [esp + 0x64]
lea edx, [ecx - 1]
and edx, eax
jmp 0x42e03d
mov ecx, dword [esp + 0x64]
xor edx, edx
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x9c]
mov ebp, edx
xor esi, esi
xor edi, edi
jmp 0x42e314
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebp
call sym.runtime._pageAlloc_.chunkOf
mov eax, dword [esp + 8]
test byte [eax], al
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call sym.runtime._pallocBits_.find
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x42e13c
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
call sym.runtime.chunkBase
mov eax, dword [esp + 0x4c]
shl eax, 0xd
add eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
call sym.runtime.chunkBase
mov eax, dword [esp + 0x28]
shl eax, 0xd
add eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x58]
inc ecx
mov dword [esp], ecx
call sym.runtime.chunkBase
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
sub ecx, edx
mov dword [esp + 4], ecx
lea edx, [esp + 0xa0]
call eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.runtime._pageAlloc_.findMappedAddr
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x58]
lea eax, [eax + ecx*8]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.runtime.pallocSum.start
mov eax, dword [esp + 0x58]
sar eax, 0x1f
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 8]
mov dword [esp + 0x88], edx
mov ebx, dword [esp + 0x14]
mov dword [esp], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 4], ebp
call sym.runtime.pallocSum.max
mov eax, dword [esp + 8]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
call sym.runtime.pallocSum.end
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
call sym.runtime.printlock
lea eax, [0x5280c7]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call sym.runtime.printstring
mov dword [esp], 3
mov dword [esp + 4], 0
call sym.runtime.printint
lea eax, [0x524d4d]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call sym.runtime.printint
lea eax, [0x52512b]
mov dword [esp], eax
mov dword [esp + 4], 5
call sym.runtime.printstring
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d2f]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d2f]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d43]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
call sym.runtime.printunlock
call sym.runtime.printlock
lea eax, [0x528747]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call sym.runtime.printstring
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea eax, [0x527c3f]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call sym.runtime.throw
inc edx
mov esi, ebp
mov ebp, dword [esp + 0x48]
cmp edx, ecx
jge 0x42e4b0
mov dword [esp + 0x24], esi
lea ebp, [eax + edx*8]
mov esi, dword [ebp]
mov dword [esp + 0x7c], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x78], ebp
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
and ebp, esi
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x42e34f
xor ebp, ebp
jmp 0x42e30d
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x44]
mov dword [esp], eax
lea ecx, [edx + ebx]
mov dword [esp + 0x98], ecx
mov dword [esp + 4], ecx
call sym.runtime.levelIndexToOffAddr
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov edx, 1
shl edx, cl
cmp ecx, 0x20
sbb ebx, ebx
and edx, ebx
shl edx, 0xd
mov dword [esp + 4], edx
lea edx, [esp + 0xa0]
call eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call sym.runtime.pallocSum.start
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0xb0]
cmp ebx, edx
jbe 0x42e480
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call sym.runtime.pallocSum.max
mov eax, dword [esp + 0xb0]
cmp dword [esp + 8], eax
jae 0x42df5e
mov edx, dword [esp + 0x24]
test edx, edx
je 0x42e43a
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
sbb ebx, ebx
mov ebp, 1
shl ebp, cl
and ebp, ebx
mov ebx, dword [esp + 0x30]
cmp ebx, ebp
jb 0x42e43a
add edx, ebp
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x58]
mov ebp, edx
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
jmp 0x42e30d
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call sym.runtime.pallocSum.end
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
sbb edi, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x54]
lea ebx, [eax + 1]
shl ebx, cl
and edi, ebx
sub edi, edx
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x58]
mov ebp, edx
mov edx, eax
mov eax, dword [esp + 0x9c]
jmp 0x42e30d
test ecx, ecx
jne 0x42e497
mov ecx, dword [esp + 0x34]
cmp ecx, 0x20
sbb edi, edi
mov eax, dword [esp + 0x54]
shl eax, cl
and edi, eax
jmp 0x42e49b
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x48]
mov esi, edx
mov edx, dword [esp + 0xb0]
cmp edx, esi
jbe 0x42e813
mov esi, dword [esp + 0x44]
test esi, esi
je 0x42e7f2
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call sym.runtime.pallocSum.start
mov eax, dword [esp + 0x38]
sar eax, 0x1f
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0x44]
lea ebx, [edx - 1]
mov dword [esp + 0x98], ebx
sar ebx, 0x1f
mov dword [esp + 0x74], ebx
mov esi, dword [esp + 8]
mov dword [esp + 0x88], esi
mov edi, dword [esp + 0x3c]
mov dword [esp], edi
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
call sym.runtime.pallocSum.max
mov eax, dword [esp + 8]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call sym.runtime.pallocSum.end
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
call sym.runtime.printlock
lea eax, [0x5280c7]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call sym.runtime.printstring
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call sym.runtime.printint
lea eax, [0x524d4d]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call sym.runtime.printint
lea eax, [0x524f81]
mov dword [esp], eax
mov dword [esp + 4], 4
call sym.runtime.printstring
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d2f]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d2f]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
call sym.runtime.printlock
lea eax, [0x5280d8]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call sym.runtime.printstring
mov eax, dword [esp + 0x44]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 0x8c], eax
mov dword [esp + 4], eax
call sym.runtime.printint
lea eax, [0x5261e3]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call sym.runtime.printstring
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x52548f]
mov dword [esp], eax
mov dword [esp + 4], 7
call sym.runtime.printstring
mov eax, dword [esp + 0x48]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call sym.runtime.printint
call sym.runtime.printnl
call sym.runtime.printunlock
mov eax, dword [esp + 0x58]
sar eax, 0x1f
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0xac]
mov edx, dword [edx + 0x34]
mov dword [esp], edx
call sym.runtime.offAddr.addr
mov eax, dword [esp + 4]
mov dword [esp + 0x94], eax
call sym.runtime.printlock
lea eax, [0x52afce]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call sym.runtime.printstring
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printhex
lea eax, [0x5252b0]
mov dword [esp], eax
mov dword [esp + 4], 6
call sym.runtime.printstring
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
call sym.runtime.printint
call sym.runtime.printnl
call sym.runtime.printunlock
mov eax, dword [esp + 0x44]
lea ecx, [0x5d8610]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x88], ecx
lea edx, [0x5d8600]
mov edx, dword [edx + eax*4]
mov dword [esp + 0x84], edx
call sym.runtime.printlock
lea eax, [0x52ce60]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call sym.runtime.printstring
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x529ad4]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call sym.runtime.printstring
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
xor eax, eax
jmp 0x42ea15
call sym.runtime.maxSearchAddr
mov eax, dword [esp]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], eax
add esp, 0xa8
ret
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sym.runtime.levelIndexToOffAddr
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
shl eax, 0xd
mov dword [esp + 4], eax
call sym.runtime.offAddr.add
mov eax, dword [esp + 8]
mov dword [esp], eax
call sym.runtime.offAddr.addr
mov eax, dword [esp + 4]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xac]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.runtime._pageAlloc_.findMappedAddr
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
add esp, 0xa8
ret
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x9c]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x18], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x20], edx
mov dword [esp], ebx
mov dword [esp + 4], edx
call sym.runtime.pallocSum.start
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax]
mov dword [esp + 0x98], edx
sar edx, 0x1f
mov dword [esp + 0x74], edx
mov ebp, dword [esp + 8]
mov dword [esp + 0x88], ebp
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov edi, dword [esp + 0x20]
mov dword [esp + 4], edi
call sym.runtime.pallocSum.max
mov eax, dword [esp + 8]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x18]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call sym.runtime.pallocSum.end
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
call sym.runtime.printlock
lea eax, [0x5280c7]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call sym.runtime.printstring
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
call sym.runtime.printint
lea eax, [0x524d4d]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call sym.runtime.printint
lea eax, [0x52512b]
mov dword [esp], eax
mov dword [esp + 4], 5
call sym.runtime.printstring
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d2f]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d2f]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.printuint
lea eax, [0x524d43]
mov dword [esp], eax
mov dword [esp + 4], 2
call sym.runtime.printstring
call sym.runtime.printunlock
mov eax, dword [esp + 0x50]
inc eax
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jl 0x42e886
lea eax, [0x527c3f]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime._pageAlloc_.find