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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, 1
push esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp]
xor ebx, ebx
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
cmp esi, ebx
jne 0x507ecb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
push esi
mov eax, ebp
call fcn.004e17d0
add esp, 4
test eax, eax
jne 0x507ec1
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [ebp + 0x1c], str.Page__d:
mov dword [ebp + 0x20], esi
call fcn.004f84c0
add esp, 8
test eax, eax
je 0x507f0b
push eax
push str.unable_to_get_the_page._error_code_d
mov edi, ebp
call fcn.004e1740
add esp, 8
jmp 0x50842b
mov edi, dword [esp + 0x10]
mov dl, byte [edi]
mov esi, edi
mov byte [esp + 0x78], dl
mov byte [edi], bl
call fcn.004edb30
test eax, eax
je 0x507f37
push eax
push str.btreeInitPage___returns_error_code__d
mov edi, ebp
call fcn.004e1740
add esp, 8
jmp 0x50842b
movzx ecx, byte [edi + 6]
mov esi, dword [edi + 0x38]
mov dword [ebp + 0x1c], str.On_tree_page__d_cell__d:
movzx eax, byte [ecx + esi + 5]
movzx edx, byte [ecx + esi + 6]
movzx edi, byte [ecx + esi + 3]
mov dword [esp + 0x20], ecx
movzx ecx, byte [ecx + esi + 4]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x10]
shl edi, 8
or edi, ecx
movzx ecx, byte [edx + 5]
mov edx, 3
sub edx, ecx
mov ecx, edx
mov edx, dword [esp + 0x20]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x4c], ecx
lea ecx, [ecx + edi*2]
dec eax
lea ecx, [ecx + esi - 2]
and eax, 0xffff
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
cmp byte [ecx + 5], bl
jne 0x50800b
mov eax, dword [edx + esi + 8]
mov edx, dword [esp + 0x2c]
bswap eax
mov dword [esp + 0x3c], eax
cmp byte [edx + 0x11], bl
je 0x507fdb
mov ecx, dword [esp + 0x7c]
push ecx
mov esi, eax
push 5
mov eax, ebp
mov dword [ebp + 0x1c], str.On_page__d_at_right_child:
call fcn.004f8510
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
add esp, 8
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
push edx
push ecx
lea edx, [esp + 0x8c]
push edx
push eax
push ebp
call fcn.00507e70
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x30], ebx
jmp 0x508014
mov ebx, dword [ebp + 0x44]
mov dword [ebx], 0
lea ecx, [edi - 1]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
jl 0x508240
jmp 0x508034
mov ecx, dword [esp + 0x34]
cmp dword [ebp + 0x10], 0
je 0x508240
mov eax, dword [esp + 0x28]
sub dword [esp + 0x28], 2
mov edi, dword [esp + 0x1c]
mov dword [ebp + 0x24], ecx
mov cx, word [eax]
mov eax, dword [esp + 0x18]
mov dh, cl
mov dl, ch
movzx esi, dx
mov dword [esp + 0x44], esi
cmp esi, eax
jb 0x508210
lea ecx, [edi - 4]
mov dword [esp + 0x40], ecx
cmp esi, ecx
ja 0x508210
mov eax, dword [esp + 0x14]
add eax, esi
lea ecx, [esp + 0x5c]
push ecx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x50]
push eax
call edx
movzx eax, word [esp + 0x7a]
add eax, esi
add esp, 0xc
cmp eax, edi
jbe 0x5080b3
push str.Extends_off_end_of_page
mov edi, ebp
call fcn.004e1740
add esp, 4
jmp 0x508225
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 2], 0
je 0x508121
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
je 0x5080e2
cmp eax, dword [esp + 0x88]
jg 0x5080f6
jl 0x508113
cmp ecx, dword [esp + 0x84]
ja 0x5080f6
jmp 0x508113
cmp eax, dword [esp + 0x88]
jl 0x508113
jg 0x5080f6
cmp ecx, dword [esp + 0x84]
jb 0x508113
push eax
push ecx
push str.Rowid__lld_out_of_order
mov edi, ebp
call fcn.004e1740
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
movzx ecx, word [esp + 0x6c]
mov eax, dword [esp + 0x68]
cmp eax, ecx
jbe 0x508183
sub eax, ecx
lea eax, [eax + edi - 5]
xor edx, edx
div dword [esp + 0x40]
movzx edx, word [esp + 0x6e]
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x11], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [edx + eax - 4]
bswap eax
mov edi, eax
je 0x508170
mov edx, dword [esp + 0x7c]
push edx
push 3
mov esi, edi
mov eax, ebp
call fcn.004f8510
mov esi, dword [esp + 0x4c]
add esp, 8
mov eax, dword [esp + 0x40]
push eax
push 0
mov eax, edi
mov ecx, ebp
call fcn.004f85a0
add esp, 8
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 5], 0
jne 0x5081f9
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
bswap eax
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x11], 0
je 0x5081b2
mov ecx, dword [esp + 0x7c]
push ecx
push 5
mov eax, ebp
call fcn.004f8510
add esp, 8
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x8c]
push ecx
push esi
push ebp
call fcn.00507e70
mov esi, eax
add esp, 0x14
mov dword [esp + 0x30], 0
cmp esi, dword [esp + 0x24]
je 0x50822d
push str.Child_page_depth_differs
mov edi, ebp
call fcn.004e1740
add esp, 4
mov dword [esp + 0x24], esi
jmp 0x50822d
movzx edx, word [esp + 0x6e]
lea ecx, [edx + esi - 1]
shl esi, 0x10
or ecx, esi
mov eax, ebx
call fcn.004c41e0
jmp 0x50822d
add edi, 0xfffffffc
push edi
push eax
push esi
push str.Offset__d_out_of_range__d.._d
mov edi, ebp
call fcn.004e1740
add esp, 0x10
mov dword [esp + 0x38], 0
sub dword [esp + 0x34], 1
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jns 0x508030
cmp dword [esp + 0x38], 0
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov dword [ecx], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 4], edx
mov dword [ebp + 0x1c], 0
je 0x508421
cmp dword [ebp + 0x10], 0
jle 0x50842b
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 5], 0
jne 0x5082e8
mov edi, dword [esp + 0x48]
mov ebx, dword [ebp + 0x44]
mov dword [ebx], 0
test edi, edi
jl 0x5082e8
mov edx, dword [esp + 0x4c]
lea eax, [edx + edi*2]
add eax, esi
mov dword [esp + 0x78], eax
jmp 0x5082a4
mov eax, dword [esp + 0x78]
mov ax, word [eax]
mov edx, dword [esp + 0x14]
mov ch, al
mov cl, ah
movzx esi, cx
lea eax, [esi + edx]
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
push eax
call ecx
movzx eax, ax
lea ecx, [eax + esi - 1]
shl esi, 0x10
add esp, 8
or ecx, esi
mov eax, ebx
call fcn.004c41e0
sub dword [esp + 0x78], 2
dec edi
test edi, edi
jge 0x5082a0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + esi + 1]
mov ecx, dword [esp + 0x20]
movzx ecx, byte [ecx + esi + 2]
shl edx, 8
or edx, ecx
jle 0x508358
movzx eax, byte [esi + edx + 2]
movzx ecx, byte [esi + edx + 3]
inc dword [ebx]
shl eax, 8
or eax, ecx
lea eax, [eax + edx - 1]
mov ecx, edx
shl ecx, 0x10
or eax, ecx
mov ecx, dword [ebx]
mov dword [ebx + ecx*4], eax
mov eax, ecx
shr eax, 1
je 0x508342
mov esi, dword [ebx + eax*4]
mov edi, dword [ebx + ecx*4]
cmp esi, edi
jbe 0x50833e
mov dword [ebx + eax*4], edi
mov dword [ebx + ecx*4], esi
mov ecx, eax
shr eax, 1
jne 0x508328
mov esi, dword [esp + 0x14]
movzx eax, byte [edx + esi]
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
mov edx, eax
jg 0x508301
mov eax, dword [esp + 0x18]
lea edi, [eax - 1]
lea edx, [esp + 0x3c]
push edx
mov eax, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x7c], edi
call fcn.004c4210
add esp, 4
test eax, eax
je 0x5083e3
lea ebx, [ebx]
mov edx, dword [esp + 0x3c]
mov eax, edx
mov ecx, edi
shr eax, 0x10
and ecx, 0xffff
cmp ecx, eax
jae 0x5083c0
sub eax, ecx
mov ecx, dword [esp + 0x38]
lea eax, [ecx + eax - 1]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], eax
push ecx
mov eax, ebx
mov dword [esp + 0x7c], edx
call fcn.004c4210
mov edi, dword [esp + 0x7c]
add esp, 4
test eax, eax
jne 0x508380
jmp 0x5083e3
mov eax, dword [esp + 0x7c]
push eax
shr edx, 0x10
push edx
push str.Multiple_uses_for_byte__u_of_page__d
mov edi, ebp
call fcn.004e1740
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x84]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
and edi, 0xffff
sub eax, edi
cmp dword [ebx], 0
lea eax, [ecx + eax - 1]
jne 0x50842b
mov edx, dword [esp + 0x20]
movzx ecx, byte [edx + esi + 7]
cmp eax, ecx
je 0x50842b
mov edx, dword [esp + 0x7c]
push edx
push ecx
push eax
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
mov edi, ebp
call fcn.004e1740
add esp, 0x10
jmp 0x50842b
mov al, byte [esp + 0x78]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50843f
mov edx, dword [eax + 0x48]
push edx
call fcn.00505710
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
pop edi
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x20]
pop esi
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
pop ebp
inc eax
pop ebx
add esp, 0x64
ret