Function at 0x46a660
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
test edx, edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edi
je 0x46a6d6
lea eax, [edx - 1]
cmp eax, dword [ecx + 0xc]
jae 0x46a6c7
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], edi
mov edi, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov ecx, edx
shr edi, 3
and cl, 7
movzx ebx, byte [eax + edi]
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
movzx ecx, cl
bt ebx, ecx
jae 0x46a6e0
push edx
push str.2nd_reference_to_page__d
push dword [esp + 0x1c]
jmp 0x46a6ce
push edx
push str.invalid_page_number__d
push ecx
call fcn.0046a540
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x28]
mov ecx, dword [ebx + 0x44]
cmp dword [ecx + 0x110], 0
jne 0x46a6d6
or al, byte [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x60], edx
mov byte [ecx + edi], al
mov edi, dword [esp + 0x34]
mov dword [ebx + 0x1c], str.Page__d:
lea ecx, [esp + 0x70]
mov dword [ebx + 0x20], edi
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esi]
push 0
push ecx
push edi
push eax
call dword [eax + 0xcc]
add esp, 0x10
test eax, eax
je 0x46a77c
push eax
push str.unable_to_get_the_page._error_code_d
push ebx
call fcn.0046a540
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov esi, 0xffffffff
jmp 0x46a855
mov eax, dword [esp + 0x70]
mov ebx, dword [eax + 8]
cmp dword [ebx + 4], edi
je 0x46a7a9
mov ecx, dword [eax + 4]
mov edx, esi
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x48], eax
xor eax, eax
cmp edi, 1
mov ecx, 0x64
mov dword [ebx + 0x34], esi
mov dword [ebx + 4], edi
cmovne ecx, eax
mov byte [ebx + 9], cl
mov al, byte [ebx]
mov ecx, ebx
mov byte [ebx], 0
mov byte [esp + 0xf], al
call fcn.00442830
test eax, eax
mov edi, ebx
je 0x46a7cb
push eax
push str.btreeInitPage___returns_error_code__d
mov ebx, dword [esp + 0x1c]
jmp 0x46a7e4
mov ecx, edi
call fcn.004620e0
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x46a864
push eax
push str.free_space_corruption
push ebx
call fcn.0046a540
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x46a805
call fcn.00442220
jmp 0x46a845
mov esi, dword [ecx + 0x14]
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [esi + 0x88], ecx
mov ebx, dword [ecx + 0x18]
mov edi, dword [esi + 0x98]
mov esi, dword [esi + 0x3c]
dec ebx
mov eax, ebx
mul edi
sar edi, 0x1f
imul edi, ebx
mov ebx, dword [esp + 0x14]
add edx, edi
mov edi, dword [esi]
push dword [ecx + 4]
push edx
push eax
push esi
call dword [edi + 0x48]
add esp, 0x10
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
inc esi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], edx
jmp 0x46a6d6
movzx edx, byte [edi + 9]
mov esi, dword [edi + 0x38]
mov dword [ebx + 0x1c], str.On_tree_page__d_cell__d:
movzx eax, byte [edx + esi + 5]
movzx ecx, byte [edx + esi + 6]
mov dword [esp + 0x48], edx
shl eax, 8
lea eax, [eax + ecx - 1]
movzx ecx, word [edx + esi + 3]
mov dword [esp + 0x28], eax
mov eax, edx
shl ecx, 0x10
bswap ecx
mov dword [esp + 0x8c], ecx
movzx ecx, byte [edi + 8]
test ecx, ecx
mov dword [esp + 0x50], ecx
je 0x46a8c9
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [ecx], 0
jmp 0x46a92b
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + esi + 8]
cmp byte [ecx + 0x11], 0
bswap edx
je 0x46a8fc
mov dword [esp + 0x10], edx
mov dword [ebx + 0x1c], str.On_page__d_at_right_child:
mov ecx, ebx
mov edx, dword [esp + 0x10]
push dword [esp + 0x34]
push 5
call fcn.0046a5d0
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x38]
mov ecx, ebx
push dword [esp + 0x2c]
push dword [esp + 0x20]
push eax
call fcn.0046a660
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], 0
movzx ecx, word [esp + 0x28]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x8c]
shl edx, 2
mov dword [esp + 0x50], edx
lea ebx, [ecx - 1]
test ecx, ecx
mov dword [esp + 0x4c], ebx
lea ebx, [esp + 0x70]
je 0x46aca1
sub eax, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x58], 1
lea eax, [eax + ecx*2 + 0xa]
mov ecx, dword [esp + 0x2c]
add eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 8]
lea ecx, [ecx + 1]
mov dword [esp + 0x98], ecx
lea ecx, [eax - 4]
lea eax, [eax - 5]
mov dword [esp + 0x5c], ecx
mov cl, byte [esp + 0xf]
mov dword [esp + 0x90], eax
jmp 0x46a9ed
push dword [esp + 0x5c]
push dword [esp + 0x9c]
push eax
push str.Offset__d_out_of_range__d.._d
push dword [esp + 0x24]
call fcn.0046a540
add esp, 0x14
mov dword [esp + 0x58], 0
mov cl, byte [esp + 0xf]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x28], 0xfffffffe
test eax, eax
lea eax, [eax - 1]
mov dword [esp + 0x1c], eax
jle 0x46ac7b
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], 0
je 0x46ac7b
mov ecx, dword [esp + 0x1c]
pcmpeqd xmm0, xmm0
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
movdqa xmmword [esp + 0x70], xmm0
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x28]
movzx eax, word [eax]
shl eax, 0x10
bswap eax
cmp eax, dword [esp + 0x2c]
jbe 0x46a9a9
cmp eax, dword [esp + 0x5c]
ja 0x46a9a9
add esi, eax
push ebx
push esi
push edi
mov ebx, edi
mov edi, eax
call dword [ebx + 0x50]
add esp, 0xc
movzx eax, word [esp + 0x82]
mov dword [esp + 0x54], edi
add eax, edi
cmp eax, dword [esp + 0x60]
jbe 0x46aa90
push str.Extends_off_end_of_page
push dword [esp + 0x18]
call fcn.0046a540
add esp, 8
mov esi, dword [esp + 0x24]
mov cl, byte [esp + 0xf]
mov edx, dword [ebp + 8]
mov edi, ebx
mov dword [esp + 0x58], 0
jmp 0x46abeb
cmp byte [ebx + 2], 0
je 0x46aaeb
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
je 0x46ac45
cmp edi, eax
sbb edx, ecx
jge 0x46aad2
push ecx
push eax
push str.Rowid__lld_out_of_order
push dword [esp + 0x20]
call fcn.0046a540
add esp, 0x10
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0
jmp 0x46aaf0
mov edx, dword [ebp + 8]
mov edi, ebx
mov eax, dword [esp + 0x7c]
movzx ecx, word [esp + 0x80]
cmp eax, ecx
jbe 0x46ab64
add eax, dword [esp + 0x90]
xor edx, edx
sub eax, ecx
div dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x94], eax
movzx eax, word [esp + 0x82]
cmp byte [ecx + 0x11], 0
mov eax, dword [eax + esi - 4]
bswap eax
mov dword [esp + 0x44], eax
je 0x46ab4a
mov edx, dword [esp + 0x44]
mov ecx, ebx
push dword [esp + 0x34]
push 3
call fcn.0046a5d0
add esp, 8
xor edx, edx
mov ecx, ebx
push dword [esp + 0x94]
push dword [esp + 0x48]
call fcn.0046a060
add esp, 8
mov edx, dword [ebp + 8]
cmp byte [edi + 8], 0
je 0x46abf4
movzx eax, word [esp + 0x82]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x10]
lea eax, [edi + eax - 1]
shl edi, 0x10
or edi, eax
mov eax, dword [ebx]
lea ecx, [eax + 1]
mov dword [ebx], ecx
mov dword [ebx + eax*4 + 4], edi
mov eax, ecx
shr eax, 1
je 0x46abdf
mov esi, dword [ebx + eax*4]
mov dword [esp + 0x54], edi
cmp esi, edi
jbe 0x46abdf
lea edx, [ebx + eax*4]
mov edi, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x54]
shr edi, 1
mov dword [ebx + eax*4], edx
mov dword [ebx + ecx*4], esi
je 0x46abd2
mov ecx, dword [esp + 0x44]
mov esi, dword [ebx + edi*4]
mov edx, dword [ecx]
lea ecx, [ebx + edi*4]
mov dword [esp + 0x44], ecx
mov ecx, eax
mov eax, edi
cmp esi, edx
ja 0x46abb0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
jmp 0x46ac72
mov esi, dword [esp + 0x24]
mov cl, byte [esp + 0xf]
mov edi, dword [esp + 0x20]
lea ebx, [esp + 0x70]
jmp 0x46a9d5
mov eax, dword [esp + 0x18]
mov esi, dword [esi]
mov ebx, dword [esp + 0x14]
cmp byte [eax + 0x11], 0
bswap esi
je 0x46ac18
mov ecx, ebx
mov edx, esi
push dword [esp + 0x34]
push 5
call fcn.0046a5d0
add esp, 8
mov ecx, ebx
mov edx, esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
lea eax, [esp + 0x40]
push eax
call fcn.0046a660
add esp, 0xc
cmp eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
jne 0x46ac56
mov dword [esp + 0x40], 0
jmp 0x46ac72
cmp eax, edi
mov ebx, ecx
sbb ebx, edx
jge 0x46aab7
jmp 0x46aad2
mov dword [esp + 0x40], 0
push str.Child_page_depth_differs
push ebx
mov ebx, eax
call fcn.0046a540
add esp, 8
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x70]
jmp 0x46a9ce
movsd xmm0, qword [esp + 0x38]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x58], 0
movsd qword [edx], xmm0
mov dword [ebx + 0x1c], 0
je 0x46ad9b
mov eax, dword [esp + 0x48]
jmp 0x46acb9
movsd xmm0, qword [esp + 0x38]
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
movsd qword [ecx], xmm0
mov dword [ebx + 0x1c], 0
cmp dword [ebx + 0x10], 0
mov ecx, dword [esp + 0x8c]
jle 0x46a7f5
cmp byte [edi + 8], 0
jne 0x46ada6
mov edx, dword [ebx + 0x40]
test ecx, ecx
mov dword [esp + 0x10], edx
mov dword [edx], 0
je 0x46ada6
mov ecx, dword [esp + 0x50]
neg ecx
lea eax, [eax + ecx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
jmp 0x46ad10
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
test eax, eax
lea eax, [eax - 1]
jle 0x46ada2
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea eax, [ecx + eax*2]
movzx edi, word [esi + eax]
shl edi, 0x10
bswap edi
lea eax, [esi + edi]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [eax + 0x4c]
add esp, 8
mov ecx, dword [esp + 0x10]
movzx eax, ax
lea eax, [edi + eax - 1]
shl edi, 0x10
or edi, eax
mov eax, dword [ecx]
lea esi, [eax + 1]
mov dword [ecx], esi
mov dword [ecx + eax*4 + 4], edi
mov ecx, esi
shr ecx, 1
je 0x46acfd
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + ecx*4]
cmp ebx, edi
jbe 0x46acfd
mov eax, dword [esp + 0x10]
lea eax, [eax + ecx*4]
mov dword [esp + 0x1c], eax
mov eax, ecx
mov edx, dword [esp + 0x10]
shr eax, 1
mov dword [edx + ecx*4], edi
mov dword [edx + esi*4], ebx
je 0x46acfd
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
lea esi, [ebx + eax*4]
mov edi, dword [edx]
mov ebx, dword [ebx + eax*4]
mov dword [esp + 0x1c], esi
mov esi, ecx
mov ecx, eax
cmp ebx, edi
ja 0x46ad6c
jmp 0x46acfd
mov byte [edi], cl
jmp 0x46a7f5
mov eax, dword [esp + 0x48]
movzx ecx, word [eax + esi + 1]
jmp 0x46adb9
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
movzx ecx, word [esi + ecx]
shl ecx, 0x10
bswap ecx
test ecx, ecx
je 0x46ae3b
movzx eax, word [ecx + esi + 2]
mov esi, dword [esp + 0x10]
mov edx, ecx
mov dword [esp + 0x18], ecx
shl edx, 0x10
shl eax, 0x10
mov dword [esp + 0x10], esi
bswap eax
lea ecx, [ecx + eax - 1]
or ecx, edx
mov edx, dword [esi]
lea eax, [edx + 1]
mov dword [esi], eax
mov dword [esi + edx*4 + 4], ecx
mov esi, eax
shr esi, 1
je 0x46adad
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + esi*4]
cmp ebx, ecx
jbe 0x46adad
mov edx, dword [esp + 0x10]
lea edx, [edx + esi*4]
mov dword [esp + 0x1c], edx
mov edx, esi
mov edi, dword [esp + 0x10]
shr edx, 1
mov dword [edi + esi*4], ecx
mov dword [edi + eax*4], ebx
je 0x46adad
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + edx*4]
lea edi, [eax + edx*4]
mov eax, esi
mov esi, edx
mov dword [esp + 0x1c], edi
cmp ebx, ecx
ja 0x46ae0c
jmp 0x46adad
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x46af07
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov edx, dword [esi + eax*4]
mov ecx, dword [esi + 4]
mov dword [esi + 4], edx
mov dword [esi + eax*4], 0xffffffff
mov dword [esp + 0x2c], ecx
mov eax, dword [esi]
dec eax
cmp eax, 2
mov dword [esi], eax
jb 0x46ae91
mov edx, dword [esi + 8]
xor ecx, ecx
mov edi, dword [esi + 4]
cmp edx, dword [esi + 0xc]
seta cl
mov ebx, dword [esi + ecx*4 + 8]
cmp edi, ebx
jae 0x46aec2
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ecx, esi
movzx edx, bx
shr ecx, 0x10
cmp ecx, edx
jbe 0x46af19
mov edi, dword [esp + 0x18]
not edx
add edi, edx
add edi, ecx
test eax, eax
mov ecx, esi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x14]
jne 0x46ae55
jmp 0x46af46
or ecx, 2
lea eax, [esi + 4]
mov dword [esp + 0x1c], edi
mov dword [eax], ebx
mov dword [esi + ecx*4], edi
lea ebx, [ecx + ecx]
mov eax, dword [esi]
cmp ebx, eax
ja 0x46ae91
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov esi, dword [edx + ebx*4]
mov edx, ebx
or edx, 1
cmp esi, dword [edi + edx*4]
mov esi, dword [esp + 0x10]
ja 0x46aef5
mov edx, ebx
mov ebx, dword [esi + edx*4]
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jb 0x46ae91
lea eax, [esi + ecx*4]
mov ecx, edx
jmp 0x46aecc
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
jmp 0x46af46
push dword [esp + 0x34]
push ecx
push str.Multiple_uses_for_byte__u_of_page__d
mov edi, dword [esp + 0x20]
push edi
call fcn.0046a540
add esp, 0x10
mov eax, dword [esp + 0x10]
mov esi, ebx
cmp dword [eax], 0
je 0x46af46
mov ebx, edi
mov edi, dword [esp + 0x20]
jmp 0x46a7f5
mov eax, dword [esp + 0x18]
mov ebx, edi
mov ecx, dword [esp + 0x48]
not esi
or esi, 0xffff0000
add eax, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x24]
add edi, esi
movzx eax, byte [ecx + eax + 7]
cmp edi, eax
jne 0x46af76
mov edi, dword [esp + 0x20]
jmp 0x46a7f5
push dword [esp + 0x34]
push eax
push edi
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
push ebx
call fcn.0046a540
add esp, 0x14
mov edi, dword [esp + 0x20]
jmp 0x46a7f5